@mjhls/mjh-framework 1.0.781 → 1.0.782-dev4485
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 +21 -21
- package/dist/cjs/AD300x250x600.js +21 -21
- package/dist/cjs/AD728x90.js +24 -24
- package/dist/cjs/ADFloatingFooter.js +20 -20
- package/dist/cjs/ADFooter.js +6 -6
- package/dist/cjs/ADGutter.js +20 -20
- package/dist/cjs/{ADInfeed-d1eceaf2.js → ADInfeed-de972407.js} +4 -4
- package/dist/cjs/ADSkyscraper.js +20 -20
- package/dist/cjs/ADSponsoredResources.js +20 -20
- package/dist/cjs/ADWebcast.js +20 -20
- package/dist/cjs/ADWelcome.js +17 -17
- package/dist/cjs/{ADlgInfeed-24c693d8.js → ADlgInfeed-6ab92047.js} +4 -4
- package/dist/cjs/AccordionPanel.js +8 -8
- package/dist/cjs/AdSlot.js +21 -21
- package/dist/cjs/AdSlotsProvider.js +12 -12
- package/dist/cjs/AlphabeticList.js +9 -9
- package/dist/cjs/ArticleCarousel.js +17 -17
- package/dist/cjs/ArticleProgramLandingPage.js +47 -47
- package/dist/cjs/ArticleSeriesLandingPage.js +30 -30
- package/dist/cjs/ArticleSeriesListing.js +31 -31
- package/dist/cjs/Auth.js +214 -647
- package/dist/cjs/{AuthorComponent-5fa89df5.js → AuthorComponent-ac8972ce.js} +1 -1
- package/dist/cjs/Beam.js +9 -9
- package/dist/cjs/{BlockContent-eca358e4.js → BlockContent-8b494587.js} +1 -1
- package/dist/cjs/Breadcrumbs.js +8 -8
- package/dist/cjs/CMEDeck.js +24 -24
- package/dist/cjs/Column2.js +17 -17
- package/dist/cjs/Column3.js +31 -31
- package/dist/cjs/ConferenceArticleCard.js +22 -22
- package/dist/cjs/DeckContent.js +41 -41
- package/dist/cjs/DeckQueue.js +28 -28
- package/dist/cjs/{Dfp-a17e00fa.js → Dfp-c226037e.js} +13 -13
- package/dist/cjs/EventsDeck.js +41 -41
- package/dist/cjs/ExternalResources.js +55 -49
- package/dist/cjs/Feature.js +4 -4
- package/dist/cjs/ForbesHero.js +11 -11
- package/dist/cjs/GridContent.js +45 -45
- package/dist/cjs/GridHero.js +12 -12
- package/dist/cjs/GroupDeck.js +13 -13
- package/dist/cjs/HamMagazine.js +36 -36
- package/dist/cjs/Hero.js +3 -3
- package/dist/cjs/HighlightenVideo.js +2 -2
- package/dist/cjs/HorizontalArticleListing.js +45 -45
- package/dist/cjs/HorizontalHero.js +4 -4
- package/dist/cjs/IssueContentDeck.js +12 -12
- package/dist/cjs/IssueDeck.js +16 -16
- package/dist/cjs/IssueLanding.js +62 -62
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +19 -19
- package/dist/cjs/MasterDeck.js +40 -40
- package/dist/cjs/MediaSeriesLanding.js +24 -24
- package/dist/cjs/NavDvm.js +14 -14
- package/dist/cjs/NavMagazine.js +41 -41
- package/dist/cjs/NavNative.js +38 -38
- package/dist/cjs/NavNormal.js +15 -15
- package/dist/cjs/OncliveHero.js +4 -4
- package/dist/cjs/OncliveLargeHero.js +12 -12
- package/dist/cjs/PageFilter.js +6 -6
- package/dist/cjs/PartnerDetailListing.js +54 -54
- package/dist/cjs/PdfDownload.js +1 -1
- package/dist/cjs/PopUpModal.js +6 -6
- package/dist/cjs/PubSection.js +31 -31
- package/dist/cjs/PubToc.js +9 -9
- package/dist/cjs/PublicationDeck.js +7 -7
- package/dist/cjs/PublicationLanding.js +50 -50
- package/dist/cjs/QueueDeckExpanded.js +35 -35
- package/dist/cjs/RecentNews.js +5 -5
- package/dist/cjs/RelatedContent.js +34 -34
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/Search.js +8 -8
- package/dist/cjs/Segment.js +7 -7
- package/dist/cjs/SeriesListingDeck.js +19 -19
- package/dist/cjs/{SeriesSlider-193a2958.js → SeriesSlider-5e6108e0.js} +14 -14
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +16 -16
- package/dist/cjs/{SocialSearchComponent-45c54bed.js → SocialSearchComponent-fb784cc3.js} +8 -8
- package/dist/cjs/TaxonomyCard.js +9 -9
- package/dist/cjs/TaxonomyDescription.js +44 -44
- package/dist/cjs/TemplateNormal.js +45 -45
- package/dist/cjs/ThumbnailCard.js +6 -6
- package/dist/cjs/Ustream.js +9 -9
- package/dist/cjs/VerticalHero.js +3 -3
- package/dist/cjs/VideoProgramLandingPage.js +50 -50
- package/dist/cjs/VideoSeriesCard.js +13 -13
- package/dist/cjs/VideoSeriesFilter.js +10 -10
- package/dist/cjs/VideoSeriesLandingPage.js +35 -35
- package/dist/cjs/VideoSeriesListing.js +31 -31
- package/dist/cjs/View.js +105 -110
- package/dist/cjs/YahooHero.js +14 -14
- package/dist/cjs/YoutubeGroup.js +25 -25
- package/dist/cjs/{_is-array-63ae4740.js → _is-array-754e012d.js} +6 -6
- package/dist/cjs/{_iter-detect-2613ffa1.js → _iter-detect-60b2f026.js} +2 -2
- package/dist/cjs/{_object-sap-c5bd707d.js → _object-sap-5e74ba08.js} +1 -1
- package/dist/cjs/{_object-to-array-bec5fcf2.js → _object-to-array-5762f850.js} +1 -1
- package/dist/cjs/{_set-species-a8cfdb84.js → _set-species-f92c67c5.js} +4 -4
- package/dist/cjs/{_to-object-821a2927.js → _to-object-329a650b.js} +4 -4
- package/dist/cjs/{asyncToGenerator-2edcb6ad.js → asyncToGenerator-533d476a.js} +8 -8
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-4ba0d3d5.js} +4 -5
- package/dist/cjs/{core.get-iterator-method-b4615fd3.js → core.get-iterator-method-f62321d4.js} +2 -2
- package/dist/cjs/{define-property-aff11f8a.js → define-property-f4d12f4e.js} +1 -1
- package/dist/cjs/{defineProperty-d6fbb280.js → defineProperty-55548b25.js} +1 -1
- package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
- package/dist/cjs/{es6.string.iterator-20d42c53.js → es6.string.iterator-cc0bbaa4.js} +2 -2
- package/dist/cjs/{extends-1e24fc8d.js → extends-60837c34.js} +1 -1
- package/dist/cjs/getRelatedArticle.js +16 -14
- package/dist/cjs/getRootDocGroup.js +7 -7
- package/dist/cjs/getSerializers.js +44 -44
- package/dist/cjs/{getTargeting-497b581d.js → getTargeting-7c425fbf.js} +11 -11
- package/dist/cjs/getTargeting.js +7 -7
- package/dist/cjs/{index-8ef858d4.js → index-2410ec98.js} +101 -101
- package/dist/cjs/{index-4d74ffd6.js → index-5be2866f.js} +41 -40
- package/dist/cjs/{index-80f57cff.js → index-8a3fb0bc.js} +7 -7
- package/dist/cjs/{index-d48b231c.js → index-b5eb3ff8.js} +6 -11
- package/dist/cjs/{index-0e4427c8.js → index-e08f00ce.js} +3 -3
- package/dist/cjs/{index.es-f3e47207.js → index.es-13533f24.js} +4 -20
- package/dist/cjs/{index.esm-8123cf40.js → index.esm-3ffa049c.js} +1 -1
- package/dist/cjs/index.js +135 -135
- package/dist/cjs/{inherits-2eb23889.js → inherits-87492b40.js} +5 -5
- package/dist/cjs/{keys-95c064c9.js → keys-a586b7a0.js} +2 -2
- package/dist/cjs/{lodash-4ef21f0f.js → lodash-7fd85bcf.js} +1 -1
- package/dist/cjs/{main-dc082238.js → main-11ec04d2.js} +63 -67
- package/dist/cjs/{moment-aca40de1.js → moment-66a6a284.js} +9 -11
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-07939b41.js} +17 -17
- package/dist/cjs/{slicedToArray-db24842a.js → slicedToArray-8f385299.js} +4 -4
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/{stringify-01cf47f7.js → stringify-7c5aff47.js} +1 -1
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-cf0865fc.js → toConsumableArray-9a3476fe.js} +4 -4
- package/dist/cjs/{typeof-97065d40.js → typeof-9d7f610f.js} +6 -6
- package/dist/cjs/urlFor.js +1 -1
- package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
- package/dist/cjs/{web.dom.iterable-4480325a.js → web.dom.iterable-a0e279c1.js} +3 -3
- package/dist/esm/AD.js +1 -1
- 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 +20 -20
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +20 -20
- package/dist/esm/{ADInfeed-c12cd1ce.js → ADInfeed-1cba8312.js} +4 -4
- package/dist/esm/ADSkyscraper.js +20 -20
- package/dist/esm/ADSponsoredResources.js +20 -20
- package/dist/esm/ADWebcast.js +20 -20
- package/dist/esm/ADWelcome.js +17 -17
- package/dist/esm/{ADlgInfeed-246a8787.js → ADlgInfeed-fe7ad144.js} +4 -4
- package/dist/esm/AccordionPanel.js +8 -8
- package/dist/esm/AdSlot.js +21 -21
- package/dist/esm/AdSlotsProvider.js +12 -12
- package/dist/esm/AlphabeticList.js +9 -9
- package/dist/esm/ArticleCarousel.js +17 -17
- package/dist/esm/ArticleProgramLandingPage.js +47 -47
- package/dist/esm/ArticleSeriesLandingPage.js +30 -30
- package/dist/esm/ArticleSeriesListing.js +31 -31
- package/dist/esm/Auth.js +214 -647
- package/dist/esm/{AuthorComponent-c7ff069f.js → AuthorComponent-8ffd4679.js} +1 -1
- package/dist/esm/Beam.js +9 -9
- package/dist/esm/{BlockContent-d8cd739c.js → BlockContent-d05b5b23.js} +1 -1
- package/dist/esm/Breadcrumbs.js +7 -7
- package/dist/esm/CMEDeck.js +24 -24
- package/dist/esm/Column2.js +17 -17
- package/dist/esm/Column3.js +31 -31
- package/dist/esm/ConferenceArticleCard.js +22 -22
- package/dist/esm/DeckContent.js +41 -41
- package/dist/esm/DeckQueue.js +28 -28
- package/dist/esm/{Dfp-988dbcaa.js → Dfp-c06b41fc.js} +13 -13
- package/dist/esm/EventsDeck.js +39 -39
- package/dist/esm/ExternalResources.js +55 -49
- package/dist/esm/Feature.js +4 -4
- package/dist/esm/ForbesHero.js +11 -11
- package/dist/esm/GridContent.js +45 -45
- package/dist/esm/GridHero.js +12 -12
- package/dist/esm/GroupDeck.js +13 -13
- package/dist/esm/HamMagazine.js +36 -36
- package/dist/esm/Hero.js +3 -3
- package/dist/esm/HighlightenVideo.js +2 -2
- package/dist/esm/HorizontalArticleListing.js +45 -45
- package/dist/esm/HorizontalHero.js +4 -4
- package/dist/esm/IssueContentDeck.js +12 -12
- package/dist/esm/IssueDeck.js +15 -15
- package/dist/esm/IssueLanding.js +62 -62
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +19 -19
- package/dist/esm/MasterDeck.js +40 -40
- package/dist/esm/MediaSeriesLanding.js +24 -24
- package/dist/esm/NavDvm.js +14 -14
- package/dist/esm/NavMagazine.js +41 -41
- package/dist/esm/NavNative.js +36 -36
- package/dist/esm/NavNormal.js +15 -15
- package/dist/esm/OncliveHero.js +4 -4
- package/dist/esm/OncliveLargeHero.js +12 -12
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +54 -54
- package/dist/esm/PdfDownload.js +1 -1
- package/dist/esm/PopUpModal.js +6 -6
- package/dist/esm/PubSection.js +31 -31
- package/dist/esm/PubToc.js +9 -9
- package/dist/esm/PublicationDeck.js +6 -6
- package/dist/esm/PublicationLanding.js +49 -49
- package/dist/esm/QueueDeckExpanded.js +35 -35
- package/dist/esm/RecentNews.js +5 -5
- package/dist/esm/RelatedContent.js +34 -34
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/Search.js +7 -7
- package/dist/esm/Segment.js +7 -7
- package/dist/esm/SeriesListingDeck.js +19 -19
- package/dist/esm/{SeriesSlider-6a1081ff.js → SeriesSlider-19a24623.js} +14 -14
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +16 -16
- package/dist/esm/{SocialSearchComponent-c3216d1a.js → SocialSearchComponent-2a4a7398.js} +7 -7
- package/dist/esm/TaxonomyCard.js +9 -9
- package/dist/esm/TaxonomyDescription.js +44 -44
- package/dist/esm/TemplateNormal.js +45 -45
- package/dist/esm/ThumbnailCard.js +6 -6
- package/dist/esm/Ustream.js +9 -9
- package/dist/esm/VerticalHero.js +3 -3
- package/dist/esm/VideoProgramLandingPage.js +49 -49
- package/dist/esm/VideoSeriesCard.js +13 -13
- package/dist/esm/VideoSeriesFilter.js +10 -10
- package/dist/esm/VideoSeriesLandingPage.js +35 -35
- package/dist/esm/VideoSeriesListing.js +31 -31
- package/dist/esm/View.js +104 -109
- package/dist/esm/YahooHero.js +14 -14
- package/dist/esm/YoutubeGroup.js +25 -25
- package/dist/esm/{_is-array-674f71ec.js → _is-array-58e95429.js} +6 -6
- package/dist/esm/{_iter-detect-48516cd3.js → _iter-detect-5d49a330.js} +2 -2
- package/dist/esm/{_object-sap-fd3054d0.js → _object-sap-964b6feb.js} +1 -1
- package/dist/esm/{_object-to-array-8f409e54.js → _object-to-array-7e804fce.js} +1 -1
- package/dist/esm/{_set-species-494ed292.js → _set-species-3f8319f5.js} +4 -4
- package/dist/esm/{_to-object-97770c52.js → _to-object-a4107da3.js} +5 -5
- package/dist/esm/{asyncToGenerator-2bd4099a.js → asyncToGenerator-502f13b4.js} +8 -8
- package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-e1c6b0f2.js} +4 -5
- package/dist/esm/{core.get-iterator-method-d1d5ed02.js → core.get-iterator-method-e1de7503.js} +2 -2
- package/dist/esm/{define-property-ec6d528d.js → define-property-8af5f002.js} +1 -1
- package/dist/esm/{defineProperty-ea516b15.js → defineProperty-94fd8bfc.js} +1 -1
- package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
- package/dist/esm/{es6.string.iterator-aa6068a3.js → es6.string.iterator-c990c18c.js} +3 -3
- package/dist/esm/{extends-31d65aba.js → extends-eb69e8ac.js} +1 -1
- package/dist/esm/getRelatedArticle.js +16 -14
- package/dist/esm/getRootDocGroup.js +7 -7
- package/dist/esm/getSerializers.js +44 -44
- package/dist/esm/{getTargeting-2d402d66.js → getTargeting-f22b76f5.js} +11 -11
- package/dist/esm/getTargeting.js +7 -7
- package/dist/esm/{index-3f5c03b2.js → index-51a80699.js} +6 -11
- package/dist/esm/{index-888f9253.js → index-acfb8079.js} +3 -3
- package/dist/esm/{index-752d1dae.js → index-c5fd0af5.js} +6 -6
- package/dist/esm/{index-ccb770c7.js → index-d2f90501.js} +41 -40
- package/dist/esm/{index-9b2f6ac4.js → index-f41e3fe9.js} +98 -98
- package/dist/esm/{index.es-c6222053.js → index.es-7dda2f0a.js} +4 -20
- package/dist/esm/{index.esm-8016b507.js → index.esm-8ee5ff72.js} +1 -1
- package/dist/esm/index.js +115 -115
- package/dist/esm/{inherits-5906fbea.js → inherits-0d8cda6e.js} +5 -5
- package/dist/esm/{keys-a0b0c7a4.js → keys-8eda7a5c.js} +2 -2
- package/dist/esm/{lodash-ad27652f.js → lodash-ec8c6b48.js} +1 -1
- package/dist/esm/{main-1450d277.js → main-aef58dbc.js} +63 -67
- package/dist/esm/{moment-bc12cb97.js → moment-12415288.js} +9 -11
- package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-3822f1ce.js} +16 -16
- package/dist/esm/{slicedToArray-cdeaee08.js → slicedToArray-641f241f.js} +4 -4
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/{stringify-d4839bab.js → stringify-4330ccdc.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-fa2dcda7.js → toConsumableArray-43aa614d.js} +4 -4
- package/dist/esm/{typeof-e9cea9e8.js → typeof-af9c50d8.js} +6 -6
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{web.dom.iterable-035980f3.js → web.dom.iterable-4439f05a.js} +3 -3
- package/package.json +107 -107
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
|
|
2
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
3
|
-
import {
|
|
4
|
-
import { _ as
|
|
5
|
-
import
|
|
6
|
-
import { _ as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { _ as
|
|
2
|
+
import { b as _isObject, c as _ctx, d as _descriptors, e as _objectDp, f as _toObject, g as _iobject, h as _toLength, i as _global, j as _fails, k as _hide, _ as _export, l as _aFunction, a as _core } from './_to-object-a4107da3.js';
|
|
3
|
+
import { _ as _objectCreate, a as _iterDefine, b as _wks, c as _setToStringTag } from './es6.string.iterator-c990c18c.js';
|
|
4
|
+
import './_iter-detect-5d49a330.js';
|
|
5
|
+
import { _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
|
|
6
|
+
import { _ as _classof } from './core.get-iterator-method-e1de7503.js';
|
|
7
|
+
import { _ as _iterStep } from './web.dom.iterable-4439f05a.js';
|
|
8
|
+
import { _ as _meta, a as _isArray } from './_is-array-58e95429.js';
|
|
10
9
|
import React, { useState, useEffect } from 'react';
|
|
10
|
+
import 'prop-types';
|
|
11
11
|
import Row from 'react-bootstrap/Row';
|
|
12
12
|
import Col from 'react-bootstrap/Col';
|
|
13
|
-
import Dropdown from 'react-bootstrap/Dropdown';
|
|
14
13
|
import Card from 'react-bootstrap/Card';
|
|
15
14
|
import { useRouter } from 'next/router';
|
|
16
|
-
import { L as LazyLoad } from './index-752d1dae.js';
|
|
17
|
-
import './_iter-detect-48516cd3.js';
|
|
18
15
|
import 'react-dom';
|
|
19
|
-
import '
|
|
16
|
+
import { L as LazyLoad } from './index-c5fd0af5.js';
|
|
17
|
+
import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
18
|
+
import { _ as _anInstance, a as _forOf, b as _redefineAll, c as _setSpecies } from './_set-species-3f8319f5.js';
|
|
19
|
+
import Dropdown from 'react-bootstrap/Dropdown';
|
|
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
|
-
_collection(SET, function (get) {
|
|
289
|
+
var es6_set = _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)
|
|
@@ -370,39 +370,39 @@ module.exports = { "default": set, __esModule: true };
|
|
|
370
370
|
|
|
371
371
|
var _Set = unwrapExports(set$1);
|
|
372
372
|
|
|
373
|
-
/* usage & query
|
|
374
|
-
const Publication = (props) => {
|
|
375
|
-
const { cache, pub, year } = props
|
|
376
|
-
|
|
377
|
-
const targeting = {
|
|
378
|
-
content_placement: [`/journals/${pub.identifier.current}`],
|
|
379
|
-
document_url: [`/journals/${pub.identifier.current}`],
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
return (
|
|
383
|
-
<Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
|
|
384
|
-
<PublicationLanding publication={pub} year={year} href={'journals'} />
|
|
385
|
-
</Shell>
|
|
386
|
-
)
|
|
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
|
-
|
|
405
|
-
export default Publication
|
|
373
|
+
/* usage & query
|
|
374
|
+
const Publication = (props) => {
|
|
375
|
+
const { cache, pub, year } = props
|
|
376
|
+
|
|
377
|
+
const targeting = {
|
|
378
|
+
content_placement: [`/journals/${pub.identifier.current}`],
|
|
379
|
+
document_url: [`/journals/${pub.identifier.current}`],
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
return (
|
|
383
|
+
<Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
|
|
384
|
+
<PublicationLanding publication={pub} year={year} href={'journals'} />
|
|
385
|
+
</Shell>
|
|
386
|
+
)
|
|
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
|
+
|
|
405
|
+
export default Publication
|
|
406
406
|
*/
|
|
407
407
|
|
|
408
408
|
var generateContentPlacements = function generateContentPlacements(issues) {
|
|
@@ -425,9 +425,9 @@ var PublicationLanding = function PublicationLanding(props) {
|
|
|
425
425
|
var publication = props.publication,
|
|
426
426
|
_props$year = props.year,
|
|
427
427
|
year = _props$year === undefined ? '' : _props$year,
|
|
428
|
-
href = props.href
|
|
429
|
-
props.pdf
|
|
430
|
-
|
|
428
|
+
href = props.href,
|
|
429
|
+
pdf = props.pdf,
|
|
430
|
+
_props$contentPlaceme = props.contentPlacement,
|
|
431
431
|
contentPlacement = _props$contentPlaceme === undefined ? '' : _props$contentPlaceme;
|
|
432
432
|
|
|
433
433
|
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
|
|
2
|
-
import { _ as _toConsumableArray } from './toConsumableArray-fa2dcda7.js';
|
|
3
|
-
import { _ as _extends } from './extends-31d65aba.js';
|
|
4
|
-
import React, { useEffect, useState, useRef } from 'react';
|
|
5
|
-
import { Container, Media } from 'react-bootstrap';
|
|
6
|
-
import { i as imageUrlBuilder } from './index-3f5c03b2.js';
|
|
7
|
-
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
8
|
-
import { m as moment } from './moment-bc12cb97.js';
|
|
9
|
-
import { V as VisibilitySensor } from './visibility-sensor-082c757b.js';
|
|
10
|
-
import { l as lib_3 } from './index-888f9253.js';
|
|
11
|
-
import { useRouter } from 'next/router';
|
|
12
|
-
import { L as LazyLoad } from './index-752d1dae.js';
|
|
13
|
-
import { m as main_40 } from './main-1450d277.js';
|
|
14
|
-
import { c as clean_html_1 } from './entities-932b50cf.js';
|
|
15
|
-
import { A as ADInfeed } from './ADInfeed-c12cd1ce.js';
|
|
16
|
-
import { A as AuthorComponent } from './AuthorComponent-c7ff069f.js';
|
|
17
|
-
import { l as lodash } from './lodash-ad27652f.js';
|
|
18
|
-
import { A as ADlgInfeed } from './ADlgInfeed-246a8787.js';
|
|
19
|
-
import { g as getContentCategory } from './getContentCategory-15dcc413.js';
|
|
20
|
-
import timeDifferenceCalc from './timeDifferenceCalc.js';
|
|
21
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
22
|
-
import './
|
|
23
|
-
import './es6.string.iterator-
|
|
24
|
-
import './
|
|
25
|
-
import './
|
|
26
|
-
import './
|
|
2
|
+
import './_to-object-a4107da3.js';
|
|
3
|
+
import './es6.string.iterator-c990c18c.js';
|
|
4
|
+
import './_library-528f1934.js';
|
|
5
|
+
import './_iter-detect-5d49a330.js';
|
|
6
|
+
import { _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
|
|
7
|
+
import './core.get-iterator-method-e1de7503.js';
|
|
27
8
|
import './_object-pie-33c40e79.js';
|
|
28
|
-
import '
|
|
9
|
+
import { _ as _extends } from './extends-eb69e8ac.js';
|
|
10
|
+
import './web.dom.iterable-4439f05a.js';
|
|
11
|
+
import React, { useEffect, useState, useRef } from 'react';
|
|
12
|
+
import { l as lib_3 } from './index-acfb8079.js';
|
|
29
13
|
import 'prop-types';
|
|
30
14
|
import 'react-bootstrap/Card';
|
|
31
|
-
import './
|
|
32
|
-
import '
|
|
15
|
+
import { m as moment } from './moment-12415288.js';
|
|
16
|
+
import { useRouter } from 'next/router';
|
|
33
17
|
import './isSymbol-1981418f.js';
|
|
18
|
+
import './debounce-9207d8ee.js';
|
|
34
19
|
import './toNumber-2f7a84cd.js';
|
|
35
|
-
import './
|
|
36
|
-
import '
|
|
37
|
-
import './
|
|
38
|
-
import './
|
|
39
|
-
import './
|
|
20
|
+
import { I as InfiniteScroll } from './index.es-7dda2f0a.js';
|
|
21
|
+
import 'react-dom';
|
|
22
|
+
import { V as VisibilitySensor } from './visibility-sensor-082c757b.js';
|
|
23
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
24
|
+
import { L as LazyLoad } from './index-c5fd0af5.js';
|
|
25
|
+
import { m as main_39 } from './main-aef58dbc.js';
|
|
26
|
+
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
27
|
+
import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
28
|
+
import './stringify-4330ccdc.js';
|
|
29
|
+
import './asyncToGenerator-502f13b4.js';
|
|
30
|
+
import './_set-species-3f8319f5.js';
|
|
40
31
|
import './Segment.js';
|
|
32
|
+
import './Beam.js';
|
|
33
|
+
import './AdSlot.js';
|
|
34
|
+
import { A as ADInfeed } from './ADInfeed-1cba8312.js';
|
|
35
|
+
import { l as lodash } from './lodash-ec8c6b48.js';
|
|
36
|
+
import { A as ADlgInfeed } from './ADlgInfeed-fe7ad144.js';
|
|
37
|
+
import { g as getContentCategory } from './getContentCategory-15dcc413.js';
|
|
38
|
+
import { A as AuthorComponent } from './AuthorComponent-8ffd4679.js';
|
|
39
|
+
import { Container, Media } from 'react-bootstrap';
|
|
40
|
+
import timeDifferenceCalc from './timeDifferenceCalc.js';
|
|
41
41
|
|
|
42
42
|
var urlFor = function urlFor(source, builder) {
|
|
43
43
|
return builder.image(source).auto('format');
|
|
@@ -764,7 +764,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
764
764
|
React.createElement(
|
|
765
765
|
'div',
|
|
766
766
|
null,
|
|
767
|
-
|
|
767
|
+
main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd(index, numberOfItemsBeforeAd, rightItems)
|
|
768
768
|
)
|
|
769
769
|
)
|
|
770
770
|
);
|
|
@@ -1270,7 +1270,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
1270
1270
|
React.createElement(
|
|
1271
1271
|
'div',
|
|
1272
1272
|
null,
|
|
1273
|
-
|
|
1273
|
+
main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd(index, numberOfItemsBeforeAd, rightItems)
|
|
1274
1274
|
)
|
|
1275
1275
|
)
|
|
1276
1276
|
);
|
package/dist/esm/RecentNews.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './moment-bc12cb97.js';
|
|
3
|
-
import { i as imageUrlBuilder } from './index-3f5c03b2.js';
|
|
4
|
-
import { a as FaLongArrowAltRight } from './index.esm-a8ff922c.js';
|
|
5
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import './moment-12415288.js';
|
|
4
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
6
5
|
import './iconBase-602d52fe.js';
|
|
6
|
+
import { a as FaLongArrowAltRight } from './index.esm-a8ff922c.js';
|
|
7
7
|
|
|
8
8
|
var RecentNews = function RecentNews(_ref) {
|
|
9
9
|
var client = _ref.client,
|
|
@@ -18,7 +18,7 @@ var RecentNews = function RecentNews(_ref) {
|
|
|
18
18
|
_ref$linkTitle = _ref.linkTitle,
|
|
19
19
|
linkTitle = _ref$linkTitle === undefined ? 'View More ' : _ref$linkTitle;
|
|
20
20
|
|
|
21
|
-
imageUrlBuilder(client);
|
|
21
|
+
var builder = imageUrlBuilder(client);
|
|
22
22
|
var topArticle = dataRecord[0];
|
|
23
23
|
var subArticles = dataRecord.slice(1, dataRecord.length);
|
|
24
24
|
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { m as moment } from './moment-bc12cb97.js';
|
|
3
|
-
import 'react-bootstrap/Media';
|
|
4
|
-
import { i as imageUrlBuilder } from './index-3f5c03b2.js';
|
|
5
|
-
import { L as LazyLoad } from './index-752d1dae.js';
|
|
6
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
7
|
-
import 'react
|
|
2
|
+
import React from 'react';
|
|
8
3
|
import 'prop-types';
|
|
4
|
+
import { m as moment } from './moment-12415288.js';
|
|
5
|
+
import 'react-dom';
|
|
6
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
7
|
+
import { L as LazyLoad } from './index-c5fd0af5.js';
|
|
8
|
+
import 'react-bootstrap/Media';
|
|
9
|
+
|
|
10
|
+
/*
|
|
11
|
+
Sample query
|
|
12
|
+
let references = ''
|
|
13
|
+
if(article.taxonomyMapping.length > 0){
|
|
14
|
+
article.taxonomyMapping.forEach((ref, index) => {
|
|
15
|
+
references = references + `references('${ref._ref}') `
|
|
16
|
+
if(index+1 !== article.taxonomyMapping.length){
|
|
17
|
+
references = references + ` && `
|
|
18
|
+
}
|
|
19
|
+
})
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
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] {
|
|
23
|
+
...,
|
|
24
|
+
title,
|
|
25
|
+
summary,
|
|
26
|
+
thumbnail,
|
|
27
|
+
url,
|
|
28
|
+
published,
|
|
29
|
+
authorMapping[]->,
|
|
30
|
+
contentCategory->
|
|
31
|
+
}`
|
|
32
|
+
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
33
|
+
|
|
34
|
+
Sample usage
|
|
35
|
+
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
36
|
+
|
|
9
37
|
|
|
10
|
-
/*
|
|
11
|
-
Sample query
|
|
12
|
-
let references = ''
|
|
13
|
-
if(article.taxonomyMapping.length > 0){
|
|
14
|
-
article.taxonomyMapping.forEach((ref, index) => {
|
|
15
|
-
references = references + `references('${ref._ref}') `
|
|
16
|
-
if(index+1 !== article.taxonomyMapping.length){
|
|
17
|
-
references = references + ` && `
|
|
18
|
-
}
|
|
19
|
-
})
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
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] {
|
|
23
|
-
...,
|
|
24
|
-
title,
|
|
25
|
-
summary,
|
|
26
|
-
thumbnail,
|
|
27
|
-
url,
|
|
28
|
-
published,
|
|
29
|
-
authorMapping[]->,
|
|
30
|
-
contentCategory->
|
|
31
|
-
}`
|
|
32
|
-
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
33
|
-
|
|
34
|
-
Sample usage
|
|
35
|
-
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
36
|
-
|
|
37
|
-
|
|
38
38
|
*/
|
|
39
39
|
var RelatedContent = function RelatedContent(props) {
|
|
40
40
|
var client = props.client,
|
|
@@ -14,16 +14,16 @@ 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) {
|
package/dist/esm/Search.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
+
import './_to-object-a4107da3.js';
|
|
3
|
+
import './es6.string.iterator-c990c18c.js';
|
|
4
|
+
import './core.get-iterator-method-e1de7503.js';
|
|
5
|
+
import './web.dom.iterable-4439f05a.js';
|
|
2
6
|
import React, { useState } from 'react';
|
|
7
|
+
import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
8
|
+
import Button from 'react-bootstrap/Button';
|
|
3
9
|
import Form from 'react-bootstrap/Form';
|
|
4
10
|
import FormControl from 'react-bootstrap/FormControl';
|
|
5
|
-
import Button from 'react-bootstrap/Button';
|
|
6
|
-
import './_commonjsHelpers-0c4b6f40.js';
|
|
7
|
-
import './web.dom.iterable-035980f3.js';
|
|
8
|
-
import './es6.string.iterator-aa6068a3.js';
|
|
9
|
-
import './_to-object-97770c52.js';
|
|
10
|
-
import './core.get-iterator-method-d1d5ed02.js';
|
|
11
11
|
|
|
12
12
|
var Search = function Search(props) {
|
|
13
13
|
var _props$placeholder = props.placeholder,
|
package/dist/esm/Segment.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-2bd4099a.js';
|
|
2
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
3
|
-
import './
|
|
4
|
-
import './
|
|
5
|
-
import './web.dom.iterable-035980f3.js';
|
|
2
|
+
import './_to-object-a4107da3.js';
|
|
3
|
+
import './es6.string.iterator-c990c18c.js';
|
|
6
4
|
import './_library-528f1934.js';
|
|
7
|
-
import './
|
|
8
|
-
import './
|
|
9
|
-
import './
|
|
5
|
+
import './_iter-detect-5d49a330.js';
|
|
6
|
+
import './core.get-iterator-method-e1de7503.js';
|
|
7
|
+
import './web.dom.iterable-4439f05a.js';
|
|
8
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-502f13b4.js';
|
|
9
|
+
import './_set-species-3f8319f5.js';
|
|
10
10
|
|
|
11
11
|
require("babel-polyfill");
|
|
12
12
|
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { _ as _toConsumableArray } from './toConsumableArray-fa2dcda7.js';
|
|
2
|
-
import { _ as _extends } from './extends-31d65aba.js';
|
|
3
|
-
import { _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
|
|
4
|
-
import React, { useState, useEffect, useRef } from 'react';
|
|
5
|
-
import { useRouter } from 'next/router';
|
|
6
|
-
import { l as lib_3 } from './index-888f9253.js';
|
|
7
|
-
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
8
|
-
import { S as SeriesSlider } from './SeriesSlider-6a1081ff.js';
|
|
9
|
-
import { V as VisibilitySensor } from './visibility-sensor-082c757b.js';
|
|
10
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
11
|
-
import './
|
|
12
|
-
import './
|
|
13
|
-
import './_iter-detect-
|
|
14
|
-
import './
|
|
2
|
+
import './_to-object-a4107da3.js';
|
|
3
|
+
import './es6.string.iterator-c990c18c.js';
|
|
4
|
+
import './_iter-detect-5d49a330.js';
|
|
5
|
+
import { _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
|
|
6
|
+
import './core.get-iterator-method-e1de7503.js';
|
|
15
7
|
import './_object-pie-33c40e79.js';
|
|
16
|
-
import './
|
|
8
|
+
import { _ as _extends } from './extends-eb69e8ac.js';
|
|
9
|
+
import './web.dom.iterable-4439f05a.js';
|
|
10
|
+
import React, { useState, useEffect, useRef } from 'react';
|
|
11
|
+
import { l as lib_3 } from './index-acfb8079.js';
|
|
17
12
|
import 'prop-types';
|
|
18
|
-
import '
|
|
19
|
-
import './index-
|
|
13
|
+
import { useRouter } from 'next/router';
|
|
14
|
+
import { I as InfiniteScroll } from './index.es-7dda2f0a.js';
|
|
20
15
|
import 'react-dom';
|
|
21
|
-
import './
|
|
22
|
-
import './index-
|
|
23
|
-
import './
|
|
16
|
+
import { V as VisibilitySensor } from './visibility-sensor-082c757b.js';
|
|
17
|
+
import './index-51a80699.js';
|
|
18
|
+
import './index-c5fd0af5.js';
|
|
19
|
+
import './main-aef58dbc.js';
|
|
20
|
+
import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
21
|
+
import './index-c7e2ac95.js';
|
|
22
|
+
import './smoothscroll-0cd4c7a6.js';
|
|
23
|
+
import { S as SeriesSlider } from './SeriesSlider-19a24623.js';
|
|
24
24
|
|
|
25
25
|
var usePrevious = function usePrevious(value) {
|
|
26
26
|
var ref = useRef();
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
|
|
2
1
|
import React, { useRef, useState, useEffect } from 'react';
|
|
2
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
3
|
+
import { L as LazyLoad } from './index-c5fd0af5.js';
|
|
4
|
+
import { m as main_39, a as main_44, b as main_38 } from './main-aef58dbc.js';
|
|
5
|
+
import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
3
6
|
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
4
|
-
import {
|
|
5
|
-
import { s as smoothscroll } from './smoothscroll-fa4e3f8c.js';
|
|
6
|
-
import { i as imageUrlBuilder } from './index-3f5c03b2.js';
|
|
7
|
-
import { m as main_40, a as main_45, b as main_39 } from './main-1450d277.js';
|
|
7
|
+
import { s as smoothscroll } from './smoothscroll-0cd4c7a6.js';
|
|
8
8
|
|
|
9
|
-
/*
|
|
10
|
-
GROQ query -
|
|
11
|
-
accepts an array of title, URL
|
|
12
|
-
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
9
|
+
/*
|
|
10
|
+
GROQ query -
|
|
11
|
+
accepts an array of title, URL
|
|
12
|
+
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
var SeriesSlider = function SeriesSlider(_ref) {
|
|
@@ -105,13 +105,13 @@ var SeriesSlider = function SeriesSlider(_ref) {
|
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
if (
|
|
108
|
+
if (main_39) {
|
|
109
109
|
thumbSize = Math.floor((viewableArea.current.clientWidth - tileDividerWidth) / 2);
|
|
110
110
|
if (dataset.length > 2) {
|
|
111
111
|
scrollerVisible = true;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
if (
|
|
114
|
+
if (main_44) {
|
|
115
115
|
thumbSize = Math.floor((viewableArea.current.clientWidth - tileDividerWidth * 2) / 3);
|
|
116
116
|
if (dataset.length > 3) {
|
|
117
117
|
scrollerVisible = true;
|
|
@@ -187,10 +187,10 @@ var SeriesSlider = function SeriesSlider(_ref) {
|
|
|
187
187
|
if (viewableWindow.current.offsetWidth < 604) {
|
|
188
188
|
scrollDirection = innerSlider.current.offsetWidth - numberOfSlidesToScroll * 2;
|
|
189
189
|
}
|
|
190
|
-
if (
|
|
190
|
+
if (main_44) {
|
|
191
191
|
scrollDirection = innerSlider.current.offsetWidth - numberOfSlidesToScroll * 2;
|
|
192
192
|
}
|
|
193
|
-
if (
|
|
193
|
+
if (main_39) {
|
|
194
194
|
scrollDirection = innerSlider.current.offsetWidth - numberOfSlidesToScroll * 1;
|
|
195
195
|
}
|
|
196
196
|
}
|
|
@@ -297,7 +297,7 @@ var SeriesSlider = function SeriesSlider(_ref) {
|
|
|
297
297
|
React.createElement(
|
|
298
298
|
'style',
|
|
299
299
|
{ jsx: 'true' },
|
|
300
|
-
'\n .vid-slider * {\n box-sizing: border-box;\n -ms-overflow-style: none;\n }\n .vid-slider::-webkit-scrollbar-thumb {\n display: none;\n }\n .vid-slider::-webkit-scrollbar {\n display: none;\n }\n .vid-slider .row::-webkit-scrollbar {\n display: none;\n }\n .vid-slider .row {\n margin: 0 -14px;\n }\n .vid-slider .row::-webkit-scrollbar-thumb {\n display: none;\n }\n .vid-slider {\n position: relative;\n -ms-overflow-style: none;\n padding: 0 2.5rem;\n margin-bottom: 2rem;\n max-width: 800px;\n margin-left: auto;\n margin-right: auto;\n }\n .vid-slider.col {\n padding: 0 1.15rem 0 2.75rem;\n }\n .vid-slider .now-playing {\n position: absolute;\n top: 0.5rem;\n left: 1rem;\n color: white;\n background: rgba(0, 0, 0, 0.75);\n }\n .vid-slider h1,\n .vid-slider p {\n text-align: center;\n width: 100%;\n max-width: 500px;\n margin: auto;\n }\n .vid-slider a:link,\n .vid-slider a:hover,\n .vid-slider a:active,\n .vid-slider a:visited {\n transition: color 150ms;\n color: #95a5a6;\n text-decoration: none;\n }\n .vid-slider .contain {\n width: 100%;\n }\n .vid-slider .row {\n overflow-x: hidden;\n width: 100%;\n -ms-overflow-style: none;\n overflow-y: hidden !important;\n }\n .vid-slider .tile__info {\n white-space: normal !important;\n position: absolute;\n width: 100%;\n text-align: center;\n color: ' + (dark ? 'white' : '#383838') + ';\n opacity: 1;\n font-size: 0.9rem;\n font-weight: bold;\n transition: opacity 0.25s;\n }\n .vid-slider .row__inner {\n display: flex;\n transition: 450ms -webkit-transform;\n transition: 450ms transform;\n transition: 450ms transform, 450ms -webkit-transform;\n font-size: 0;\n white-space: nowrap;\n margin-top: 1.5rem !important;\n padding-bottom: 10px;\n padding-left: 0;\n }\n .vid-slider .tile {\n position: relative;\n display: inline-block;\n height: 100%;\n margin-right: 0.5rem;\n font-size: 20px;\n cursor: pointer;\n transition: 450ms all;\n -webkit-transform-origin: center left;\n transform-origin: center left;\n }\n .vid-slider .tile:first-child {\n margin-left: 0;\n }\n .vid-slider .tile__img {\n height: auto;\n border-radius: 3px;\n -o-object-fit: cover;\n object-fit: cover;\n object-position: center;\n }\n .vid-slider .tile__details {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n font-size: 10px;\n opacity: 0;\n background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);\n transition: 450ms opacity;\n }\n .vid-slider .tile__details:after,\n .vid-slider .tile__details:before {\n content: \'\';\n\n position: absolute;\n top: 50%;\n left: 50%;\n display: #000;\n }\n .vid-slider .tile__details:after {\n margin-top: -25px;\n margin-left: -25px;\n width: 50px;\n height: 50px;\n border: 3px solid #ecf0f1;\n line-height: 50px;\n text-align: center;\n border-radius: 100%;\n background: rgba(0, 0, 0, 0.5);\n z-index: 1;\n }\n .vid-slider .tile__details:before {\n content: \'\';\n background: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 64 64\' width=\'64\' height=\'64\' fill=\'white\'><path d=\'M26 46 L46 32 L26 18 Z\'/></svg>")\n no-repeat center center;\n left: 0;\n width: 100%;\n height: 3rem;\n font-size: 30px;\n margin-right: 12px;\n margin-top: -24px;\n text-align: center;\n z-index: 2;\n color: white;\n }\n\n .tile__media {\n overflow: hidden;\n display: flex;\n justify-content: center;\n align-items: flex-start;\n box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);\n border-radius: 3px;\n }\n\n .vid-slider .tile__title {\n white-space: normal !important;\n max-width: ' + tileSize + 'px;\n text-align: center;\n color: ' + (dark ? 'white' : '#383838') + ';\n opacity: 1;\n font-size: ' + (
|
|
300
|
+
'\n .vid-slider * {\n box-sizing: border-box;\n -ms-overflow-style: none;\n }\n .vid-slider::-webkit-scrollbar-thumb {\n display: none;\n }\n .vid-slider::-webkit-scrollbar {\n display: none;\n }\n .vid-slider .row::-webkit-scrollbar {\n display: none;\n }\n .vid-slider .row {\n margin: 0 -14px;\n }\n .vid-slider .row::-webkit-scrollbar-thumb {\n display: none;\n }\n .vid-slider {\n position: relative;\n -ms-overflow-style: none;\n padding: 0 2.5rem;\n margin-bottom: 2rem;\n max-width: 800px;\n margin-left: auto;\n margin-right: auto;\n }\n .vid-slider.col {\n padding: 0 1.15rem 0 2.75rem;\n }\n .vid-slider .now-playing {\n position: absolute;\n top: 0.5rem;\n left: 1rem;\n color: white;\n background: rgba(0, 0, 0, 0.75);\n }\n .vid-slider h1,\n .vid-slider p {\n text-align: center;\n width: 100%;\n max-width: 500px;\n margin: auto;\n }\n .vid-slider a:link,\n .vid-slider a:hover,\n .vid-slider a:active,\n .vid-slider a:visited {\n transition: color 150ms;\n color: #95a5a6;\n text-decoration: none;\n }\n .vid-slider .contain {\n width: 100%;\n }\n .vid-slider .row {\n overflow-x: hidden;\n width: 100%;\n -ms-overflow-style: none;\n overflow-y: hidden !important;\n }\n .vid-slider .tile__info {\n white-space: normal !important;\n position: absolute;\n width: 100%;\n text-align: center;\n color: ' + (dark ? 'white' : '#383838') + ';\n opacity: 1;\n font-size: 0.9rem;\n font-weight: bold;\n transition: opacity 0.25s;\n }\n .vid-slider .row__inner {\n display: flex;\n transition: 450ms -webkit-transform;\n transition: 450ms transform;\n transition: 450ms transform, 450ms -webkit-transform;\n font-size: 0;\n white-space: nowrap;\n margin-top: 1.5rem !important;\n padding-bottom: 10px;\n padding-left: 0;\n }\n .vid-slider .tile {\n position: relative;\n display: inline-block;\n height: 100%;\n margin-right: 0.5rem;\n font-size: 20px;\n cursor: pointer;\n transition: 450ms all;\n -webkit-transform-origin: center left;\n transform-origin: center left;\n }\n .vid-slider .tile:first-child {\n margin-left: 0;\n }\n .vid-slider .tile__img {\n height: auto;\n border-radius: 3px;\n -o-object-fit: cover;\n object-fit: cover;\n object-position: center;\n }\n .vid-slider .tile__details {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n font-size: 10px;\n opacity: 0;\n background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);\n transition: 450ms opacity;\n }\n .vid-slider .tile__details:after,\n .vid-slider .tile__details:before {\n content: \'\';\n\n position: absolute;\n top: 50%;\n left: 50%;\n display: #000;\n }\n .vid-slider .tile__details:after {\n margin-top: -25px;\n margin-left: -25px;\n width: 50px;\n height: 50px;\n border: 3px solid #ecf0f1;\n line-height: 50px;\n text-align: center;\n border-radius: 100%;\n background: rgba(0, 0, 0, 0.5);\n z-index: 1;\n }\n .vid-slider .tile__details:before {\n content: \'\';\n background: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 64 64\' width=\'64\' height=\'64\' fill=\'white\'><path d=\'M26 46 L46 32 L26 18 Z\'/></svg>")\n no-repeat center center;\n left: 0;\n width: 100%;\n height: 3rem;\n font-size: 30px;\n margin-right: 12px;\n margin-top: -24px;\n text-align: center;\n z-index: 2;\n color: white;\n }\n\n .tile__media {\n overflow: hidden;\n display: flex;\n justify-content: center;\n align-items: flex-start;\n box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);\n border-radius: 3px;\n }\n\n .vid-slider .tile__title {\n white-space: normal !important;\n max-width: ' + tileSize + 'px;\n text-align: center;\n color: ' + (dark ? 'white' : '#383838') + ';\n opacity: 1;\n font-size: ' + (main_38 ? '0.75rem' : '0.9rem') + ';\n font-weight: normal;\n transition: opacity 0.25s;\n }\n\n .vid-slider .tile__slider-prev,\n .vid-slider .tile__slider-next {\n width: 30px;\n background: transparent;\n border: none;\n position: absolute;\n transform: translateY(-50%);\n z-index: 99;\n cursor: pointer;\n color: ' + (dark ? 'white' : 'black') + ';\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 2rem;\n margin-left: 10px;\n margin-right: 10px;\n box-shadow: 1px 3px 7px rgba(0, 0, 0, 0.5);\n }\n .vid-slider .tile__slider-prev {\n left: -.9rem;\n padding: 1rem;\n }\n .vid-slider .tile__slider-next {\n right: -0.5rem;\n padding: 1rem;\n }\n .vid-slider,\n .vid-slider .row {\n padding-right: 0 1.2rem;\n }\n\n .vid-slider .row::-webkit-scrollbar-thumb {\n background-color: transparent !important;\n }\n .vid-slider i {\n border: solid ' + (dark ? 'white' : 'black') + ';\n border-width: 0 4px 4px 0;\n display: inline-block;\n padding: 4px;\n pointer-events: none;\n }\n .vid-slider .right {\n transform: rotate(-45deg);\n -webkit-transform: rotate(-45deg);\n }\n .vid-slider .left {\n transform: rotate(135deg);\n -webkit-transform: rotate(135deg);\n }\n .vidHolder {\n max-width: 805px;\n }\n @media screen and (max-width: 1399px) {\n .vid-slider {\n max-width: 615px;\n margin: 0 auto;\n }\n .vid-slider .tile__img {\n }\n }\n @media screen and (max-width: 1200px) {\n .vid-slider {\n max-width: 580px;\n }\n }\n @media screen and (max-width: 967px) {\n .vid-slider {\n max-width: 100%;\n }\n .vid-slider .tile__img {\n }\n }\n\n @media screen and (max-width: 768px) {\n #vidHolder {\n position: unset;\n width: 100%;\n }\n\n .vid-slider .tile__img {\n }\n .vid-slider .row__inner {\n margin-top: 1.5rem !important;\n }\n }\n\n @media screen and (max-width: 590px) {\n .vid-slider .tile__img {\n }\n }\n '
|
|
301
301
|
)
|
|
302
302
|
);
|
|
303
303
|
};
|
package/dist/esm/SetCookie.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as js_cookie } from './js.cookie-6874175c.js';
|
|
2
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
+
import { j as js_cookie } from './js.cookie-6874175c.js';
|
|
3
3
|
|
|
4
4
|
var SetCookie = function SetCookie(key, value) {
|
|
5
5
|
js_cookie.set(key, value, { expires: 1, sameSite: 'none', secure: true });
|
package/dist/esm/SideFooter.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { _ as _defineProperty } from './defineProperty-ea516b15.js';
|
|
2
|
-
import React, { useRef, useEffect } from 'react';
|
|
3
|
-
import { r as reactSocialIcons_1 } from './react-social-icons-91f9716f.js';
|
|
4
|
-
import { g as get_1 } from './get-1e515072.js';
|
|
5
|
-
import Segment from './Segment.js';
|
|
6
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
7
|
-
import './
|
|
8
|
-
import './
|
|
2
|
+
import './_to-object-a4107da3.js';
|
|
3
|
+
import './es6.string.iterator-c990c18c.js';
|
|
4
|
+
import './_library-528f1934.js';
|
|
5
|
+
import './_iter-detect-5d49a330.js';
|
|
6
|
+
import './core.get-iterator-method-e1de7503.js';
|
|
7
|
+
import './define-property-8af5f002.js';
|
|
8
|
+
import './web.dom.iterable-4439f05a.js';
|
|
9
|
+
import React, { useRef, useEffect } from 'react';
|
|
9
10
|
import 'prop-types';
|
|
10
11
|
import './isSymbol-1981418f.js';
|
|
12
|
+
import './asyncToGenerator-502f13b4.js';
|
|
13
|
+
import './_set-species-3f8319f5.js';
|
|
14
|
+
import Segment from './Segment.js';
|
|
15
|
+
import { g as get_1 } from './get-1e515072.js';
|
|
11
16
|
import './eq-b470f743.js';
|
|
12
|
-
import './
|
|
13
|
-
import './
|
|
14
|
-
import './web.dom.iterable-035980f3.js';
|
|
15
|
-
import './_library-528f1934.js';
|
|
16
|
-
import './core.get-iterator-method-d1d5ed02.js';
|
|
17
|
-
import './_set-species-494ed292.js';
|
|
18
|
-
import './_iter-detect-48516cd3.js';
|
|
17
|
+
import { r as reactSocialIcons_1 } from './react-social-icons-3822f1ce.js';
|
|
18
|
+
import { _ as _defineProperty } from './defineProperty-94fd8bfc.js';
|
|
19
19
|
|
|
20
20
|
var year = new Date().getFullYear();
|
|
21
21
|
|
|
@@ -35,8 +35,8 @@ var renderLink = function renderLink(row) {
|
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
var SideFooter = function SideFooter(props) {
|
|
38
|
-
/*
|
|
39
|
-
useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
|
|
38
|
+
/*
|
|
39
|
+
useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
|
|
40
40
|
*/
|
|
41
41
|
var _get = get_1(props, 'cache.siteSettingCache', {}),
|
|
42
42
|
socialLinks = _get.socialLinks,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
|
|
2
1
|
import React, { useState, useRef, useEffect } from 'react';
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
2
|
+
import { f as main_31, c as main_40 } from './main-aef58dbc.js';
|
|
3
|
+
import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
5
4
|
import { I as IconContext } from './iconBase-602d52fe.js';
|
|
5
|
+
import Button from 'react-bootstrap/Button';
|
|
6
6
|
import Form from 'react-bootstrap/Form';
|
|
7
|
+
import { G as GoSearch } from './index.esm-8ee5ff72.js';
|
|
8
|
+
import SocialIcons from './SocialIcons.js';
|
|
7
9
|
import FormControl from 'react-bootstrap/FormControl';
|
|
8
|
-
import Button from 'react-bootstrap/Button';
|
|
9
|
-
import { f as main_31, c as main_41 } from './main-1450d277.js';
|
|
10
10
|
|
|
11
11
|
var SocialSearchComponent = function SocialSearchComponent(_ref) {
|
|
12
12
|
var type = _ref.type,
|
|
@@ -68,14 +68,14 @@ var SocialSearchComponent = function SocialSearchComponent(_ref) {
|
|
|
68
68
|
var searchBtn = document.getElementsByClassName(selector)[0];
|
|
69
69
|
if (searchBtn && searchBtn.classList && searchBtn.classList.contains(addOn)) {
|
|
70
70
|
// Set overflow fix for iPhones safari browsers
|
|
71
|
-
if (
|
|
71
|
+
if (main_40 || window.innerWidth < 1200 && main_31) {
|
|
72
72
|
var mainNav = document.querySelector('#navbar-ham');
|
|
73
73
|
if (mainNav && mainNav.style) mainNav.style.overflow = 'auto';
|
|
74
74
|
}
|
|
75
75
|
searchBtn.classList.remove(addOn);
|
|
76
76
|
} else if (searchBtn && searchBtn.classList) {
|
|
77
77
|
// Set overflow fix for iPhones safari browsers
|
|
78
|
-
if (
|
|
78
|
+
if (main_40 || window.innerWidth < 1200 && main_31) {
|
|
79
79
|
var _mainNav = document.querySelector('#navbar-ham');
|
|
80
80
|
if (_mainNav && _mainNav.style) _mainNav.style.overflow = 'visible';
|
|
81
81
|
}
|