@mjhls/mjh-framework 1.0.817-image-crop-test-v3 → 1.0.817
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 +2 -3
- package/dist/cjs/AdSlotsProvider.js +2 -3
- package/dist/cjs/AlgoliaSearch.js +17 -14099
- package/dist/cjs/ArticleCarousel.js +1 -2
- package/dist/cjs/ArticleProgramLandingPage.js +5 -7
- package/dist/cjs/ArticleSeriesLandingPage.js +4 -5
- package/dist/cjs/ArticleSeriesListing.js +4 -6
- 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 +24 -19
- package/dist/cjs/DeckContent.js +25 -20
- package/dist/cjs/DeckQueue.js +17 -11
- package/dist/cjs/{Dfp-93399f8c.js → Dfp-3f0ed4c8.js} +1 -2
- package/dist/cjs/EventsDeck.js +18 -18
- package/dist/cjs/ExternalResources.js +5 -7
- package/dist/cjs/Feature.js +10 -6
- package/dist/cjs/ForbesHero.js +13 -11
- package/dist/cjs/GridContent.js +29 -24
- package/dist/cjs/GridHero.js +19 -10
- package/dist/cjs/GroupDeck.js +8 -4
- package/dist/cjs/HamMagazine.js +15 -15
- package/dist/cjs/Hero.js +14 -3
- package/dist/cjs/HorizontalArticleListing.js +5 -7
- package/dist/cjs/HorizontalHero.js +8 -7
- package/dist/cjs/IssueContentDeck.js +27 -10
- package/dist/cjs/IssueDeck.js +12 -10
- package/dist/cjs/IssueLanding.js +36 -38
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +2 -3
- package/dist/cjs/MasterDeck.js +13 -14
- package/dist/cjs/MediaSeriesLanding.js +407 -307
- 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 +7 -6
- package/dist/cjs/OncliveLargeHero.js +22 -21
- package/dist/cjs/PartnerDetailListing.js +16 -13
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PubSection.js +4 -6
- package/dist/cjs/PublicationDeck.js +12 -10
- package/dist/cjs/PublicationLanding.js +29 -26
- package/dist/cjs/QueueDeckExpanded.js +72 -74
- package/dist/cjs/RecentNews.js +8 -5
- package/dist/cjs/RelatedContent.js +38 -35
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SeriesListingDeck.js +3 -5
- package/dist/cjs/{SeriesSlider-d54fa925.js → SeriesSlider-2db54929.js} +12 -7
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/{SocialSearchComponent-ecb4f972.js → SocialSearchComponent-948138c7.js} +3 -3
- package/dist/cjs/TaxonomyCard.js +14 -11
- package/dist/cjs/TaxonomyDescription.js +5 -7
- package/dist/cjs/TemplateNormal.js +7 -8
- package/dist/cjs/ThumbnailCard.js +10 -6
- package/dist/cjs/Ustream.js +4 -4
- package/dist/cjs/VerticalHero.js +7 -3
- package/dist/cjs/VideoProgramLandingPage.js +5 -7
- package/dist/cjs/VideoSeriesCard.js +8 -9
- package/dist/cjs/VideoSeriesLandingPage.js +4 -6
- package/dist/cjs/VideoSeriesListing.js +5 -7
- package/dist/cjs/View.js +16 -17
- package/dist/cjs/YahooHero.js +12 -10
- package/dist/cjs/YoutubeGroup.js +13 -9
- package/dist/cjs/getSerializers.js +5 -7
- 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-55c6de08.js → index-70971c54.js} +93 -49
- 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 +32 -19
- package/dist/cjs/{main-025fdc78.js → main-f1c77adb.js} +3 -3
- package/dist/cjs/urlFor.js +2 -34
- 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-f7d00a9a.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-db64f46d.js} +4 -4
- package/dist/esm/AccordionPanel.js +18 -18
- package/dist/esm/AdSlot.js +5 -6
- package/dist/esm/AdSlotsProvider.js +4 -5
- package/dist/esm/AlgoliaSearch.js +41 -14123
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +6 -7
- package/dist/esm/ArticleProgramLandingPage.js +17 -19
- package/dist/esm/ArticleSeriesLandingPage.js +12 -13
- package/dist/esm/ArticleSeriesListing.js +31 -33
- 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 +37 -32
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +68 -63
- package/dist/esm/DeckQueue.js +54 -48
- package/dist/esm/{Dfp-43f121ff.js → Dfp-be030f2a.js} +10 -11
- package/dist/esm/EventsDeck.js +81 -81
- package/dist/esm/ExternalResources.js +35 -37
- package/dist/esm/Feature.js +24 -20
- package/dist/esm/ForbesHero.js +33 -31
- package/dist/esm/GridContent.js +114 -109
- package/dist/esm/GridHero.js +40 -31
- package/dist/esm/GroupDeck.js +42 -38
- package/dist/esm/HamMagazine.js +95 -95
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +19 -8
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +31 -33
- package/dist/esm/HorizontalHero.js +26 -25
- package/dist/esm/IssueContentDeck.js +65 -48
- package/dist/esm/IssueDeck.js +45 -43
- package/dist/esm/IssueLanding.js +51 -53
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +16 -17
- package/dist/esm/MasterDeck.js +47 -48
- package/dist/esm/MediaSeriesLanding.js +434 -334
- 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 +19 -18
- package/dist/esm/OncliveLargeHero.js +59 -58
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +71 -68
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +14 -16
- package/dist/esm/PubToc.js +5 -5
- package/dist/esm/PublicationDeck.js +45 -43
- package/dist/esm/PublicationLanding.js +78 -75
- package/dist/esm/QueueDeckExpanded.js +260 -262
- package/dist/esm/RecentNews.js +24 -21
- package/dist/esm/RelatedContent.js +49 -46
- 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 -21
- package/dist/esm/{SeriesSlider-8f2aca58.js → SeriesSlider-c8477bf3.js} +30 -25
- 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 +46 -43
- package/dist/esm/TaxonomyDescription.js +13 -15
- package/dist/esm/TemplateNormal.js +30 -31
- package/dist/esm/ThumbnailCard.js +15 -11
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +18 -14
- package/dist/esm/VideoProgramLandingPage.js +24 -26
- package/dist/esm/VideoSeriesCard.js +18 -19
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesLandingPage.js +12 -14
- package/dist/esm/VideoSeriesListing.js +48 -50
- package/dist/esm/View.js +177 -178
- package/dist/esm/YahooHero.js +30 -28
- package/dist/esm/YoutubeGroup.js +40 -36
- 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 -10
- 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-2446af28.js → index-5cc7b406.js} +469 -4
- package/dist/esm/{index-35bdcc81.js → index-755f2cc2.js} +4 -4
- package/dist/esm/{index-e8c6a892.js → index-a30e3b71.js} +401 -357
- 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 +55 -43
- 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/urlFor.js +2 -34
- 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-7cf51090.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-2ee46b09.js → ADlgInfeed-bf24708d.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { _ as _extends } from './extends-60e0e1c6.js';
|
|
2
|
-
import
|
|
2
|
+
import React__default from 'react';
|
|
3
3
|
import ArticleCarousel from './ArticleCarousel.js';
|
|
4
|
-
import { I as IoIosArrowForward } from './index.esm-
|
|
5
|
-
import { B as BlockContent } from './BlockContent-
|
|
6
|
-
import { g as getSerializers } from './index-
|
|
4
|
+
import { I as IoIosArrowForward } from './index.esm-f6156a57.js';
|
|
5
|
+
import { B as BlockContent } from './BlockContent-c99c9a8d.js';
|
|
6
|
+
import { g as getSerializers } from './index-a30e3b71.js';
|
|
7
7
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
8
8
|
import './_to-object-b50e61c3.js';
|
|
9
9
|
import './_object-pie-133f504a.js';
|
|
@@ -16,17 +16,15 @@ import './_library-528f1934.js';
|
|
|
16
16
|
import './slicedToArray-be2f7a22.js';
|
|
17
17
|
import './core.get-iterator-method-133dfacd.js';
|
|
18
18
|
import './index-c7e2ac95.js';
|
|
19
|
-
import './index-
|
|
19
|
+
import './index-755f2cc2.js';
|
|
20
20
|
import 'react-dom';
|
|
21
21
|
import 'prop-types';
|
|
22
22
|
import './smoothscroll-fa4e3f8c.js';
|
|
23
|
-
import './urlFor.js';
|
|
24
23
|
import './index-0dbff1d1.js';
|
|
25
|
-
import './main-
|
|
26
|
-
import './iconBase-
|
|
24
|
+
import './main-d4165069.js';
|
|
25
|
+
import './iconBase-ccc56b97.js';
|
|
27
26
|
import 'react-bootstrap';
|
|
28
|
-
import './index-
|
|
29
|
-
import './events-6c3a7a63.js';
|
|
27
|
+
import './index-5cc7b406.js';
|
|
30
28
|
import 'next/router';
|
|
31
29
|
import './util-3ab476bf.js';
|
|
32
30
|
import './Beam.js';
|
|
@@ -34,7 +32,7 @@ import './stringify-59c8f690.js';
|
|
|
34
32
|
import './asyncToGenerator-7f8f9219.js';
|
|
35
33
|
import './_iter-detect-7e5e5ce2.js';
|
|
36
34
|
import './Segment.js';
|
|
37
|
-
import './brightcove-react-player-loader.es-
|
|
35
|
+
import './brightcove-react-player-loader.es-57a70a56.js';
|
|
38
36
|
import './GroupDeck.js';
|
|
39
37
|
import './moment-bc12cb97.js';
|
|
40
38
|
import './SocialShare.js';
|
|
@@ -71,59 +69,59 @@ function HorizontalArticleListing(_ref) {
|
|
|
71
69
|
// identifier: ...,
|
|
72
70
|
// data: Array of latest articles with videos
|
|
73
71
|
// }
|
|
74
|
-
return
|
|
72
|
+
return React__default.createElement(
|
|
75
73
|
'div',
|
|
76
74
|
null,
|
|
77
75
|
data.length > 0 ? data.map(function (taxonomy, index) {
|
|
78
|
-
return
|
|
79
|
-
|
|
76
|
+
return React__default.createElement(
|
|
77
|
+
React__default.Fragment,
|
|
80
78
|
null,
|
|
81
|
-
|
|
79
|
+
React__default.createElement(
|
|
82
80
|
'div',
|
|
83
81
|
{ key: 'articleCarousel_' + taxonomy.identifier + '_' + index, className: 'mb-3 horizontal-article' },
|
|
84
|
-
|
|
82
|
+
React__default.createElement(
|
|
85
83
|
'div',
|
|
86
84
|
{ className: 'horizontal-article-header', style: { borderBottom: '2px solid ' + color } },
|
|
87
|
-
|
|
85
|
+
React__default.createElement(
|
|
88
86
|
'div',
|
|
89
87
|
{ className: 'horizontal-article-title-wrapper' },
|
|
90
|
-
|
|
88
|
+
React__default.createElement(
|
|
91
89
|
'a',
|
|
92
90
|
{ href: '/' + taxonomy.identifier },
|
|
93
|
-
|
|
91
|
+
React__default.createElement(
|
|
94
92
|
'h4',
|
|
95
93
|
{ className: 'article-title-banner', style: { fontWeight: 'bold', color: 'var(--primary)', padding: '.25rem 0', margin: '0' } },
|
|
96
94
|
taxonomy.name
|
|
97
95
|
)
|
|
98
96
|
),
|
|
99
|
-
taxonomy.identifier &&
|
|
97
|
+
taxonomy.identifier && React__default.createElement(
|
|
100
98
|
'div',
|
|
101
99
|
{ style: { width: 'fit-content', whiteSpace: 'nowrap' } },
|
|
102
|
-
|
|
100
|
+
React__default.createElement(
|
|
103
101
|
'a',
|
|
104
102
|
{ href: '/' + taxonomy.identifier },
|
|
105
103
|
'View All ',
|
|
106
|
-
|
|
104
|
+
React__default.createElement(IoIosArrowForward, null)
|
|
107
105
|
)
|
|
108
106
|
)
|
|
109
107
|
),
|
|
110
|
-
taxonomy.summary &&
|
|
108
|
+
taxonomy.summary && React__default.createElement(
|
|
111
109
|
'div',
|
|
112
110
|
{ className: 'horizontal-article-summary' },
|
|
113
|
-
|
|
111
|
+
React__default.createElement(BlockContent, _extends({ serializers: getSerializers(client), blocks: taxonomy.summary, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
114
112
|
)
|
|
115
113
|
),
|
|
116
|
-
taxonomy.data.length > 0 ?
|
|
114
|
+
taxonomy.data.length > 0 ? React__default.createElement(
|
|
117
115
|
'div',
|
|
118
116
|
{ className: 'article-carousel' },
|
|
119
|
-
|
|
120
|
-
) :
|
|
117
|
+
React__default.createElement(ArticleCarousel, { articles: taxonomy.data, client: client })
|
|
118
|
+
) : React__default.createElement(
|
|
121
119
|
'div',
|
|
122
120
|
null,
|
|
123
|
-
|
|
121
|
+
React__default.createElement(
|
|
124
122
|
'h5',
|
|
125
123
|
{ className: 'mt-2' },
|
|
126
|
-
|
|
124
|
+
React__default.createElement(
|
|
127
125
|
'em',
|
|
128
126
|
{ className: 'pl-3' },
|
|
129
127
|
'New content coming soon, please check back later.'
|
|
@@ -131,19 +129,19 @@ function HorizontalArticleListing(_ref) {
|
|
|
131
129
|
)
|
|
132
130
|
)
|
|
133
131
|
),
|
|
134
|
-
|
|
132
|
+
React__default.createElement(
|
|
135
133
|
'style',
|
|
136
134
|
{ jsx: 'true' },
|
|
137
135
|
'\n .article-carousel {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n .horizontal-article-title-wrapper {\n display: flex;\n flex-wrap: no-wrap;\n align-items: center;\n justify-content: space-between;\n }\n '
|
|
138
136
|
)
|
|
139
137
|
);
|
|
140
|
-
}) :
|
|
138
|
+
}) : React__default.createElement(
|
|
141
139
|
'div',
|
|
142
140
|
null,
|
|
143
|
-
|
|
141
|
+
React__default.createElement(
|
|
144
142
|
'h5',
|
|
145
143
|
null,
|
|
146
|
-
|
|
144
|
+
React__default.createElement(
|
|
147
145
|
'em',
|
|
148
146
|
{ className: 'pl-3' },
|
|
149
147
|
'New content coming soon, please check back later.'
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import './moment-bc12cb97.js';
|
|
3
|
-
import
|
|
4
|
-
import { a as FaLongArrowAltRight } from './index.esm-
|
|
3
|
+
import { i as imageUrlBuilder } from './index-0dbff1d1.js';
|
|
4
|
+
import { a as FaLongArrowAltRight } from './index.esm-d4932dea.js';
|
|
5
5
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
6
|
-
import './
|
|
7
|
-
import './iconBase-602d52fe.js';
|
|
6
|
+
import './iconBase-ccc56b97.js';
|
|
8
7
|
|
|
9
8
|
var HorizontalHero = function HorizontalHero(props) {
|
|
10
9
|
var client = props.client;
|
|
11
10
|
|
|
12
|
-
|
|
11
|
+
var builder = imageUrlBuilder(client);
|
|
12
|
+
function urlFor(source) {
|
|
13
|
+
return builder.image(source).auto('format');
|
|
14
|
+
}
|
|
13
15
|
var topArticle = props.dataRecord[0];
|
|
14
16
|
var subArticles = props.dataRecord.slice(1, props.dataRecord.length);
|
|
15
17
|
var _props$heroTitle = props.heroTitle,
|
|
@@ -21,52 +23,51 @@ var HorizontalHero = function HorizontalHero(props) {
|
|
|
21
23
|
var topArticleThumbnail = '';
|
|
22
24
|
var topArticleAltText = topArticle.title;
|
|
23
25
|
if (topArticle.thumbnail && topArticle.thumbnail.asset) {
|
|
24
|
-
topArticleThumbnail = urlFor(
|
|
25
|
-
|
|
26
|
+
topArticleThumbnail = urlFor(topArticle.thumbnail.asset).width(350).url();
|
|
26
27
|
topArticleAltText = topArticle.thumbnail.asset.originalFileName;
|
|
27
28
|
}
|
|
28
29
|
if (props.thumbnail) {
|
|
29
30
|
topArticleThumbnail = props.thumbnail;
|
|
30
31
|
}
|
|
31
32
|
|
|
32
|
-
return
|
|
33
|
+
return React__default.createElement(
|
|
33
34
|
'div',
|
|
34
35
|
{ className: 'horizontal-hero-container', style: { borderRight: '3px solid ' + borderColor, borderTop: '3px solid ' + borderColor } },
|
|
35
|
-
|
|
36
|
+
React__default.createElement(
|
|
36
37
|
'div',
|
|
37
38
|
{ className: 'horizontal-hero-title' },
|
|
38
|
-
|
|
39
|
+
React__default.createElement(
|
|
39
40
|
'h2',
|
|
40
41
|
null,
|
|
41
42
|
heroTitle
|
|
42
43
|
),
|
|
43
|
-
|
|
44
|
+
React__default.createElement('div', null)
|
|
44
45
|
),
|
|
45
|
-
|
|
46
|
+
React__default.createElement(
|
|
46
47
|
'div',
|
|
47
48
|
{ className: 'horizontal-hero-inner' },
|
|
48
|
-
|
|
49
|
+
React__default.createElement(
|
|
49
50
|
'a',
|
|
50
51
|
{ href: '/view/' + topArticle.url.current, className: 'horizontal-hero-img' },
|
|
51
|
-
|
|
52
|
+
React__default.createElement('img', { style: { objectFit: props.imageSize ? props.imageSize : 'cover' }, src: topArticleThumbnail, alt: topArticleAltText })
|
|
52
53
|
),
|
|
53
|
-
|
|
54
|
+
React__default.createElement(
|
|
54
55
|
'div',
|
|
55
56
|
{ className: 'horizontal-articles-wrap' },
|
|
56
|
-
|
|
57
|
+
React__default.createElement(
|
|
57
58
|
'a',
|
|
58
59
|
{ href: '/view/' + topArticle.url.current, className: 'horizontal-article' },
|
|
59
|
-
|
|
60
|
+
React__default.createElement(
|
|
60
61
|
'p',
|
|
61
62
|
null,
|
|
62
63
|
topArticle.title
|
|
63
64
|
)
|
|
64
65
|
),
|
|
65
66
|
subArticles.map(function (article, index) {
|
|
66
|
-
return
|
|
67
|
+
return React__default.createElement(
|
|
67
68
|
'a',
|
|
68
69
|
{ key: index, href: '/view/' + article.url.current, className: 'horizontal-article' },
|
|
69
|
-
|
|
70
|
+
React__default.createElement(
|
|
70
71
|
'p',
|
|
71
72
|
null,
|
|
72
73
|
article.title
|
|
@@ -75,23 +76,23 @@ var HorizontalHero = function HorizontalHero(props) {
|
|
|
75
76
|
})
|
|
76
77
|
)
|
|
77
78
|
),
|
|
78
|
-
props.linkTo &&
|
|
79
|
+
props.linkTo && React__default.createElement(
|
|
79
80
|
'div',
|
|
80
81
|
{ className: 'horizontal-view-more' },
|
|
81
|
-
|
|
82
|
+
React__default.createElement(
|
|
82
83
|
'a',
|
|
83
84
|
{ href: props.linkTo },
|
|
84
85
|
props.linkTitle ? props.linkTitle : 'View More' + heroTitle,
|
|
85
86
|
' ',
|
|
86
87
|
' ',
|
|
87
|
-
|
|
88
|
+
React__default.createElement(
|
|
88
89
|
'span',
|
|
89
90
|
null,
|
|
90
|
-
|
|
91
|
+
React__default.createElement(FaLongArrowAltRight, { color: 'var(--primary)' })
|
|
91
92
|
)
|
|
92
93
|
)
|
|
93
94
|
),
|
|
94
|
-
|
|
95
|
+
React__default.createElement(
|
|
95
96
|
'style',
|
|
96
97
|
{ jsx: 'true' },
|
|
97
98
|
'\n .horizontal-hero-container {\n margin-bottom: 3rem;\n margin-top: 2rem;\n position: relative;\n }\n .horizontal-hero-title {\n position: absolute;\n top: -25px;\n background: white;\n z-index: 2;\n padding-right: 1rem;\n font-weight: bold;\n }\n .horizontal-hero-inner {\n display: flex;\n flex-direction: row;\n padding-top: 0.75rem;\n margin-top: 0.75rem;\n }\n\n .horizontal-articles-wrap {\n padding: 0 1rem;\n flex-basis: 60%;\n }\n\n .horizontal-hero-img {\n flex-basis: 40%;\n }\n .horizontal-hero-img img {\n width: 100%;\n height: 100%;\n \n }\n .horizontal-article {\n border-bottom: 1px solid #ccc;\n display: block;\n margin-bottom: 0.5rem;\n }\n .horizontal-article:hover {\n background: #eee;\n }\n .horizontal-article p {\n font-size: 1.1rem;\n margin-bottom: 0.5rem;\n font-weight: bold;\n color: #252525;\n }\n .horizontal-view-more {\n position: absolute;\n right: 0;\n margin-top: 0.25rem;\n font-weight: bold;\n }\n .horizontal-view-more span {\n display: inline-block;\n color: rgb(81, 116, 153);\n font-size: 1.2rem;\n }\n @media screen and (max-width: 1191px){\n \n .horizontal-article > p {\n font-size: 1rem;\n }\n }\n \n @media screen and (max-width: 768px) {\n .horizontal-hero-img {\n display: none;\n }\n .horizontal-articles-wrap {\n \n flex-basis: 100%;\n }\n }\n @media screen and (max-width: 495px) {\n \n .horizontal-article > p {\n font-size: 1rem;\n }\n }\n '
|
|
@@ -1,22 +1,43 @@
|
|
|
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 Card from 'react-bootstrap/Card';
|
|
5
5
|
import Badge from 'react-bootstrap/Badge';
|
|
6
|
-
import { L as LazyLoad } from './index-
|
|
7
|
-
import
|
|
6
|
+
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
7
|
+
import { i as imageUrlBuilder } from './index-0dbff1d1.js';
|
|
8
8
|
import { m as moment } from './moment-bc12cb97.js';
|
|
9
|
-
import { A as AuthorComponent } from './AuthorComponent-
|
|
9
|
+
import { A as AuthorComponent } from './AuthorComponent-30aeba69.js';
|
|
10
10
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
11
11
|
import 'react-dom';
|
|
12
12
|
import 'prop-types';
|
|
13
|
-
import './index-0dbff1d1.js';
|
|
14
13
|
import './slicedToArray-be2f7a22.js';
|
|
15
14
|
import './web.dom.iterable-4109ff68.js';
|
|
16
15
|
import './es6.string.iterator-bc33758b.js';
|
|
17
16
|
import './_to-object-b50e61c3.js';
|
|
18
17
|
import './core.get-iterator-method-133dfacd.js';
|
|
19
18
|
|
|
19
|
+
var urlFor = function urlFor(source, client) {
|
|
20
|
+
var builder = imageUrlBuilder(client);
|
|
21
|
+
return builder.image(source).auto('format');
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
var renderCardImage = function renderCardImage(props) {
|
|
25
|
+
var coverImage = props.coverImage,
|
|
26
|
+
imageHeight = props.imageHeight,
|
|
27
|
+
imageWidth = props.imageWidth,
|
|
28
|
+
client = props.client,
|
|
29
|
+
Settings = props.Settings;
|
|
30
|
+
|
|
31
|
+
if (coverImage && coverImage.asset) {
|
|
32
|
+
var url = urlFor(coverImage, client);
|
|
33
|
+
if (imageHeight) url = url.height(imageHeight);
|
|
34
|
+
if (imageWidth) url = url.width(imageWidth);
|
|
35
|
+
return url.url();
|
|
36
|
+
} else {
|
|
37
|
+
return Settings.logo;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
|
|
20
41
|
var PublicationDeckStack = function PublicationDeckStack(props) {
|
|
21
42
|
var title = props.title,
|
|
22
43
|
coverImage = props.coverImage,
|
|
@@ -25,97 +46,93 @@ var PublicationDeckStack = function PublicationDeckStack(props) {
|
|
|
25
46
|
author = props.author,
|
|
26
47
|
summary = props.summary,
|
|
27
48
|
section = props.section,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
_props$imageWidth = props.imageWidth,
|
|
31
|
-
imageWidth = _props$imageWidth === undefined ? null : _props$imageWidth,
|
|
32
|
-
_props$imageFit = props.imageFit,
|
|
33
|
-
imageFit = _props$imageFit === undefined ? null : _props$imageFit,
|
|
49
|
+
imageHeight = props.imageHeight,
|
|
50
|
+
imageWidth = props.imageWidth,
|
|
34
51
|
client = props.client,
|
|
35
52
|
Settings = props.Settings,
|
|
36
53
|
index = props.index,
|
|
37
54
|
source = props.source;
|
|
38
55
|
|
|
39
|
-
return
|
|
56
|
+
return React__default.createElement(
|
|
40
57
|
Col,
|
|
41
58
|
{ md: 12, lg: 12, key: index },
|
|
42
|
-
|
|
59
|
+
React__default.createElement(
|
|
43
60
|
Card,
|
|
44
61
|
{ style: { boxShadow: 'none', borderBottom: '1px solid #aaa', paddingBottom: '1rem' } },
|
|
45
|
-
|
|
62
|
+
React__default.createElement(
|
|
46
63
|
'div',
|
|
47
64
|
{ style: { display: 'flex', flex: '1 0 auto', paddingBottom: '1rem' } },
|
|
48
|
-
coverImage &&
|
|
65
|
+
coverImage && React__default.createElement(
|
|
49
66
|
'div',
|
|
50
67
|
{ style: { display: 'flex', flexDirection: 'column', justifyContent: 'center' } },
|
|
51
|
-
|
|
68
|
+
React__default.createElement(
|
|
52
69
|
'a',
|
|
53
70
|
{ href: '/view/' + link },
|
|
54
|
-
|
|
71
|
+
React__default.createElement(
|
|
55
72
|
LazyLoad,
|
|
56
73
|
{ height: imageHeight },
|
|
57
|
-
|
|
74
|
+
React__default.createElement(Card.Img, {
|
|
58
75
|
variant: 'right',
|
|
59
|
-
src:
|
|
76
|
+
src: renderCardImage({ coverImage: coverImage, imageHeight: imageHeight, imageWidth: imageWidth, client: client, Settings: Settings }),
|
|
60
77
|
alt: title,
|
|
61
78
|
style: { width: '170px', height: 'auto', objectFit: 'contain', padding: '0.25rem', float: 'left' }
|
|
62
79
|
})
|
|
63
80
|
)
|
|
64
81
|
),
|
|
65
|
-
source &&
|
|
82
|
+
source && React__default.createElement(
|
|
66
83
|
'div',
|
|
67
84
|
{ className: 'mb-2 sanityDisplayLabel displayLabelThumb' },
|
|
68
85
|
source
|
|
69
86
|
)
|
|
70
87
|
),
|
|
71
|
-
|
|
88
|
+
React__default.createElement(
|
|
72
89
|
Card.Body,
|
|
73
90
|
{ style: { padding: '0.5rem' } },
|
|
74
|
-
section ?
|
|
91
|
+
section ? React__default.createElement(
|
|
75
92
|
Badge,
|
|
76
93
|
{ variant: 'success' },
|
|
77
94
|
section.name
|
|
78
95
|
) : '',
|
|
79
|
-
|
|
96
|
+
React__default.createElement(
|
|
80
97
|
Card.Title,
|
|
81
98
|
{ style: { color: '#121212', fontSize: '1.1rem' } },
|
|
82
|
-
|
|
99
|
+
React__default.createElement(
|
|
83
100
|
'a',
|
|
84
101
|
{ href: '/view/' + link },
|
|
85
|
-
|
|
102
|
+
React__default.createElement(
|
|
86
103
|
'span',
|
|
87
104
|
null,
|
|
88
105
|
title
|
|
89
106
|
)
|
|
90
107
|
),
|
|
91
|
-
|
|
108
|
+
React__default.createElement('br', null)
|
|
92
109
|
),
|
|
93
|
-
|
|
110
|
+
React__default.createElement(
|
|
94
111
|
'div',
|
|
95
112
|
{ style: { float: 'left' } },
|
|
96
|
-
source && !coverImage &&
|
|
113
|
+
source && !coverImage && React__default.createElement(
|
|
97
114
|
'div',
|
|
98
115
|
{ className: 'content-category-label' },
|
|
99
|
-
|
|
116
|
+
React__default.createElement(
|
|
100
117
|
'div',
|
|
101
118
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
102
119
|
source
|
|
103
120
|
)
|
|
104
121
|
),
|
|
105
|
-
|
|
122
|
+
React__default.createElement(
|
|
106
123
|
'p',
|
|
107
124
|
{ style: { color: '#484848', fontSize: '.9rem', fontWeight: '600' }, className: 'mb-0' },
|
|
108
125
|
moment(published).format('MMMM DD, YYYY ')
|
|
109
126
|
),
|
|
110
|
-
author.length > 0 &&
|
|
127
|
+
author.length > 0 && React__default.createElement(
|
|
111
128
|
LazyLoad,
|
|
112
129
|
{ height: 50 },
|
|
113
|
-
|
|
130
|
+
React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: author })
|
|
114
131
|
)
|
|
115
132
|
)
|
|
116
133
|
)
|
|
117
134
|
),
|
|
118
|
-
|
|
135
|
+
React__default.createElement(
|
|
119
136
|
'p',
|
|
120
137
|
{ style: { paddingLeft: '0.5rem' } },
|
|
121
138
|
summary
|
|
@@ -135,29 +152,29 @@ var PublicationDeckBlock = function PublicationDeckBlock(props) {
|
|
|
135
152
|
Settings = props.Settings,
|
|
136
153
|
index = props.index;
|
|
137
154
|
|
|
138
|
-
return
|
|
155
|
+
return React__default.createElement(
|
|
139
156
|
Col,
|
|
140
157
|
{ md: 12, lg: 6, style: { display: 'flex', flex: '1 0 auto' }, key: index },
|
|
141
|
-
|
|
158
|
+
React__default.createElement(
|
|
142
159
|
Card,
|
|
143
160
|
null,
|
|
144
|
-
|
|
161
|
+
React__default.createElement(
|
|
145
162
|
'a',
|
|
146
163
|
{ href: '/view/' + link },
|
|
147
|
-
coverImage &&
|
|
164
|
+
coverImage && React__default.createElement(
|
|
148
165
|
LazyLoad,
|
|
149
166
|
{ height: imageHeight },
|
|
150
|
-
|
|
167
|
+
React__default.createElement(Card.Img, { variant: 'top', src: renderCardImage({ coverImage: coverImage, imageHeight: imageHeight, imageWidth: imageWidth, client: client, Settings: Settings }), alt: title })
|
|
151
168
|
),
|
|
152
|
-
|
|
169
|
+
React__default.createElement(
|
|
153
170
|
Card.Body,
|
|
154
171
|
null,
|
|
155
|
-
section && section.name ?
|
|
172
|
+
section && section.name ? React__default.createElement(
|
|
156
173
|
Badge,
|
|
157
174
|
{ variant: 'success' },
|
|
158
175
|
section && section.name
|
|
159
176
|
) : '',
|
|
160
|
-
|
|
177
|
+
React__default.createElement(
|
|
161
178
|
Card.Title,
|
|
162
179
|
null,
|
|
163
180
|
title
|
|
@@ -177,12 +194,12 @@ var IssueContentDeck = function IssueContentDeck(props) {
|
|
|
177
194
|
_props$variant = props.variant,
|
|
178
195
|
variant = _props$variant === undefined ? 'block' : _props$variant;
|
|
179
196
|
|
|
180
|
-
return
|
|
197
|
+
return React__default.createElement(
|
|
181
198
|
Row,
|
|
182
199
|
null,
|
|
183
200
|
data && data.length ? data.map(function (row, index) {
|
|
184
201
|
if (variant === 'stack') {
|
|
185
|
-
return row.url && row.url.current &&
|
|
202
|
+
return row.url && row.url.current && React__default.createElement(PublicationDeckStack, {
|
|
186
203
|
index: index,
|
|
187
204
|
title: row.title,
|
|
188
205
|
coverImage: row.thumbnail,
|
|
@@ -198,7 +215,7 @@ var IssueContentDeck = function IssueContentDeck(props) {
|
|
|
198
215
|
summary: row.summary
|
|
199
216
|
});
|
|
200
217
|
}
|
|
201
|
-
return
|
|
218
|
+
return React__default.createElement(PublicationDeckBlock, {
|
|
202
219
|
index: index,
|
|
203
220
|
title: row.title,
|
|
204
221
|
coverImage: row.thumbnail,
|
|
@@ -209,20 +226,20 @@ var IssueContentDeck = function IssueContentDeck(props) {
|
|
|
209
226
|
imageWidth: imageWidth,
|
|
210
227
|
client: client
|
|
211
228
|
});
|
|
212
|
-
}) :
|
|
229
|
+
}) : React__default.createElement(
|
|
213
230
|
'div',
|
|
214
231
|
null,
|
|
215
|
-
|
|
232
|
+
React__default.createElement(
|
|
216
233
|
'h5',
|
|
217
234
|
null,
|
|
218
|
-
|
|
235
|
+
React__default.createElement(
|
|
219
236
|
'em',
|
|
220
237
|
{ className: 'pl-3' },
|
|
221
238
|
'New content coming soon, please check back later.'
|
|
222
239
|
)
|
|
223
240
|
)
|
|
224
241
|
),
|
|
225
|
-
|
|
242
|
+
React__default.createElement(
|
|
226
243
|
'style',
|
|
227
244
|
{ jsx: 'true' },
|
|
228
245
|
'\n .displayLabelThumb {\n margin: 0 auto;\n margin-top: -1.25rem;\n background-color: white;\n position: relative;\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 width: 100%;\n display: inline;\n max-width: 240px;\n padding: 5px;\n color: #484848;\n border-radius: 2px;\n }\n '
|