@mjhls/mjh-framework 1.0.819-ad-refresh → 1.0.820
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 +3 -2
- package/dist/cjs/AD300x250x600.js +3 -2
- package/dist/cjs/AD728x90.js +3 -2
- package/dist/cjs/ADFloatingFooter.js +3 -2
- package/dist/cjs/ADGutter.js +3 -2
- package/dist/cjs/ADSkyscraper.js +3 -2
- package/dist/cjs/ADSponsoredResources.js +3 -2
- package/dist/cjs/ADWebcast.js +3 -2
- package/dist/cjs/ADWelcome.js +3 -2
- package/dist/cjs/AccordionPanel.js +2 -2
- package/dist/cjs/AdSlot.js +3 -2
- package/dist/cjs/AdSlotsProvider.js +6 -27
- package/dist/cjs/AlgoliaSearch.js +14099 -17
- package/dist/cjs/ArticleCarousel.js +2 -1
- package/dist/cjs/ArticleProgramLandingPage.js +7 -5
- package/dist/cjs/ArticleSeriesLandingPage.js +5 -4
- package/dist/cjs/ArticleSeriesListing.js +6 -4
- package/dist/cjs/AuthWrapper.js +1 -1
- package/dist/cjs/CMEDeck.js +3 -2
- package/dist/cjs/Column3.js +3 -2
- package/dist/cjs/ConferenceArticleCard.js +19 -24
- package/dist/cjs/DeckContent.js +20 -25
- package/dist/cjs/DeckQueue.js +11 -17
- package/dist/cjs/{Dfp-3f0ed4c8.js → Dfp-93399f8c.js} +2 -1
- package/dist/cjs/EventsDeck.js +18 -18
- package/dist/cjs/ExternalResources.js +7 -5
- package/dist/cjs/Feature.js +6 -10
- package/dist/cjs/ForbesHero.js +12 -14
- package/dist/cjs/GridContent.js +24 -29
- package/dist/cjs/GridHero.js +10 -19
- package/dist/cjs/GroupDeck.js +4 -8
- package/dist/cjs/HamMagazine.js +15 -15
- package/dist/cjs/Hero.js +3 -14
- package/dist/cjs/HorizontalArticleListing.js +7 -5
- package/dist/cjs/HorizontalHero.js +7 -8
- package/dist/cjs/IssueContentDeck.js +10 -27
- package/dist/cjs/IssueDeck.js +10 -12
- package/dist/cjs/IssueLanding.js +38 -36
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +3 -2
- package/dist/cjs/MasterDeck.js +14 -13
- package/dist/cjs/MediaSeriesLanding.js +307 -407
- 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 +6 -7
- package/dist/cjs/OncliveLargeHero.js +21 -22
- package/dist/cjs/PartnerDetailListing.js +13 -16
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PubSection.js +6 -4
- package/dist/cjs/PublicationDeck.js +10 -12
- package/dist/cjs/PublicationLanding.js +26 -29
- package/dist/cjs/QueueDeckExpanded.js +74 -72
- package/dist/cjs/RecentNews.js +5 -8
- package/dist/cjs/RelatedContent.js +35 -38
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SeriesListingDeck.js +5 -3
- package/dist/cjs/{SeriesSlider-2db54929.js → SeriesSlider-d54fa925.js} +7 -12
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/{SocialSearchComponent-948138c7.js → SocialSearchComponent-ecb4f972.js} +3 -3
- package/dist/cjs/TaxonomyCard.js +11 -14
- package/dist/cjs/TaxonomyDescription.js +7 -5
- package/dist/cjs/TemplateNormal.js +8 -7
- package/dist/cjs/ThumbnailCard.js +6 -10
- package/dist/cjs/Ustream.js +4 -4
- package/dist/cjs/VerticalHero.js +3 -7
- package/dist/cjs/VideoProgramLandingPage.js +7 -5
- package/dist/cjs/VideoSeriesCard.js +9 -8
- package/dist/cjs/VideoSeriesLandingPage.js +6 -4
- package/dist/cjs/VideoSeriesListing.js +7 -5
- package/dist/cjs/View.js +17 -16
- package/dist/cjs/YahooHero.js +11 -13
- package/dist/cjs/YoutubeGroup.js +9 -13
- package/dist/cjs/events-1b438fe7.js +469 -0
- package/dist/cjs/getSerializers.js +7 -5
- package/dist/cjs/{getTargeting-a100d6e5.js → getTargeting-be6168ad.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +5 -2
- package/dist/cjs/{index-48bd6cd5.js → index-179d21a3.js} +49 -93
- package/dist/cjs/index-8041a4eb.js +99 -0
- package/dist/cjs/{index-0e4427c8.js → index-fc2f1ca2.js} +2 -467
- package/dist/cjs/{index.esm-f27f80d9.js → index.esm-05850a2f.js} +1 -1
- package/dist/cjs/{index.esm-9225638f.js → index.esm-3b9b8952.js} +1 -1
- package/dist/cjs/{index.esm-2bb721c8.js → index.esm-8123cf40.js} +1 -1
- package/dist/cjs/{index.esm-00a6aade.js → index.esm-974f47d9.js} +1 -1
- package/dist/cjs/index.js +19 -32
- package/dist/cjs/{main-f1c77adb.js → main-025fdc78.js} +3 -3
- package/dist/cjs/urlFor.js +34 -2
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +7 -6
- package/dist/esm/AD300x250x600.js +7 -6
- package/dist/esm/AD728x90.js +8 -7
- package/dist/esm/ADFloatingFooter.js +10 -9
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +10 -9
- package/dist/esm/{ADInfeed-4a09242b.js → ADInfeed-28b1e946.js} +5 -5
- package/dist/esm/ADSkyscraper.js +10 -9
- package/dist/esm/ADSponsoredResources.js +10 -9
- package/dist/esm/ADWebcast.js +10 -9
- package/dist/esm/ADWelcome.js +14 -13
- package/dist/esm/{ADlgInfeed-0bff9a62.js → ADlgInfeed-0b474b02.js} +4 -4
- package/dist/esm/AccordionPanel.js +18 -18
- package/dist/esm/AdSlot.js +6 -5
- package/dist/esm/AdSlotsProvider.js +8 -28
- package/dist/esm/AlgoliaSearch.js +14123 -41
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +7 -6
- package/dist/esm/ArticleProgramLandingPage.js +19 -17
- package/dist/esm/ArticleSeriesLandingPage.js +13 -12
- package/dist/esm/ArticleSeriesListing.js +33 -31
- package/dist/esm/Auth.js +70 -70
- package/dist/esm/AuthWrapper.js +26 -26
- package/dist/esm/{AuthorComponent-30aeba69.js → AuthorComponent-5ae7409f.js} +10 -10
- package/dist/esm/{BlockContent-c99c9a8d.js → BlockContent-52cf21c5.js} +3 -3
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +62 -61
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +12 -12
- package/dist/esm/Column3.js +24 -23
- package/dist/esm/ConferenceArticleCard.js +32 -37
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +63 -68
- package/dist/esm/DeckQueue.js +48 -54
- package/dist/esm/{Dfp-be030f2a.js → Dfp-43f121ff.js} +11 -10
- package/dist/esm/EventsDeck.js +81 -81
- package/dist/esm/ExternalResources.js +37 -35
- package/dist/esm/Feature.js +20 -24
- package/dist/esm/ForbesHero.js +32 -34
- package/dist/esm/GridContent.js +109 -114
- package/dist/esm/GridHero.js +31 -40
- package/dist/esm/GroupDeck.js +38 -42
- package/dist/esm/HamMagazine.js +95 -95
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +8 -19
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +33 -31
- package/dist/esm/HorizontalHero.js +25 -26
- package/dist/esm/IssueContentDeck.js +48 -65
- package/dist/esm/IssueDeck.js +43 -45
- package/dist/esm/IssueLanding.js +53 -51
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +17 -16
- package/dist/esm/MasterDeck.js +48 -47
- package/dist/esm/MediaSeriesLanding.js +334 -434
- package/dist/esm/NavDvm.js +43 -43
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.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 +18 -19
- package/dist/esm/OncliveLargeHero.js +58 -59
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +68 -71
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +16 -14
- package/dist/esm/PubToc.js +5 -5
- package/dist/esm/PublicationDeck.js +43 -45
- package/dist/esm/PublicationLanding.js +75 -78
- package/dist/esm/QueueDeckExpanded.js +262 -260
- package/dist/esm/RecentNews.js +21 -24
- package/dist/esm/RelatedContent.js +46 -49
- 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 +21 -19
- package/dist/esm/{SeriesSlider-c8477bf3.js → SeriesSlider-8f2aca58.js} +25 -30
- package/dist/esm/SideFooter.js +21 -21
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-db963c3e.js → SocialSearchComponent-cd38ae60.js} +22 -22
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +43 -46
- package/dist/esm/TaxonomyDescription.js +15 -13
- package/dist/esm/TemplateNormal.js +31 -30
- package/dist/esm/ThumbnailCard.js +11 -15
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +14 -18
- package/dist/esm/VideoProgramLandingPage.js +26 -24
- package/dist/esm/VideoSeriesCard.js +19 -18
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesLandingPage.js +14 -12
- package/dist/esm/VideoSeriesListing.js +50 -48
- package/dist/esm/View.js +178 -177
- package/dist/esm/YahooHero.js +29 -31
- package/dist/esm/YoutubeGroup.js +36 -40
- package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-b43c695a.js} +3 -3
- package/dist/esm/events-6c3a7a63.js +467 -0
- package/dist/esm/getSerializers.js +10 -8
- package/dist/esm/{getTargeting-05c216d6.js → getTargeting-68291ce9.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
- package/dist/esm/{index-5cc7b406.js → index-2446af28.js} +4 -469
- package/dist/esm/{index-755f2cc2.js → index-35bdcc81.js} +4 -4
- package/dist/esm/{index-343d9c07.js → index-5cc7293b.js} +357 -401
- package/dist/esm/index-67e1773f.js +94 -0
- package/dist/esm/{index.es-a6137319.js → index.es-c6222053.js} +5 -5
- package/dist/esm/{index.esm-f6156a57.js → index.esm-3fdda599.js} +1 -1
- package/dist/esm/{index.esm-37268dca.js → index.esm-8016b507.js} +16 -16
- package/dist/esm/{index.esm-d4932dea.js → index.esm-a8ff922c.js} +1 -1
- package/dist/esm/{index.esm-e874e770.js → index.esm-d6f88d94.js} +1 -1
- package/dist/esm/index.js +43 -55
- package/dist/esm/{main-d4165069.js → main-b5c5aac1.js} +19 -19
- package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-91f9716f.js} +5 -5
- package/dist/esm/urlFor.js +34 -2
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/package.json +110 -110
- /package/dist/cjs/{ADInfeed-eb4ce360.js → ADInfeed-8b336c67.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-8a05b63f.js → ADlgInfeed-aedd5e18.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { _ as _extends } from './extends-60e0e1c6.js';
|
|
2
|
-
import
|
|
2
|
+
import React 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-3fdda599.js';
|
|
5
|
+
import { B as BlockContent } from './BlockContent-52cf21c5.js';
|
|
6
|
+
import { g as getSerializers } from './index-5cc7293b.js';
|
|
7
7
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
8
8
|
import './_to-object-b50e61c3.js';
|
|
9
9
|
import './_object-pie-133f504a.js';
|
|
@@ -16,15 +16,17 @@ 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-35bdcc81.js';
|
|
20
20
|
import 'react-dom';
|
|
21
21
|
import 'prop-types';
|
|
22
22
|
import './smoothscroll-fa4e3f8c.js';
|
|
23
|
+
import './urlFor.js';
|
|
23
24
|
import './index-0dbff1d1.js';
|
|
24
|
-
import './main-
|
|
25
|
-
import './iconBase-
|
|
25
|
+
import './main-b5c5aac1.js';
|
|
26
|
+
import './iconBase-602d52fe.js';
|
|
26
27
|
import 'react-bootstrap';
|
|
27
|
-
import './index-
|
|
28
|
+
import './index-2446af28.js';
|
|
29
|
+
import './events-6c3a7a63.js';
|
|
28
30
|
import 'next/router';
|
|
29
31
|
import './util-3ab476bf.js';
|
|
30
32
|
import './Beam.js';
|
|
@@ -32,7 +34,7 @@ import './stringify-59c8f690.js';
|
|
|
32
34
|
import './asyncToGenerator-7f8f9219.js';
|
|
33
35
|
import './_iter-detect-7e5e5ce2.js';
|
|
34
36
|
import './Segment.js';
|
|
35
|
-
import './brightcove-react-player-loader.es-
|
|
37
|
+
import './brightcove-react-player-loader.es-b43c695a.js';
|
|
36
38
|
import './GroupDeck.js';
|
|
37
39
|
import './moment-bc12cb97.js';
|
|
38
40
|
import './SocialShare.js';
|
|
@@ -69,59 +71,59 @@ function HorizontalArticleListing(_ref) {
|
|
|
69
71
|
// identifier: ...,
|
|
70
72
|
// data: Array of latest articles with videos
|
|
71
73
|
// }
|
|
72
|
-
return
|
|
74
|
+
return React.createElement(
|
|
73
75
|
'div',
|
|
74
76
|
null,
|
|
75
77
|
data.length > 0 ? data.map(function (taxonomy, index) {
|
|
76
|
-
return
|
|
77
|
-
|
|
78
|
+
return React.createElement(
|
|
79
|
+
React.Fragment,
|
|
78
80
|
null,
|
|
79
|
-
|
|
81
|
+
React.createElement(
|
|
80
82
|
'div',
|
|
81
83
|
{ key: 'articleCarousel_' + taxonomy.identifier + '_' + index, className: 'mb-3 horizontal-article' },
|
|
82
|
-
|
|
84
|
+
React.createElement(
|
|
83
85
|
'div',
|
|
84
86
|
{ className: 'horizontal-article-header', style: { borderBottom: '2px solid ' + color } },
|
|
85
|
-
|
|
87
|
+
React.createElement(
|
|
86
88
|
'div',
|
|
87
89
|
{ className: 'horizontal-article-title-wrapper' },
|
|
88
|
-
|
|
90
|
+
React.createElement(
|
|
89
91
|
'a',
|
|
90
92
|
{ href: '/' + taxonomy.identifier },
|
|
91
|
-
|
|
93
|
+
React.createElement(
|
|
92
94
|
'h4',
|
|
93
95
|
{ className: 'article-title-banner', style: { fontWeight: 'bold', color: 'var(--primary)', padding: '.25rem 0', margin: '0' } },
|
|
94
96
|
taxonomy.name
|
|
95
97
|
)
|
|
96
98
|
),
|
|
97
|
-
taxonomy.identifier &&
|
|
99
|
+
taxonomy.identifier && React.createElement(
|
|
98
100
|
'div',
|
|
99
101
|
{ style: { width: 'fit-content', whiteSpace: 'nowrap' } },
|
|
100
|
-
|
|
102
|
+
React.createElement(
|
|
101
103
|
'a',
|
|
102
104
|
{ href: '/' + taxonomy.identifier },
|
|
103
105
|
'View All ',
|
|
104
|
-
|
|
106
|
+
React.createElement(IoIosArrowForward, null)
|
|
105
107
|
)
|
|
106
108
|
)
|
|
107
109
|
),
|
|
108
|
-
taxonomy.summary &&
|
|
110
|
+
taxonomy.summary && React.createElement(
|
|
109
111
|
'div',
|
|
110
112
|
{ className: 'horizontal-article-summary' },
|
|
111
|
-
|
|
113
|
+
React.createElement(BlockContent, _extends({ serializers: getSerializers(client), blocks: taxonomy.summary, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
112
114
|
)
|
|
113
115
|
),
|
|
114
|
-
taxonomy.data.length > 0 ?
|
|
116
|
+
taxonomy.data.length > 0 ? React.createElement(
|
|
115
117
|
'div',
|
|
116
118
|
{ className: 'article-carousel' },
|
|
117
|
-
|
|
118
|
-
) :
|
|
119
|
+
React.createElement(ArticleCarousel, { articles: taxonomy.data, client: client })
|
|
120
|
+
) : React.createElement(
|
|
119
121
|
'div',
|
|
120
122
|
null,
|
|
121
|
-
|
|
123
|
+
React.createElement(
|
|
122
124
|
'h5',
|
|
123
125
|
{ className: 'mt-2' },
|
|
124
|
-
|
|
126
|
+
React.createElement(
|
|
125
127
|
'em',
|
|
126
128
|
{ className: 'pl-3' },
|
|
127
129
|
'New content coming soon, please check back later.'
|
|
@@ -129,19 +131,19 @@ function HorizontalArticleListing(_ref) {
|
|
|
129
131
|
)
|
|
130
132
|
)
|
|
131
133
|
),
|
|
132
|
-
|
|
134
|
+
React.createElement(
|
|
133
135
|
'style',
|
|
134
136
|
{ jsx: 'true' },
|
|
135
137
|
'\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 '
|
|
136
138
|
)
|
|
137
139
|
);
|
|
138
|
-
}) :
|
|
140
|
+
}) : React.createElement(
|
|
139
141
|
'div',
|
|
140
142
|
null,
|
|
141
|
-
|
|
143
|
+
React.createElement(
|
|
142
144
|
'h5',
|
|
143
145
|
null,
|
|
144
|
-
|
|
146
|
+
React.createElement(
|
|
145
147
|
'em',
|
|
146
148
|
{ className: 'pl-3' },
|
|
147
149
|
'New content coming soon, please check back later.'
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import './moment-bc12cb97.js';
|
|
3
|
-
import
|
|
4
|
-
import { a as FaLongArrowAltRight } from './index.esm-
|
|
3
|
+
import urlFor from './urlFor.js';
|
|
4
|
+
import { a as FaLongArrowAltRight } from './index.esm-a8ff922c.js';
|
|
5
5
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
6
|
-
import './
|
|
6
|
+
import './index-0dbff1d1.js';
|
|
7
|
+
import './iconBase-602d52fe.js';
|
|
7
8
|
|
|
8
9
|
var HorizontalHero = function HorizontalHero(props) {
|
|
9
10
|
var client = props.client;
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
function urlFor(source) {
|
|
13
|
-
return builder.image(source).auto('format');
|
|
14
|
-
}
|
|
12
|
+
|
|
15
13
|
var topArticle = props.dataRecord[0];
|
|
16
14
|
var subArticles = props.dataRecord.slice(1, props.dataRecord.length);
|
|
17
15
|
var _props$heroTitle = props.heroTitle,
|
|
@@ -23,51 +21,52 @@ var HorizontalHero = function HorizontalHero(props) {
|
|
|
23
21
|
var topArticleThumbnail = '';
|
|
24
22
|
var topArticleAltText = topArticle.title;
|
|
25
23
|
if (topArticle.thumbnail && topArticle.thumbnail.asset) {
|
|
26
|
-
topArticleThumbnail = urlFor(topArticle.thumbnail.asset
|
|
24
|
+
topArticleThumbnail = urlFor({ client: client, source: topArticle.thumbnail.asset, imageWidth: 350 });
|
|
25
|
+
|
|
27
26
|
topArticleAltText = topArticle.thumbnail.asset.originalFileName;
|
|
28
27
|
}
|
|
29
28
|
if (props.thumbnail) {
|
|
30
29
|
topArticleThumbnail = props.thumbnail;
|
|
31
30
|
}
|
|
32
31
|
|
|
33
|
-
return
|
|
32
|
+
return React.createElement(
|
|
34
33
|
'div',
|
|
35
34
|
{ className: 'horizontal-hero-container', style: { borderRight: '3px solid ' + borderColor, borderTop: '3px solid ' + borderColor } },
|
|
36
|
-
|
|
35
|
+
React.createElement(
|
|
37
36
|
'div',
|
|
38
37
|
{ className: 'horizontal-hero-title' },
|
|
39
|
-
|
|
38
|
+
React.createElement(
|
|
40
39
|
'h2',
|
|
41
40
|
null,
|
|
42
41
|
heroTitle
|
|
43
42
|
),
|
|
44
|
-
|
|
43
|
+
React.createElement('div', null)
|
|
45
44
|
),
|
|
46
|
-
|
|
45
|
+
React.createElement(
|
|
47
46
|
'div',
|
|
48
47
|
{ className: 'horizontal-hero-inner' },
|
|
49
|
-
|
|
48
|
+
React.createElement(
|
|
50
49
|
'a',
|
|
51
50
|
{ href: '/view/' + topArticle.url.current, className: 'horizontal-hero-img' },
|
|
52
|
-
|
|
51
|
+
React.createElement('img', { style: { objectFit: props.imageSize ? props.imageSize : 'cover' }, src: topArticleThumbnail, alt: topArticleAltText })
|
|
53
52
|
),
|
|
54
|
-
|
|
53
|
+
React.createElement(
|
|
55
54
|
'div',
|
|
56
55
|
{ className: 'horizontal-articles-wrap' },
|
|
57
|
-
|
|
56
|
+
React.createElement(
|
|
58
57
|
'a',
|
|
59
58
|
{ href: '/view/' + topArticle.url.current, className: 'horizontal-article' },
|
|
60
|
-
|
|
59
|
+
React.createElement(
|
|
61
60
|
'p',
|
|
62
61
|
null,
|
|
63
62
|
topArticle.title
|
|
64
63
|
)
|
|
65
64
|
),
|
|
66
65
|
subArticles.map(function (article, index) {
|
|
67
|
-
return
|
|
66
|
+
return React.createElement(
|
|
68
67
|
'a',
|
|
69
68
|
{ key: index, href: '/view/' + article.url.current, className: 'horizontal-article' },
|
|
70
|
-
|
|
69
|
+
React.createElement(
|
|
71
70
|
'p',
|
|
72
71
|
null,
|
|
73
72
|
article.title
|
|
@@ -76,23 +75,23 @@ var HorizontalHero = function HorizontalHero(props) {
|
|
|
76
75
|
})
|
|
77
76
|
)
|
|
78
77
|
),
|
|
79
|
-
props.linkTo &&
|
|
78
|
+
props.linkTo && React.createElement(
|
|
80
79
|
'div',
|
|
81
80
|
{ className: 'horizontal-view-more' },
|
|
82
|
-
|
|
81
|
+
React.createElement(
|
|
83
82
|
'a',
|
|
84
83
|
{ href: props.linkTo },
|
|
85
84
|
props.linkTitle ? props.linkTitle : 'View More' + heroTitle,
|
|
86
85
|
' ',
|
|
87
86
|
' ',
|
|
88
|
-
|
|
87
|
+
React.createElement(
|
|
89
88
|
'span',
|
|
90
89
|
null,
|
|
91
|
-
|
|
90
|
+
React.createElement(FaLongArrowAltRight, { color: 'var(--primary)' })
|
|
92
91
|
)
|
|
93
92
|
)
|
|
94
93
|
),
|
|
95
|
-
|
|
94
|
+
React.createElement(
|
|
96
95
|
'style',
|
|
97
96
|
{ jsx: 'true' },
|
|
98
97
|
'\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,43 +1,22 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React 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-35bdcc81.js';
|
|
7
|
+
import urlFor from './urlFor.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-5ae7409f.js';
|
|
10
10
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
11
11
|
import 'react-dom';
|
|
12
12
|
import 'prop-types';
|
|
13
|
+
import './index-0dbff1d1.js';
|
|
13
14
|
import './slicedToArray-be2f7a22.js';
|
|
14
15
|
import './web.dom.iterable-4109ff68.js';
|
|
15
16
|
import './es6.string.iterator-bc33758b.js';
|
|
16
17
|
import './_to-object-b50e61c3.js';
|
|
17
18
|
import './core.get-iterator-method-133dfacd.js';
|
|
18
19
|
|
|
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
|
-
|
|
41
20
|
var PublicationDeckStack = function PublicationDeckStack(props) {
|
|
42
21
|
var title = props.title,
|
|
43
22
|
coverImage = props.coverImage,
|
|
@@ -46,93 +25,97 @@ var PublicationDeckStack = function PublicationDeckStack(props) {
|
|
|
46
25
|
author = props.author,
|
|
47
26
|
summary = props.summary,
|
|
48
27
|
section = props.section,
|
|
49
|
-
imageHeight = props.imageHeight,
|
|
50
|
-
|
|
28
|
+
_props$imageHeight = props.imageHeight,
|
|
29
|
+
imageHeight = _props$imageHeight === undefined ? null : _props$imageHeight,
|
|
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,
|
|
51
34
|
client = props.client,
|
|
52
35
|
Settings = props.Settings,
|
|
53
36
|
index = props.index,
|
|
54
37
|
source = props.source;
|
|
55
38
|
|
|
56
|
-
return
|
|
39
|
+
return React.createElement(
|
|
57
40
|
Col,
|
|
58
41
|
{ md: 12, lg: 12, key: index },
|
|
59
|
-
|
|
42
|
+
React.createElement(
|
|
60
43
|
Card,
|
|
61
44
|
{ style: { boxShadow: 'none', borderBottom: '1px solid #aaa', paddingBottom: '1rem' } },
|
|
62
|
-
|
|
45
|
+
React.createElement(
|
|
63
46
|
'div',
|
|
64
47
|
{ style: { display: 'flex', flex: '1 0 auto', paddingBottom: '1rem' } },
|
|
65
|
-
coverImage &&
|
|
48
|
+
coverImage && React.createElement(
|
|
66
49
|
'div',
|
|
67
50
|
{ style: { display: 'flex', flexDirection: 'column', justifyContent: 'center' } },
|
|
68
|
-
|
|
51
|
+
React.createElement(
|
|
69
52
|
'a',
|
|
70
53
|
{ href: '/view/' + link },
|
|
71
|
-
|
|
54
|
+
React.createElement(
|
|
72
55
|
LazyLoad,
|
|
73
56
|
{ height: imageHeight },
|
|
74
|
-
|
|
57
|
+
React.createElement(Card.Img, {
|
|
75
58
|
variant: 'right',
|
|
76
|
-
src:
|
|
59
|
+
src: coverImage ? urlFor({ source: coverImage, imageHeight: imageHeight, imageWidth: imageWidth, imageFit: imageFit, client: client }) : Settings.logo,
|
|
77
60
|
alt: title,
|
|
78
61
|
style: { width: '170px', height: 'auto', objectFit: 'contain', padding: '0.25rem', float: 'left' }
|
|
79
62
|
})
|
|
80
63
|
)
|
|
81
64
|
),
|
|
82
|
-
source &&
|
|
65
|
+
source && React.createElement(
|
|
83
66
|
'div',
|
|
84
67
|
{ className: 'mb-2 sanityDisplayLabel displayLabelThumb' },
|
|
85
68
|
source
|
|
86
69
|
)
|
|
87
70
|
),
|
|
88
|
-
|
|
71
|
+
React.createElement(
|
|
89
72
|
Card.Body,
|
|
90
73
|
{ style: { padding: '0.5rem' } },
|
|
91
|
-
section ?
|
|
74
|
+
section ? React.createElement(
|
|
92
75
|
Badge,
|
|
93
76
|
{ variant: 'success' },
|
|
94
77
|
section.name
|
|
95
78
|
) : '',
|
|
96
|
-
|
|
79
|
+
React.createElement(
|
|
97
80
|
Card.Title,
|
|
98
81
|
{ style: { color: '#121212', fontSize: '1.1rem' } },
|
|
99
|
-
|
|
82
|
+
React.createElement(
|
|
100
83
|
'a',
|
|
101
84
|
{ href: '/view/' + link },
|
|
102
|
-
|
|
85
|
+
React.createElement(
|
|
103
86
|
'span',
|
|
104
87
|
null,
|
|
105
88
|
title
|
|
106
89
|
)
|
|
107
90
|
),
|
|
108
|
-
|
|
91
|
+
React.createElement('br', null)
|
|
109
92
|
),
|
|
110
|
-
|
|
93
|
+
React.createElement(
|
|
111
94
|
'div',
|
|
112
95
|
{ style: { float: 'left' } },
|
|
113
|
-
source && !coverImage &&
|
|
96
|
+
source && !coverImage && React.createElement(
|
|
114
97
|
'div',
|
|
115
98
|
{ className: 'content-category-label' },
|
|
116
|
-
|
|
99
|
+
React.createElement(
|
|
117
100
|
'div',
|
|
118
101
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
119
102
|
source
|
|
120
103
|
)
|
|
121
104
|
),
|
|
122
|
-
|
|
105
|
+
React.createElement(
|
|
123
106
|
'p',
|
|
124
107
|
{ style: { color: '#484848', fontSize: '.9rem', fontWeight: '600' }, className: 'mb-0' },
|
|
125
108
|
moment(published).format('MMMM DD, YYYY ')
|
|
126
109
|
),
|
|
127
|
-
author.length > 0 &&
|
|
110
|
+
author.length > 0 && React.createElement(
|
|
128
111
|
LazyLoad,
|
|
129
112
|
{ height: 50 },
|
|
130
|
-
|
|
113
|
+
React.createElement(AuthorComponent, { key: index.toString(), index: index, authors: author })
|
|
131
114
|
)
|
|
132
115
|
)
|
|
133
116
|
)
|
|
134
117
|
),
|
|
135
|
-
|
|
118
|
+
React.createElement(
|
|
136
119
|
'p',
|
|
137
120
|
{ style: { paddingLeft: '0.5rem' } },
|
|
138
121
|
summary
|
|
@@ -152,29 +135,29 @@ var PublicationDeckBlock = function PublicationDeckBlock(props) {
|
|
|
152
135
|
Settings = props.Settings,
|
|
153
136
|
index = props.index;
|
|
154
137
|
|
|
155
|
-
return
|
|
138
|
+
return React.createElement(
|
|
156
139
|
Col,
|
|
157
140
|
{ md: 12, lg: 6, style: { display: 'flex', flex: '1 0 auto' }, key: index },
|
|
158
|
-
|
|
141
|
+
React.createElement(
|
|
159
142
|
Card,
|
|
160
143
|
null,
|
|
161
|
-
|
|
144
|
+
React.createElement(
|
|
162
145
|
'a',
|
|
163
146
|
{ href: '/view/' + link },
|
|
164
|
-
coverImage &&
|
|
147
|
+
coverImage && React.createElement(
|
|
165
148
|
LazyLoad,
|
|
166
149
|
{ height: imageHeight },
|
|
167
|
-
|
|
150
|
+
React.createElement(Card.Img, { variant: 'top', src: coverImage ? urlFor({ source: coverImage, imageHeight: imageHeight, imageWidth: imageWidth, imageFit: imageFit, client: client, Settings: Settings }) : Settings.logo, alt: title })
|
|
168
151
|
),
|
|
169
|
-
|
|
152
|
+
React.createElement(
|
|
170
153
|
Card.Body,
|
|
171
154
|
null,
|
|
172
|
-
section && section.name ?
|
|
155
|
+
section && section.name ? React.createElement(
|
|
173
156
|
Badge,
|
|
174
157
|
{ variant: 'success' },
|
|
175
158
|
section && section.name
|
|
176
159
|
) : '',
|
|
177
|
-
|
|
160
|
+
React.createElement(
|
|
178
161
|
Card.Title,
|
|
179
162
|
null,
|
|
180
163
|
title
|
|
@@ -194,12 +177,12 @@ var IssueContentDeck = function IssueContentDeck(props) {
|
|
|
194
177
|
_props$variant = props.variant,
|
|
195
178
|
variant = _props$variant === undefined ? 'block' : _props$variant;
|
|
196
179
|
|
|
197
|
-
return
|
|
180
|
+
return React.createElement(
|
|
198
181
|
Row,
|
|
199
182
|
null,
|
|
200
183
|
data && data.length ? data.map(function (row, index) {
|
|
201
184
|
if (variant === 'stack') {
|
|
202
|
-
return row.url && row.url.current &&
|
|
185
|
+
return row.url && row.url.current && React.createElement(PublicationDeckStack, {
|
|
203
186
|
index: index,
|
|
204
187
|
title: row.title,
|
|
205
188
|
coverImage: row.thumbnail,
|
|
@@ -215,7 +198,7 @@ var IssueContentDeck = function IssueContentDeck(props) {
|
|
|
215
198
|
summary: row.summary
|
|
216
199
|
});
|
|
217
200
|
}
|
|
218
|
-
return
|
|
201
|
+
return React.createElement(PublicationDeckBlock, {
|
|
219
202
|
index: index,
|
|
220
203
|
title: row.title,
|
|
221
204
|
coverImage: row.thumbnail,
|
|
@@ -226,20 +209,20 @@ var IssueContentDeck = function IssueContentDeck(props) {
|
|
|
226
209
|
imageWidth: imageWidth,
|
|
227
210
|
client: client
|
|
228
211
|
});
|
|
229
|
-
}) :
|
|
212
|
+
}) : React.createElement(
|
|
230
213
|
'div',
|
|
231
214
|
null,
|
|
232
|
-
|
|
215
|
+
React.createElement(
|
|
233
216
|
'h5',
|
|
234
217
|
null,
|
|
235
|
-
|
|
218
|
+
React.createElement(
|
|
236
219
|
'em',
|
|
237
220
|
{ className: 'pl-3' },
|
|
238
221
|
'New content coming soon, please check back later.'
|
|
239
222
|
)
|
|
240
223
|
)
|
|
241
224
|
),
|
|
242
|
-
|
|
225
|
+
React.createElement(
|
|
243
226
|
'style',
|
|
244
227
|
{ jsx: 'true' },
|
|
245
228
|
'\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 '
|