@mjhls/mjh-framework 1.0.577-native-nav-v4 → 1.0.577
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 +172 -172
- package/dist/cjs/AD.js +10 -9
- package/dist/cjs/AD300x250.js +8 -7
- package/dist/cjs/AD300x250x600.js +8 -7
- package/dist/cjs/AD728x90.js +11 -10
- package/dist/cjs/ADFloatingFooter.js +15 -14
- package/dist/cjs/ADFooter.js +9 -8
- package/dist/cjs/ADGutter.js +12 -11
- package/dist/cjs/{ADInfeed-df340285.js → ADInfeed-fdbd80ea.js} +11 -9
- package/dist/cjs/ADSkyscraper.js +12 -11
- package/dist/cjs/ADSponsoredResources.js +11 -10
- package/dist/cjs/ADWebcast.js +11 -10
- package/dist/cjs/ADWelcome.js +16 -15
- package/dist/cjs/{ADlgInfeed-2110d08c.js → ADlgInfeed-ecd2642c.js} +7 -6
- package/dist/cjs/AccordionPanel.js +24 -22
- package/dist/cjs/AdSlot.js +15 -13
- package/dist/cjs/AdSlotsProvider.js +6 -5
- package/dist/cjs/AlphabeticList.js +16 -15
- package/dist/cjs/ArticleQueue.js +115 -112
- package/dist/cjs/Auth.js +227 -139
- package/dist/cjs/{AuthorComponent-cb8b8128.js → AuthorComponent-5bb8f868.js} +13 -12
- package/dist/cjs/{BlockContent-c2168db0.js → BlockContent-8b494587.js} +26 -24
- package/dist/cjs/Breadcrumbs.js +23 -21
- package/dist/cjs/CMEDeck.js +61 -61
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +22 -19
- package/dist/cjs/Column3.js +35 -32
- package/dist/cjs/ConferenceArticleCard.js +34 -33
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +85 -81
- package/dist/cjs/DeckQueue.js +73 -69
- package/dist/cjs/{Dfp-fcdeabc4.js → Dfp-a06d722a.js} +22 -20
- package/dist/cjs/EventsDeck.js +113 -106
- package/dist/cjs/ExternalResources.js +43 -42
- package/dist/cjs/Feature.js +26 -24
- package/dist/cjs/ForbesHero.js +34 -33
- package/dist/cjs/GridContent.js +148 -144
- package/dist/cjs/GridHero.js +35 -34
- package/dist/cjs/GroupDeck.js +38 -37
- package/dist/cjs/HamMagazine.js +118 -113
- package/dist/cjs/Header.js +13 -11
- package/dist/cjs/Hero.js +11 -10
- package/dist/cjs/HighlightenVideo.js +17 -16
- package/dist/cjs/HorizontalHero.js +25 -24
- package/dist/cjs/{InscreenSensor-3aec8492.js → InscreenSensor-1f9f7db4.js} +8 -7
- package/dist/cjs/IssueContentDeck.js +70 -65
- package/dist/cjs/IssueDeck.js +65 -60
- package/dist/cjs/IssueLanding.js +47 -46
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +22 -20
- package/dist/cjs/MasterDeck.js +60 -59
- package/dist/cjs/NavDvm.js +68 -63
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +122 -117
- package/dist/cjs/NavNative.js +115 -108
- package/dist/cjs/NavNormal.js +41 -36
- package/dist/cjs/OncliveHero.js +18 -18
- package/dist/cjs/OncliveLargeHero.js +59 -58
- package/dist/cjs/PageFilter.js +9 -8
- package/dist/cjs/PartnerDetailListing.js +134 -132
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +15 -13
- package/dist/cjs/PublicationDeck.js +63 -58
- package/dist/cjs/PublicationLanding.js +85 -81
- package/dist/cjs/QueueDeckExpanded.js +216 -216
- package/dist/cjs/RelatedContent.js +47 -46
- package/dist/cjs/RelatedTopicsDropdown.js +32 -29
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +16 -12
- package/dist/cjs/SideFooter.js +20 -19
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialNavFooter-9a07520f.js → SocialNavFooter-d9ab4d17.js} +18 -17
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +59 -54
- package/dist/cjs/TemplateNormal.js +35 -34
- package/dist/cjs/ThumbnailCard.js +19 -17
- package/dist/cjs/Ustream.js +21 -20
- package/dist/cjs/VerticalHero.js +17 -16
- package/dist/cjs/VideoSeriesFilter.js +10 -10
- package/dist/cjs/VideoSeriesListing.js +39 -38
- package/dist/cjs/View.js +165 -160
- package/dist/cjs/YahooHero.js +30 -29
- package/dist/cjs/YoutubeGroup.js +47 -46
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-5c98aec7.js} +10 -8
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/getRelatedArticle.js +9 -9
- package/dist/cjs/getSerializers.js +267 -257
- package/dist/cjs/{getTargeting-b15993cb.js → getTargeting-86e68d62.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-fa3cec70.js → index-44481153.js} +14 -14
- package/dist/cjs/{index-fa0fb52c.js → index-8a3fb0bc.js} +13 -10
- package/dist/cjs/{index-3294d3bc.js → index-99edf08a.js} +1 -1
- package/dist/cjs/{index-39beccb3.js → index-b5eb3ff8.js} +18 -18
- package/dist/cjs/{index.es-9110add6.js → index.es-f3e47207.js} +31 -12
- package/dist/cjs/{index.esm-66ffa47a.js → index.esm-3b9b8952.js} +4 -9
- package/dist/cjs/{index.esm-89fabc47.js → index.esm-55da9104.js} +3 -6
- package/dist/cjs/{index.esm-fbd1f7e9.js → index.esm-99553d28.js} +6 -15
- package/dist/cjs/index.js +28 -28
- package/dist/cjs/{inherits-14962339.js → inherits-4a2f1cc3.js} +4 -4
- package/dist/cjs/{main-88348b15.js → main-c50facd7.js} +89 -53
- package/dist/cjs/{moment-575fe24c.js → moment-ca3bd9fb.js} +10 -8
- package/dist/cjs/{react-social-icons-cd0d9d3b.js → react-social-icons-07939b41.js} +13 -11
- package/dist/cjs/{typeof-1869832c.js → typeof-583cdc4b.js} +1 -1
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{visibility-sensor-0c45a583.js → visibility-sensor-8b54af99.js} +7 -5
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +5 -5
- package/dist/esm/AD300x250x600.js +5 -5
- package/dist/esm/AD728x90.js +8 -8
- package/dist/esm/ADFloatingFooter.js +12 -12
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +9 -9
- package/dist/esm/{ADInfeed-db7610fb.js → ADInfeed-ed104a2b.js} +5 -5
- package/dist/esm/ADSkyscraper.js +9 -9
- package/dist/esm/ADSponsoredResources.js +8 -8
- package/dist/esm/ADWebcast.js +8 -8
- package/dist/esm/ADWelcome.js +13 -13
- package/dist/esm/{ADlgInfeed-4bb11153.js → ADlgInfeed-dfde985e.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +5 -5
- package/dist/esm/AdSlotsProvider.js +3 -3
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleQueue.js +98 -98
- package/dist/esm/Auth.js +207 -123
- package/dist/esm/{AuthorComponent-158226c9.js → AuthorComponent-f67cb027.js} +10 -10
- package/dist/esm/{BlockContent-c409aca5.js → BlockContent-d05b5b23.js} +4 -4
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +58 -58
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +12 -12
- package/dist/esm/Column3.js +24 -24
- package/dist/esm/ConferenceArticleCard.js +29 -29
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +62 -62
- package/dist/esm/DeckQueue.js +47 -47
- package/dist/esm/{Dfp-81a052c2.js → Dfp-0557840a.js} +10 -10
- package/dist/esm/EventsDeck.js +64 -64
- package/dist/esm/ExternalResources.js +36 -36
- package/dist/esm/Feature.js +17 -17
- package/dist/esm/ForbesHero.js +28 -28
- package/dist/esm/GridContent.js +106 -106
- package/dist/esm/GridHero.js +29 -29
- package/dist/esm/GroupDeck.js +34 -34
- package/dist/esm/HamMagazine.js +86 -86
- package/dist/esm/Header.js +7 -7
- package/dist/esm/Hero.js +7 -7
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/{InscreenSensor-280b2b10.js → InscreenSensor-3e1fe82a.js} +5 -5
- package/dist/esm/IssueContentDeck.js +41 -41
- package/dist/esm/IssueDeck.js +34 -34
- package/dist/esm/IssueLanding.js +44 -44
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +16 -16
- package/dist/esm/MasterDeck.js +53 -53
- package/dist/esm/NavDvm.js +43 -43
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +92 -92
- package/dist/esm/NavNative.js +82 -83
- package/dist/esm/NavNormal.js +21 -21
- package/dist/esm/OncliveHero.js +14 -15
- package/dist/esm/OncliveLargeHero.js +52 -52
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +72 -72
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PublicationDeck.js +34 -34
- package/dist/esm/PublicationLanding.js +61 -61
- package/dist/esm/QueueDeckExpanded.js +197 -197
- package/dist/esm/RelatedContent.js +43 -43
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +5 -5
- package/dist/esm/SideFooter.js +17 -17
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialNavFooter-4fb16720.js → SocialNavFooter-1a531144.js} +15 -15
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +36 -36
- package/dist/esm/TemplateNormal.js +28 -28
- package/dist/esm/ThumbnailCard.js +10 -10
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoSeriesFilter.js +7 -7
- package/dist/esm/VideoSeriesListing.js +33 -33
- package/dist/esm/View.js +139 -139
- package/dist/esm/YahooHero.js +25 -25
- package/dist/esm/YoutubeGroup.js +37 -37
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-4abff0b1.js} +7 -6
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getRelatedArticle.js +2 -2
- package/dist/esm/getSerializers.js +219 -215
- package/dist/esm/{getTargeting-1a0bd08d.js → getTargeting-1f2c61e3.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-3f4dd6f2.js → index-1819118a.js} +7 -9
- package/dist/esm/{index-3849e3fe.js → index-51a80699.js} +18 -18
- package/dist/esm/{index-5f9f807a.js → index-c5fd0af5.js} +4 -4
- package/dist/esm/{index-ef6d5dcf.js → index-fa2ffe86.js} +1 -1
- package/dist/esm/{index.es-29c1cef5.js → index.es-c6222053.js} +28 -10
- package/dist/esm/{index.esm-4b1d94b7.js → index.esm-116f3274.js} +6 -15
- package/dist/esm/{index.esm-9a4c8813.js → index.esm-16e9450c.js} +3 -6
- package/dist/esm/{index.esm-b08f4b04.js → index.esm-d6f88d94.js} +4 -9
- package/dist/esm/index.js +24 -24
- package/dist/esm/{inherits-b8e4c697.js → inherits-2758cc14.js} +1 -1
- package/dist/esm/{main-d7ee6151.js → main-b722e2e2.js} +87 -52
- package/dist/esm/{moment-e2f9b20c.js → moment-b6f49411.js} +10 -8
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-3822f1ce.js} +5 -5
- package/dist/esm/{typeof-5f046efd.js → typeof-7e72fee0.js} +1 -1
- package/dist/esm/urlFor.js +2 -2
- package/dist/esm/{visibility-sensor-0baa4eea.js → visibility-sensor-082c757b.js} +2 -2
- package/package.json +107 -107
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
package/dist/esm/DeckQueue.js
CHANGED
|
@@ -8,27 +8,27 @@ import { _ as _toConsumableArray } from './toConsumableArray-8712d678.js';
|
|
|
8
8
|
import './_object-pie-33c40e79.js';
|
|
9
9
|
import { _ as _extends } from './extends-6e00b262.js';
|
|
10
10
|
import './_object-sap-56bb8073.js';
|
|
11
|
-
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-
|
|
11
|
+
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-2758cc14.js';
|
|
12
12
|
import './web.dom.iterable-46c95e52.js';
|
|
13
|
-
import './typeof-
|
|
13
|
+
import './typeof-7e72fee0.js';
|
|
14
14
|
import './_is-array-dd5523d6.js';
|
|
15
|
-
import
|
|
16
|
-
import { l as lib_3 } from './index-
|
|
15
|
+
import React from 'react';
|
|
16
|
+
import { l as lib_3 } from './index-1819118a.js';
|
|
17
17
|
import 'prop-types';
|
|
18
18
|
import Container from 'react-bootstrap/Container';
|
|
19
19
|
import Row from 'react-bootstrap/Row';
|
|
20
20
|
import Col from 'react-bootstrap/Col';
|
|
21
21
|
import Card from 'react-bootstrap/Card';
|
|
22
|
-
import { m as moment } from './moment-
|
|
22
|
+
import { m as moment } from './moment-b6f49411.js';
|
|
23
23
|
import { withRouter } from 'next/router';
|
|
24
24
|
import './isSymbol-b7b7434f.js';
|
|
25
25
|
import { d as debounce_1 } from './debounce-048d9cb6.js';
|
|
26
|
-
import { I as InfiniteScroll } from './index.es-
|
|
26
|
+
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
27
27
|
import 'react-dom';
|
|
28
|
-
import { V as VisibilitySensor } from './visibility-sensor-
|
|
29
|
-
import { i as imageUrlBuilder } from './index-
|
|
30
|
-
import { L as LazyLoad } from './index-
|
|
31
|
-
import { m as
|
|
28
|
+
import { V as VisibilitySensor } from './visibility-sensor-082c757b.js';
|
|
29
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
30
|
+
import { L as LazyLoad } from './index-c5fd0af5.js';
|
|
31
|
+
import { m as main_40 } from './main-b722e2e2.js';
|
|
32
32
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
33
33
|
import './_arrayMap-64cbe0e4.js';
|
|
34
34
|
import { g as get_1 } from './get-0eb56363.js';
|
|
@@ -183,7 +183,7 @@ var DeckQueue = function (_React$Component) {
|
|
|
183
183
|
var rightItems = _this.props.rightItems;
|
|
184
184
|
|
|
185
185
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
186
|
-
return
|
|
186
|
+
return React.createElement(
|
|
187
187
|
'div',
|
|
188
188
|
{ style: { display: 'flex', flex: '1 0 auto' } },
|
|
189
189
|
rightItems[i].component
|
|
@@ -191,15 +191,15 @@ var DeckQueue = function (_React$Component) {
|
|
|
191
191
|
}, _this.renderManualPagination = function () {
|
|
192
192
|
var currentPage = _this.state.currentPage;
|
|
193
193
|
|
|
194
|
-
return
|
|
194
|
+
return React.createElement(
|
|
195
195
|
'div',
|
|
196
196
|
{ className: 'd-flex justify-content-between' },
|
|
197
|
-
currentPage && currentPage > 1 &&
|
|
197
|
+
currentPage && currentPage > 1 && React.createElement(
|
|
198
198
|
'a',
|
|
199
199
|
{ href: '?page=' + (currentPage - 1) },
|
|
200
200
|
'<< Previous'
|
|
201
201
|
),
|
|
202
|
-
|
|
202
|
+
React.createElement(
|
|
203
203
|
'a',
|
|
204
204
|
{ href: '?page=' + (currentPage + 1) },
|
|
205
205
|
'Next >>'
|
|
@@ -217,78 +217,78 @@ var DeckQueue = function (_React$Component) {
|
|
|
217
217
|
var lgVar = Math.floor(12 / columns);
|
|
218
218
|
var numberOfItemsBeforeAd = 6;
|
|
219
219
|
|
|
220
|
-
return
|
|
220
|
+
return React.createElement(
|
|
221
221
|
Row,
|
|
222
222
|
null,
|
|
223
223
|
this.state.data && this.state.data.map(function (row, index) {
|
|
224
224
|
var pageNumber = row.pageNumber || _this2.state.page;
|
|
225
225
|
// const thumbnailURL = get(row, 'thumbnail.asset.url', this.props.defaultImage)
|
|
226
226
|
|
|
227
|
-
return
|
|
228
|
-
|
|
227
|
+
return React.createElement(
|
|
228
|
+
React.Fragment,
|
|
229
229
|
{ key: index },
|
|
230
|
-
|
|
230
|
+
React.createElement(
|
|
231
231
|
VisibilitySensor,
|
|
232
232
|
{
|
|
233
233
|
onChange: function onChange(isVisible) {
|
|
234
234
|
isVisible && _this2.changePageNumber(pageNumber);
|
|
235
235
|
} },
|
|
236
|
-
|
|
236
|
+
React.createElement(
|
|
237
237
|
Col,
|
|
238
238
|
{ md: 12, lg: lgVar, style: { display: 'flex', flex: '1 0 auto' } },
|
|
239
|
-
|
|
239
|
+
React.createElement(
|
|
240
240
|
Card,
|
|
241
241
|
{ className: 'queue-card', style: { borderTop: '1px solid #EEE' } },
|
|
242
|
-
|
|
242
|
+
React.createElement(
|
|
243
243
|
Row,
|
|
244
244
|
{ style: { flexDirection: mode } },
|
|
245
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
245
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React.createElement(
|
|
246
246
|
Col,
|
|
247
247
|
{ md: 12, lg: 4 },
|
|
248
|
-
|
|
248
|
+
React.createElement(
|
|
249
249
|
'a',
|
|
250
250
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
251
|
-
|
|
251
|
+
React.createElement(
|
|
252
252
|
LazyLoad,
|
|
253
253
|
{ height: _this2.props.imageHeight },
|
|
254
|
-
|
|
254
|
+
React.createElement(Card.Img, { variant: 'top', src: _this2.renderCardImage(row), alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : '' })
|
|
255
255
|
)
|
|
256
256
|
)
|
|
257
257
|
),
|
|
258
|
-
|
|
258
|
+
React.createElement(
|
|
259
259
|
Col,
|
|
260
260
|
null,
|
|
261
|
-
|
|
261
|
+
React.createElement(
|
|
262
262
|
Card.Body,
|
|
263
263
|
{ style: { padding: '20px' } },
|
|
264
|
-
row.title &&
|
|
264
|
+
row.title && React.createElement(
|
|
265
265
|
Card.Title,
|
|
266
266
|
null,
|
|
267
|
-
|
|
267
|
+
React.createElement(
|
|
268
268
|
'a',
|
|
269
269
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
270
270
|
row.title
|
|
271
271
|
)
|
|
272
272
|
),
|
|
273
|
-
_this2.props.showPublished && row.published &&
|
|
273
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
274
274
|
Card.Subtitle,
|
|
275
275
|
null,
|
|
276
276
|
moment(row.published).format('MMMM DD, YYYY')
|
|
277
277
|
),
|
|
278
|
-
_this2.props.showRecent && row.recent && row.recent.title &&
|
|
278
|
+
_this2.props.showRecent && row.recent && row.recent.title && React.createElement(
|
|
279
279
|
Card.Subtitle,
|
|
280
280
|
null,
|
|
281
281
|
'Recent : ',
|
|
282
|
-
|
|
282
|
+
React.createElement(
|
|
283
283
|
'a',
|
|
284
284
|
{ href: 'view/' + row.recent.url.current },
|
|
285
285
|
row.recent.title
|
|
286
286
|
)
|
|
287
287
|
),
|
|
288
|
-
row.summary &&
|
|
288
|
+
row.summary && React.createElement(
|
|
289
289
|
Card.Text,
|
|
290
290
|
null,
|
|
291
|
-
|
|
291
|
+
React.createElement(
|
|
292
292
|
'a',
|
|
293
293
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
294
294
|
clean_html_1(row.summary)
|
|
@@ -300,7 +300,7 @@ var DeckQueue = function (_React$Component) {
|
|
|
300
300
|
)
|
|
301
301
|
)
|
|
302
302
|
),
|
|
303
|
-
|
|
303
|
+
main_40 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
304
304
|
);
|
|
305
305
|
})
|
|
306
306
|
);
|
|
@@ -317,29 +317,29 @@ var DeckQueue = function (_React$Component) {
|
|
|
317
317
|
page = _props.page;
|
|
318
318
|
|
|
319
319
|
|
|
320
|
-
return
|
|
320
|
+
return React.createElement(
|
|
321
321
|
'div',
|
|
322
322
|
{ className: 'contentDeck' },
|
|
323
|
-
autoScroll ?
|
|
323
|
+
autoScroll ? React.createElement(
|
|
324
324
|
InfiniteScroll,
|
|
325
325
|
{ dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling },
|
|
326
|
-
|
|
326
|
+
React.createElement(
|
|
327
327
|
Container,
|
|
328
328
|
null,
|
|
329
329
|
this.cardLoader(page, columns, variant)
|
|
330
330
|
)
|
|
331
|
-
) :
|
|
332
|
-
|
|
331
|
+
) : React.createElement(
|
|
332
|
+
React.Fragment,
|
|
333
333
|
null,
|
|
334
|
-
|
|
334
|
+
React.createElement(
|
|
335
335
|
Container,
|
|
336
336
|
null,
|
|
337
337
|
this.cardLoader(page, columns, variant)
|
|
338
338
|
),
|
|
339
|
-
|
|
339
|
+
React.createElement(
|
|
340
340
|
'div',
|
|
341
341
|
{ style: { padding: '0px 10px' } },
|
|
342
|
-
this.state.scrolling ?
|
|
342
|
+
this.state.scrolling ? React.createElement(
|
|
343
343
|
'button',
|
|
344
344
|
{
|
|
345
345
|
style: { margin: 'auto', width: '100%' },
|
|
@@ -347,17 +347,17 @@ var DeckQueue = function (_React$Component) {
|
|
|
347
347
|
_this3.loadMore();
|
|
348
348
|
} },
|
|
349
349
|
'Load More'
|
|
350
|
-
) :
|
|
350
|
+
) : React.createElement(
|
|
351
351
|
'p',
|
|
352
352
|
{ style: { textAlign: 'center' } },
|
|
353
|
-
|
|
353
|
+
React.createElement(
|
|
354
354
|
'b',
|
|
355
355
|
null,
|
|
356
356
|
'End of data'
|
|
357
357
|
)
|
|
358
358
|
)
|
|
359
359
|
),
|
|
360
|
-
|
|
360
|
+
React.createElement(
|
|
361
361
|
'noscript',
|
|
362
362
|
null,
|
|
363
363
|
this.renderManualPagination()
|
|
@@ -368,7 +368,7 @@ var DeckQueue = function (_React$Component) {
|
|
|
368
368
|
}]);
|
|
369
369
|
|
|
370
370
|
return DeckQueue;
|
|
371
|
-
}(
|
|
371
|
+
}(React.Component);
|
|
372
372
|
|
|
373
373
|
var Queue = withRouter(DeckQueue);
|
|
374
374
|
|
|
@@ -2,13 +2,13 @@ import './_commonjsHelpers-0c4b6f40.js';
|
|
|
2
2
|
import './_to-object-16fd8b46.js';
|
|
3
3
|
import './core.get-iterator-method-f5c0d66a.js';
|
|
4
4
|
import './web.dom.iterable-46c95e52.js';
|
|
5
|
-
import
|
|
6
|
-
import { b as lib_1, a as lib_2 } from './index-
|
|
5
|
+
import React, { useState } from 'react';
|
|
6
|
+
import { b as lib_1, a as lib_2 } from './index-1819118a.js';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import './isSymbol-b7b7434f.js';
|
|
9
9
|
import { d as debounce_1 } from './debounce-048d9cb6.js';
|
|
10
10
|
import 'react-dom';
|
|
11
|
-
import { V as VisibilitySensor } from './visibility-sensor-
|
|
11
|
+
import { V as VisibilitySensor } from './visibility-sensor-082c757b.js';
|
|
12
12
|
import { _ as _slicedToArray } from './slicedToArray-f1e40361.js';
|
|
13
13
|
|
|
14
14
|
var AD = function AD(_ref) {
|
|
@@ -40,20 +40,20 @@ var AD = function AD(_ref) {
|
|
|
40
40
|
}
|
|
41
41
|
}, 500);
|
|
42
42
|
|
|
43
|
-
return
|
|
44
|
-
|
|
43
|
+
return React.createElement(
|
|
44
|
+
React.Fragment,
|
|
45
45
|
null,
|
|
46
|
-
!showPlaceholder &&
|
|
46
|
+
!showPlaceholder && React.createElement(
|
|
47
47
|
lib_1,
|
|
48
48
|
{
|
|
49
49
|
dfpNetworkId: networkID,
|
|
50
50
|
targetingArguments: targeting,
|
|
51
51
|
sizeMapping: sizeMapping,
|
|
52
52
|
lazyLoad: { fetchMarginPercent: 500, renderMarginPercent: 200, mobileScaling: 2.0 } },
|
|
53
|
-
|
|
53
|
+
React.createElement(
|
|
54
54
|
'div',
|
|
55
55
|
{ className: className },
|
|
56
|
-
|
|
56
|
+
React.createElement(lib_2, {
|
|
57
57
|
slotId: slotId,
|
|
58
58
|
sizes: sizes,
|
|
59
59
|
adUnit: adUnit,
|
|
@@ -65,7 +65,7 @@ var AD = function AD(_ref) {
|
|
|
65
65
|
})
|
|
66
66
|
)
|
|
67
67
|
),
|
|
68
|
-
adRendered && showPlaceholder &&
|
|
68
|
+
adRendered && showPlaceholder && React.createElement(
|
|
69
69
|
VisibilitySensor,
|
|
70
70
|
{
|
|
71
71
|
partialVisibility: true,
|
|
@@ -74,7 +74,7 @@ var AD = function AD(_ref) {
|
|
|
74
74
|
setShowPlaceholder(false);
|
|
75
75
|
}
|
|
76
76
|
} },
|
|
77
|
-
|
|
77
|
+
React.createElement(
|
|
78
78
|
'div',
|
|
79
79
|
{ style: { height: 'auto' } },
|
|
80
80
|
'\xA0'
|
package/dist/esm/EventsDeck.js
CHANGED
|
@@ -5,19 +5,19 @@ import './_iter-detect-6e099a34.js';
|
|
|
5
5
|
import './from-2c0a5f49.js';
|
|
6
6
|
import { _ as _toConsumableArray } from './toConsumableArray-8712d678.js';
|
|
7
7
|
import './web.dom.iterable-46c95e52.js';
|
|
8
|
-
import
|
|
8
|
+
import React, { useState, useEffect } from 'react';
|
|
9
9
|
import Container from 'react-bootstrap/Container';
|
|
10
10
|
import Row from 'react-bootstrap/Row';
|
|
11
11
|
import Col from 'react-bootstrap/Col';
|
|
12
12
|
import Card from 'react-bootstrap/Card';
|
|
13
|
-
import './moment-
|
|
14
|
-
import { I as InfiniteScroll } from './index.es-
|
|
15
|
-
import { m as
|
|
13
|
+
import './moment-b6f49411.js';
|
|
14
|
+
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
15
|
+
import { m as main_40 } from './main-b722e2e2.js';
|
|
16
16
|
import { _ as _slicedToArray } from './slicedToArray-f1e40361.js';
|
|
17
17
|
import { _ as _JSON$stringify } from './stringify-e30bc114.js';
|
|
18
18
|
import Button from 'react-bootstrap/Button';
|
|
19
19
|
import Spinner from 'react-bootstrap/Spinner';
|
|
20
|
-
import { m as momentTimezone } from './index-
|
|
20
|
+
import { m as momentTimezone } from './index-fa2ffe86.js';
|
|
21
21
|
import { j as js_cookie } from './js.cookie-6874175c.js';
|
|
22
22
|
|
|
23
23
|
var clientId = process.env.CVENT_CLIENT_ID;
|
|
@@ -147,23 +147,23 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
147
147
|
if (cventAccessToken && cventAccessToken !== 'undefined') {
|
|
148
148
|
setAccessToken(cventAccessToken);
|
|
149
149
|
} else {
|
|
150
|
-
/*const encodedData = window.btoa(clientId + ':' + clientSecret)
|
|
151
|
-
//const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
|
|
152
|
-
const url = `https://api-platform.cvent.com/ea/oauth2/token`
|
|
153
|
-
fetch(url, {
|
|
154
|
-
headers: {
|
|
155
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
156
|
-
Authorization: `Basic ${encodedData}`
|
|
157
|
-
},
|
|
158
|
-
method: 'POST',
|
|
159
|
-
body: `grant_type=client_credentials&client_id=${clientId}`
|
|
160
|
-
})
|
|
161
|
-
.then((response) => response.json())
|
|
162
|
-
.then((json) => {
|
|
163
|
-
const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
|
|
164
|
-
Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
|
|
165
|
-
setAccessToken(json.access_token)
|
|
166
|
-
})
|
|
150
|
+
/*const encodedData = window.btoa(clientId + ':' + clientSecret)
|
|
151
|
+
//const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
|
|
152
|
+
const url = `https://api-platform.cvent.com/ea/oauth2/token`
|
|
153
|
+
fetch(url, {
|
|
154
|
+
headers: {
|
|
155
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
|
156
|
+
Authorization: `Basic ${encodedData}`
|
|
157
|
+
},
|
|
158
|
+
method: 'POST',
|
|
159
|
+
body: `grant_type=client_credentials&client_id=${clientId}`
|
|
160
|
+
})
|
|
161
|
+
.then((response) => response.json())
|
|
162
|
+
.then((json) => {
|
|
163
|
+
const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
|
|
164
|
+
Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
|
|
165
|
+
setAccessToken(json.access_token)
|
|
166
|
+
})
|
|
167
167
|
.catch((e) => console.log(e))*/
|
|
168
168
|
// hello
|
|
169
169
|
var url = 'https://beam.mjhlifesciences.com/api/cvent/token';
|
|
@@ -191,10 +191,10 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
191
191
|
}, []);
|
|
192
192
|
|
|
193
193
|
var renderRegisterButton = function renderRegisterButton(links) {
|
|
194
|
-
return
|
|
194
|
+
return React.createElement(
|
|
195
195
|
'a',
|
|
196
196
|
{ href: links.summary.href || '#', target: '_blank' },
|
|
197
|
-
|
|
197
|
+
React.createElement(
|
|
198
198
|
Button,
|
|
199
199
|
{ size: 'sm', className: 'registration-button', style: { borderRadius: '8px' } },
|
|
200
200
|
cta
|
|
@@ -202,10 +202,10 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
202
202
|
);
|
|
203
203
|
};
|
|
204
204
|
var renderLearnMoreButton = function renderLearnMoreButton(links) {
|
|
205
|
-
return
|
|
205
|
+
return React.createElement(
|
|
206
206
|
'a',
|
|
207
207
|
{ href: links.summary.href || '#', target: '_blank' },
|
|
208
|
-
|
|
208
|
+
React.createElement(
|
|
209
209
|
Button,
|
|
210
210
|
{ size: 'sm', className: 'registration-button', style: { borderRadius: '8px' } },
|
|
211
211
|
'Learn More'
|
|
@@ -216,7 +216,7 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
216
216
|
var cardLoader = function cardLoader() {
|
|
217
217
|
var numberOfItemsBeforeAd = 5;
|
|
218
218
|
|
|
219
|
-
return
|
|
219
|
+
return React.createElement(
|
|
220
220
|
Container,
|
|
221
221
|
{ style: { padding: 1 } },
|
|
222
222
|
data && data.map(function (row, index) {
|
|
@@ -257,58 +257,58 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
257
257
|
var endDay = momentTimezone(end).tz(timezone).format();
|
|
258
258
|
var showEndTime = momentTimezone(startDay.split('T')[0]).isBefore(endDay.split('T')[0]) ? ' to ' + momentTimezone(end).tz(timezone).format('LLL zz') : null;
|
|
259
259
|
var isCompleted = row.status === 'Completed';
|
|
260
|
-
return
|
|
261
|
-
|
|
260
|
+
return React.createElement(
|
|
261
|
+
React.Fragment,
|
|
262
262
|
{ key: index },
|
|
263
|
-
|
|
263
|
+
React.createElement(
|
|
264
264
|
Card,
|
|
265
265
|
null,
|
|
266
|
-
isHardcoded ? _links &&
|
|
266
|
+
isHardcoded ? _links && React.createElement(
|
|
267
267
|
Row,
|
|
268
268
|
null,
|
|
269
|
-
|
|
269
|
+
React.createElement(
|
|
270
270
|
Col,
|
|
271
271
|
null,
|
|
272
272
|
renderLearnMoreButton(_links)
|
|
273
273
|
)
|
|
274
|
-
) : isRegister && _links &&
|
|
274
|
+
) : isRegister && _links && React.createElement(
|
|
275
275
|
Row,
|
|
276
276
|
null,
|
|
277
|
-
|
|
277
|
+
React.createElement(
|
|
278
278
|
Col,
|
|
279
279
|
null,
|
|
280
280
|
renderRegisterButton(_links)
|
|
281
281
|
)
|
|
282
282
|
),
|
|
283
|
-
isCompleted && _links &&
|
|
283
|
+
isCompleted && _links && React.createElement(
|
|
284
284
|
Row,
|
|
285
285
|
null,
|
|
286
|
-
|
|
286
|
+
React.createElement(
|
|
287
287
|
Col,
|
|
288
288
|
null,
|
|
289
289
|
renderLearnMoreButton(_links)
|
|
290
290
|
)
|
|
291
291
|
),
|
|
292
|
-
discussionTopic &&
|
|
292
|
+
discussionTopic && React.createElement(
|
|
293
293
|
Row,
|
|
294
294
|
null,
|
|
295
|
-
|
|
295
|
+
React.createElement(
|
|
296
296
|
Col,
|
|
297
297
|
null,
|
|
298
|
-
|
|
298
|
+
React.createElement('h5', { className: 'topic', style: { fontWeight: '500', marginBottom: 0 }, dangerouslySetInnerHTML: { __html: discussionTopic } })
|
|
299
299
|
)
|
|
300
300
|
),
|
|
301
|
-
start && timezone &&
|
|
301
|
+
start && timezone && React.createElement(
|
|
302
302
|
Row,
|
|
303
303
|
null,
|
|
304
|
-
|
|
304
|
+
React.createElement(
|
|
305
305
|
Col,
|
|
306
306
|
null,
|
|
307
|
-
start.indexOf('TBD') >= 0 ?
|
|
307
|
+
start.indexOf('TBD') >= 0 ? React.createElement(
|
|
308
308
|
'p',
|
|
309
309
|
{ className: 'start-time', style: { padding: 0, margin: 0 } },
|
|
310
310
|
start
|
|
311
|
-
) :
|
|
311
|
+
) : React.createElement(
|
|
312
312
|
'p',
|
|
313
313
|
{ className: 'start-time', style: { padding: 0, margin: 0 } },
|
|
314
314
|
start.indexOf('T') >= 0 ? momentTimezone(start).tz(timezone).format('LLL zz') : momentTimezone(start).format('LL'),
|
|
@@ -316,47 +316,47 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
316
316
|
)
|
|
317
317
|
)
|
|
318
318
|
),
|
|
319
|
-
eventRegion &&
|
|
319
|
+
eventRegion && React.createElement(
|
|
320
320
|
Row,
|
|
321
321
|
null,
|
|
322
|
-
|
|
322
|
+
React.createElement(
|
|
323
323
|
Col,
|
|
324
324
|
null,
|
|
325
|
-
|
|
325
|
+
React.createElement(
|
|
326
326
|
'p',
|
|
327
327
|
{ className: 'event-region', style: { padding: 0, margin: 0 } },
|
|
328
328
|
eventRegion
|
|
329
329
|
)
|
|
330
330
|
)
|
|
331
331
|
),
|
|
332
|
-
venues && venues.length && venues[0].name &&
|
|
332
|
+
venues && venues.length && venues[0].name && React.createElement(
|
|
333
333
|
Row,
|
|
334
334
|
null,
|
|
335
|
-
|
|
335
|
+
React.createElement(
|
|
336
336
|
Col,
|
|
337
337
|
null,
|
|
338
|
-
|
|
338
|
+
React.createElement(
|
|
339
339
|
'p',
|
|
340
340
|
{ className: 'venue', style: { padding: 0, margin: 0 } },
|
|
341
341
|
venues[0].name
|
|
342
342
|
)
|
|
343
343
|
)
|
|
344
344
|
),
|
|
345
|
-
speakerInfo && speakerInfo.length > 0 &&
|
|
345
|
+
speakerInfo && speakerInfo.length > 0 && React.createElement(
|
|
346
346
|
Row,
|
|
347
347
|
null,
|
|
348
|
-
|
|
348
|
+
React.createElement(
|
|
349
349
|
Col,
|
|
350
350
|
null,
|
|
351
|
-
|
|
351
|
+
React.createElement(
|
|
352
352
|
'div',
|
|
353
353
|
{ className: 'speaker-section', style: { border: '1px solid', borderRadius: '8px', padding: '8px' } },
|
|
354
354
|
speakerInfo.map(function (info, index) {
|
|
355
|
-
return
|
|
355
|
+
return React.createElement(
|
|
356
356
|
'p',
|
|
357
357
|
{ key: index, style: { marginBottom: '0' } },
|
|
358
358
|
info.value.map(function (speaker, index) {
|
|
359
|
-
return
|
|
359
|
+
return React.createElement(
|
|
360
360
|
'b',
|
|
361
361
|
{ key: index, className: 'kol-speaker' },
|
|
362
362
|
speaker,
|
|
@@ -369,14 +369,14 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
369
369
|
)
|
|
370
370
|
)
|
|
371
371
|
),
|
|
372
|
-
|
|
372
|
+
main_40 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React.createElement(
|
|
373
373
|
'div',
|
|
374
374
|
{ style: { margin: '0 auto' } },
|
|
375
375
|
renderMobileAd(index, numberOfItemsBeforeAd)
|
|
376
376
|
)
|
|
377
377
|
);
|
|
378
378
|
}),
|
|
379
|
-
|
|
379
|
+
React.createElement(
|
|
380
380
|
'style',
|
|
381
381
|
{ jsx: 'true' },
|
|
382
382
|
'\n .card {\n -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.45);\n box-shadow: 0 0 4px rgba(0, 0, 0, 0.45);\n border-radius: 8px;\n padding: 12px;\n }\n .row {\n margin-bottom: 8px;\n }\n '
|
|
@@ -386,7 +386,7 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
386
386
|
|
|
387
387
|
var renderMobileAd = function renderMobileAd(index, numberOfItemsBeforeAd) {
|
|
388
388
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
389
|
-
return
|
|
389
|
+
return React.createElement(
|
|
390
390
|
Col,
|
|
391
391
|
{ md: 12, style: { display: 'flex', flex: '1 0 auto' } },
|
|
392
392
|
rightItems[i].component
|
|
@@ -394,13 +394,13 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
394
394
|
};
|
|
395
395
|
|
|
396
396
|
if (isLoading) {
|
|
397
|
-
return
|
|
397
|
+
return React.createElement(
|
|
398
398
|
'div',
|
|
399
399
|
{ style: { display: 'flex', justifyContent: 'center', marginTop: '48px' } },
|
|
400
|
-
|
|
400
|
+
React.createElement(
|
|
401
401
|
Spinner,
|
|
402
402
|
{ animation: 'border', role: 'status' },
|
|
403
|
-
|
|
403
|
+
React.createElement(
|
|
404
404
|
'span',
|
|
405
405
|
{ className: 'sr-only' },
|
|
406
406
|
'Loading...'
|
|
@@ -412,20 +412,20 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
412
412
|
// console.log(data.length > 0 && data[0].customFields.find((item) => item.name === 'Discussion Topic').value[0])
|
|
413
413
|
|
|
414
414
|
if (data.length > 0) {
|
|
415
|
-
return
|
|
415
|
+
return React.createElement(
|
|
416
416
|
'div',
|
|
417
417
|
{ className: 'cvent-events' },
|
|
418
|
-
|
|
418
|
+
React.createElement(
|
|
419
419
|
InfiniteScroll,
|
|
420
420
|
{ dataLength: data.length, next: loadMore, hasMore: scrolling, scrollThreshold: 0.9 },
|
|
421
421
|
cardLoader()
|
|
422
422
|
)
|
|
423
423
|
);
|
|
424
424
|
} else {
|
|
425
|
-
return
|
|
425
|
+
return React.createElement(
|
|
426
426
|
'div',
|
|
427
427
|
null,
|
|
428
|
-
|
|
428
|
+
React.createElement(
|
|
429
429
|
'div',
|
|
430
430
|
null,
|
|
431
431
|
'No events found '
|