@mjhls/mjh-framework 1.0.465 → 1.0.467
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 +171 -171
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +3 -3
- package/dist/cjs/AD300x250x600.js +3 -3
- package/dist/cjs/AD728x90.js +3 -3
- package/dist/cjs/ADFloatingFooter.js +2 -2
- package/dist/cjs/ADGutter.js +2 -2
- package/dist/cjs/ADSponsoredResources.js +2 -2
- package/dist/cjs/ADWebcast.js +2 -2
- package/dist/cjs/ADWelcome.js +2 -2
- package/dist/cjs/AdSlot.js +2 -2
- package/dist/cjs/AdSlotsProvider.js +1 -1
- package/dist/cjs/ArticleQueue.js +7 -7
- package/dist/cjs/Auth.js +301 -250
- package/dist/cjs/CMEDeck.js +5 -5
- package/dist/cjs/Column3.js +4 -4
- package/dist/cjs/ConferenceArticleCard.js +16 -16
- package/dist/cjs/DeckContent.js +14 -14
- package/dist/cjs/DeckQueue.js +5 -5
- package/dist/cjs/{Dfp-fcdeabc4.js → Dfp-fbe32b96.js} +1 -1
- package/dist/cjs/EventsDeck.js +21 -21
- package/dist/cjs/Feature.js +2 -2
- package/dist/cjs/ForbesHero.js +1 -1
- package/dist/cjs/GridContent.js +10 -10
- package/dist/cjs/GridHero.js +1 -1
- package/dist/cjs/GroupDeck.js +4 -4
- package/dist/cjs/HamMagazine.js +11 -11
- package/dist/cjs/HorizontalHero.js +1 -1
- package/dist/cjs/IssueContentDeck.js +1 -1
- package/dist/cjs/IssueDeck.js +1 -1
- package/dist/cjs/IssueLanding.js +35 -35
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +2 -2
- package/dist/cjs/MasterDeck.js +15 -15
- package/dist/cjs/NavMagazine.js +12 -12
- package/dist/cjs/NavNative.js +11 -11
- package/dist/cjs/OncliveHero.js +1 -1
- package/dist/cjs/OncliveLargeHero.js +1 -1
- package/dist/cjs/PublicationLanding.js +33 -33
- package/dist/cjs/QueueDeckExpanded.js +10 -9
- package/dist/cjs/RelatedContent.js +29 -29
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/TemplateNormal.js +2 -2
- package/dist/cjs/VerticalHero.js +1 -1
- package/dist/cjs/VideoSeriesFilter.js +1 -1
- package/dist/cjs/VideoSeriesListing.js +3 -3
- package/dist/cjs/View.js +10 -10
- package/dist/cjs/YahooHero.js +1 -1
- package/dist/cjs/YoutubeGroup.js +4 -4
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/getSerializers.js +4 -4
- package/dist/cjs/{getTargeting-86e68d62.js → getTargeting-b15993cb.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{index-fa3cec70.js → index-f7ee1612.js} +4 -6
- package/dist/cjs/{index.es-9110add6.js → index.es-ab3f2690.js} +3 -1
- package/dist/cjs/index.js +7 -7
- package/dist/cjs/{main-00905561.js → main-bc4db521.js} +61 -30
- package/dist/cjs/{moment-3cf060f6.js → moment-66a6a284.js} +5 -5
- package/dist/cjs/urlFor.js +1 -1
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +3 -3
- package/dist/esm/AD300x250x600.js +3 -3
- package/dist/esm/AD728x90.js +3 -3
- package/dist/esm/ADFloatingFooter.js +2 -2
- package/dist/esm/ADGutter.js +2 -2
- package/dist/esm/ADSponsoredResources.js +2 -2
- package/dist/esm/ADWebcast.js +2 -2
- package/dist/esm/ADWelcome.js +2 -2
- package/dist/esm/AdSlot.js +2 -2
- package/dist/esm/AdSlotsProvider.js +1 -1
- package/dist/esm/ArticleQueue.js +7 -7
- package/dist/esm/Auth.js +301 -250
- package/dist/esm/CMEDeck.js +5 -5
- package/dist/esm/Column3.js +4 -4
- package/dist/esm/ConferenceArticleCard.js +16 -16
- package/dist/esm/DeckContent.js +14 -14
- package/dist/esm/DeckQueue.js +5 -5
- package/dist/esm/{Dfp-58cfc45a.js → Dfp-6d2b24a0.js} +1 -1
- package/dist/esm/EventsDeck.js +21 -21
- package/dist/esm/Feature.js +2 -2
- package/dist/esm/ForbesHero.js +1 -1
- package/dist/esm/GridContent.js +10 -10
- package/dist/esm/GridHero.js +1 -1
- package/dist/esm/GroupDeck.js +4 -4
- package/dist/esm/HamMagazine.js +11 -11
- package/dist/esm/HorizontalHero.js +1 -1
- package/dist/esm/IssueContentDeck.js +1 -1
- package/dist/esm/IssueDeck.js +1 -1
- package/dist/esm/IssueLanding.js +35 -35
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +2 -2
- package/dist/esm/MasterDeck.js +15 -15
- package/dist/esm/NavMagazine.js +12 -12
- package/dist/esm/NavNative.js +11 -11
- package/dist/esm/OncliveHero.js +1 -1
- package/dist/esm/OncliveLargeHero.js +1 -1
- package/dist/esm/PublicationLanding.js +33 -33
- package/dist/esm/QueueDeckExpanded.js +10 -9
- package/dist/esm/RelatedContent.js +29 -29
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/SideFooter.js +2 -2
- package/dist/esm/TemplateNormal.js +2 -2
- package/dist/esm/VerticalHero.js +1 -1
- package/dist/esm/VideoSeriesFilter.js +1 -1
- package/dist/esm/VideoSeriesListing.js +3 -3
- package/dist/esm/View.js +10 -10
- package/dist/esm/YahooHero.js +1 -1
- package/dist/esm/YoutubeGroup.js +4 -4
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getSerializers.js +4 -4
- package/dist/esm/{getTargeting-1f2c61e3.js → getTargeting-1a0bd08d.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-3f4dd6f2.js → index-93ec3c59.js} +4 -6
- package/dist/esm/{index.es-29c1cef5.js → index.es-938a3a58.js} +3 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/{main-adf6ec37.js → main-7255814e.js} +60 -29
- package/dist/esm/{moment-49ae13fa.js → moment-12415288.js} +5 -5
- package/dist/esm/urlFor.js +1 -1
- package/package.json +105 -105
- /package/dist/cjs/{ADInfeed-4b904089.js → ADInfeed-8a7f1d50.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-f540f438.js → ADlgInfeed-659b82b6.js} +0 -0
- /package/dist/esm/{ADInfeed-23148e88.js → ADInfeed-dbd65900.js} +0 -0
- /package/dist/esm/{ADlgInfeed-5460339b.js → ADlgInfeed-a385f968.js} +0 -0
package/dist/esm/Column3.js
CHANGED
|
@@ -5,13 +5,13 @@ import './_library-528f1934.js';
|
|
|
5
5
|
import './_iter-detect-6e099a34.js';
|
|
6
6
|
import './web.dom.iterable-46c95e52.js';
|
|
7
7
|
import React__default, { useRef, useEffect } from 'react';
|
|
8
|
-
import './index-
|
|
8
|
+
import './index-93ec3c59.js';
|
|
9
9
|
import 'prop-types';
|
|
10
10
|
import Row from 'react-bootstrap/Row';
|
|
11
11
|
import Col from 'react-bootstrap/Col';
|
|
12
12
|
import './isSymbol-c1b9be80.js';
|
|
13
13
|
import './debounce-8cd9e09c.js';
|
|
14
|
-
import { m as
|
|
14
|
+
import { m as main_39 } from './main-7255814e.js';
|
|
15
15
|
import './slicedToArray-f1e40361.js';
|
|
16
16
|
import './stringify-e30bc114.js';
|
|
17
17
|
import './asyncToGenerator-0379e924.js';
|
|
@@ -46,7 +46,7 @@ var Column3 = function Column3(props) {
|
|
|
46
46
|
var adRef = useRef(null);
|
|
47
47
|
|
|
48
48
|
useEffect(function () {
|
|
49
|
-
if (!
|
|
49
|
+
if (!main_39 && window.innerWidth >= 768) {
|
|
50
50
|
var navbar = document.querySelector('.navbar');
|
|
51
51
|
var AdOffsetTop = adRef.current.getBoundingClientRect().top;
|
|
52
52
|
window.addEventListener('scroll', function () {
|
|
@@ -106,7 +106,7 @@ var Column3 = function Column3(props) {
|
|
|
106
106
|
{ jsx: 'true' },
|
|
107
107
|
'\n .filter-box {\n float: right;\n padding-top: 6px;\n padding-right: 18px;\n }\n @media only screen and (min-width: 768px) {\n .title-wrap {\n display: flex;\n justify-content: space-between;\n }\n }\n @media only screen and (max-width: 767px) {\n /* .filter-box {\n float: right;\n display: flex;\n justify-content: flex-end;\n } */\n .title-wrap {\n display: flex;\n flex-direction: column;\n margin-bottom: 10px;\n }\n }\n '
|
|
108
108
|
),
|
|
109
|
-
(!
|
|
109
|
+
(!main_39 || showRightAd) && React__default.createElement(
|
|
110
110
|
Col,
|
|
111
111
|
{ xs: 12, className: 'rightCol' },
|
|
112
112
|
website && website.conferenceBannerContent && React__default.createElement(ConferenceBanner, { website: website }),
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { m as moment } from './moment-
|
|
3
|
+
import { m as moment } from './moment-12415288.js';
|
|
4
4
|
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
5
5
|
|
|
6
|
-
/*
|
|
7
|
-
Example usage - targetedonc.com/latest-conference
|
|
8
|
-
const query = `*[!(_id in path("drafts.**")) && _type == "article" && defined(title) && is_visible == true && published <= '${today}' && references('b49d36b8-aa56-4183-a2bc-1568c229fb72') ] | order(published desc) [$from...$to] {
|
|
9
|
-
...,
|
|
10
|
-
title,
|
|
11
|
-
summary,
|
|
12
|
-
thumbnail,
|
|
13
|
-
url,
|
|
14
|
-
published,
|
|
15
|
-
documentGroup->,
|
|
16
|
-
contentCategory->,
|
|
17
|
-
'pageNumber': ${currentPage}
|
|
18
|
-
}`
|
|
19
|
-
|
|
20
|
-
const posts = await client.fetch(query, params)
|
|
6
|
+
/*
|
|
7
|
+
Example usage - targetedonc.com/latest-conference
|
|
8
|
+
const query = `*[!(_id in path("drafts.**")) && _type == "article" && defined(title) && is_visible == true && published <= '${today}' && references('b49d36b8-aa56-4183-a2bc-1568c229fb72') ] | order(published desc) [$from...$to] {
|
|
9
|
+
...,
|
|
10
|
+
title,
|
|
11
|
+
summary,
|
|
12
|
+
thumbnail,
|
|
13
|
+
url,
|
|
14
|
+
published,
|
|
15
|
+
documentGroup->,
|
|
16
|
+
contentCategory->,
|
|
17
|
+
'pageNumber': ${currentPage}
|
|
18
|
+
}`
|
|
19
|
+
|
|
20
|
+
const posts = await client.fetch(query, params)
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
23
|
var ConferenceArticleCard = function ConferenceArticleCard(props) {
|
package/dist/esm/DeckContent.js
CHANGED
|
@@ -13,22 +13,22 @@ import './web.dom.iterable-46c95e52.js';
|
|
|
13
13
|
import './typeof-5f046efd.js';
|
|
14
14
|
import './_is-array-dd5523d6.js';
|
|
15
15
|
import React__default from 'react';
|
|
16
|
-
import { l as lib_3 } from './index-
|
|
16
|
+
import { l as lib_3 } from './index-93ec3c59.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-12415288.js';
|
|
23
23
|
import { withRouter } from 'next/router';
|
|
24
24
|
import './isSymbol-c1b9be80.js';
|
|
25
25
|
import { d as debounce_1 } from './debounce-8cd9e09c.js';
|
|
26
|
-
import { I as InfiniteScroll } from './index.es-
|
|
26
|
+
import { I as InfiniteScroll } from './index.es-938a3a58.js';
|
|
27
27
|
import 'react-dom';
|
|
28
28
|
import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
|
|
29
29
|
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
30
30
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
31
|
-
import { m as
|
|
31
|
+
import { m as main_39 } from './main-7255814e.js';
|
|
32
32
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
33
33
|
import './slicedToArray-f1e40361.js';
|
|
34
34
|
import './stringify-e30bc114.js';
|
|
@@ -37,7 +37,7 @@ import './_set-species-6f64f1c1.js';
|
|
|
37
37
|
import './Beam.js';
|
|
38
38
|
import './Segment.js';
|
|
39
39
|
import './AdSlot.js';
|
|
40
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
40
|
+
import { A as ADInfeed } from './ADInfeed-dbd65900.js';
|
|
41
41
|
|
|
42
42
|
var DeckContent = function (_React$Component) {
|
|
43
43
|
_inherits(DeckContent, _React$Component);
|
|
@@ -178,14 +178,14 @@ var DeckContent = function (_React$Component) {
|
|
|
178
178
|
var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
|
|
179
179
|
|
|
180
180
|
// please leave this for later debug purpose : Yong Jun.
|
|
181
|
-
/* console.log('page change reported', {
|
|
182
|
-
currentPage: currentPage,
|
|
183
|
-
pageNumber: pageNumber,
|
|
184
|
-
pathname: pathname,
|
|
185
|
-
path: path,
|
|
186
|
-
newPath: newPath,
|
|
187
|
-
firstPage: pageNumber === 1,
|
|
188
|
-
queryString: queryString
|
|
181
|
+
/* console.log('page change reported', {
|
|
182
|
+
currentPage: currentPage,
|
|
183
|
+
pageNumber: pageNumber,
|
|
184
|
+
pathname: pathname,
|
|
185
|
+
path: path,
|
|
186
|
+
newPath: newPath,
|
|
187
|
+
firstPage: pageNumber === 1,
|
|
188
|
+
queryString: queryString
|
|
189
189
|
}) */
|
|
190
190
|
|
|
191
191
|
if (pageview) {
|
|
@@ -348,7 +348,7 @@ var DeckContent = function (_React$Component) {
|
|
|
348
348
|
)
|
|
349
349
|
)
|
|
350
350
|
),
|
|
351
|
-
|
|
351
|
+
main_39 && _this.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
352
352
|
);
|
|
353
353
|
}
|
|
354
354
|
})
|
package/dist/esm/DeckQueue.js
CHANGED
|
@@ -13,22 +13,22 @@ import './web.dom.iterable-46c95e52.js';
|
|
|
13
13
|
import './typeof-5f046efd.js';
|
|
14
14
|
import './_is-array-dd5523d6.js';
|
|
15
15
|
import React__default from 'react';
|
|
16
|
-
import { l as lib_3 } from './index-
|
|
16
|
+
import { l as lib_3 } from './index-93ec3c59.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-12415288.js';
|
|
23
23
|
import { withRouter } from 'next/router';
|
|
24
24
|
import './isSymbol-c1b9be80.js';
|
|
25
25
|
import { d as debounce_1 } from './debounce-8cd9e09c.js';
|
|
26
|
-
import { I as InfiniteScroll } from './index.es-
|
|
26
|
+
import { I as InfiniteScroll } from './index.es-938a3a58.js';
|
|
27
27
|
import 'react-dom';
|
|
28
28
|
import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
|
|
29
29
|
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
30
30
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
31
|
-
import { m as
|
|
31
|
+
import { m as main_39 } from './main-7255814e.js';
|
|
32
32
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
33
33
|
import './_arrayMap-a8dd2b2c.js';
|
|
34
34
|
import { g as get_1 } from './get-ae817b75.js';
|
|
@@ -300,7 +300,7 @@ var DeckQueue = function (_React$Component) {
|
|
|
300
300
|
)
|
|
301
301
|
)
|
|
302
302
|
),
|
|
303
|
-
|
|
303
|
+
main_39 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
304
304
|
);
|
|
305
305
|
})
|
|
306
306
|
);
|
|
@@ -3,7 +3,7 @@ import './_to-object-16fd8b46.js';
|
|
|
3
3
|
import './core.get-iterator-method-f5c0d66a.js';
|
|
4
4
|
import './web.dom.iterable-46c95e52.js';
|
|
5
5
|
import React__default, { useState } from 'react';
|
|
6
|
-
import { b as lib_1, a as lib_2 } from './index-
|
|
6
|
+
import { b as lib_1, a as lib_2 } from './index-93ec3c59.js';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import './isSymbol-c1b9be80.js';
|
|
9
9
|
import { d as debounce_1 } from './debounce-8cd9e09c.js';
|
package/dist/esm/EventsDeck.js
CHANGED
|
@@ -10,9 +10,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 { m as moment } from './moment-
|
|
14
|
-
import { I as InfiniteScroll } from './index.es-
|
|
15
|
-
import { m as
|
|
13
|
+
import { m as moment } from './moment-12415288.js';
|
|
14
|
+
import { I as InfiniteScroll } from './index.es-938a3a58.js';
|
|
15
|
+
import { m as main_39 } from './main-7255814e.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';
|
|
@@ -1707,23 +1707,23 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
1707
1707
|
if (cventAccessToken && cventAccessToken !== 'undefined') {
|
|
1708
1708
|
setAccessToken(cventAccessToken);
|
|
1709
1709
|
} else {
|
|
1710
|
-
/*const encodedData = window.btoa(clientId + ':' + clientSecret)
|
|
1711
|
-
//const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
|
|
1712
|
-
const url = `https://api-platform.cvent.com/ea/oauth2/token`
|
|
1713
|
-
fetch(url, {
|
|
1714
|
-
headers: {
|
|
1715
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1716
|
-
Authorization: `Basic ${encodedData}`
|
|
1717
|
-
},
|
|
1718
|
-
method: 'POST',
|
|
1719
|
-
body: `grant_type=client_credentials&client_id=${clientId}`
|
|
1720
|
-
})
|
|
1721
|
-
.then((response) => response.json())
|
|
1722
|
-
.then((json) => {
|
|
1723
|
-
const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
|
|
1724
|
-
Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
|
|
1725
|
-
setAccessToken(json.access_token)
|
|
1726
|
-
})
|
|
1710
|
+
/*const encodedData = window.btoa(clientId + ':' + clientSecret)
|
|
1711
|
+
//const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
|
|
1712
|
+
const url = `https://api-platform.cvent.com/ea/oauth2/token`
|
|
1713
|
+
fetch(url, {
|
|
1714
|
+
headers: {
|
|
1715
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1716
|
+
Authorization: `Basic ${encodedData}`
|
|
1717
|
+
},
|
|
1718
|
+
method: 'POST',
|
|
1719
|
+
body: `grant_type=client_credentials&client_id=${clientId}`
|
|
1720
|
+
})
|
|
1721
|
+
.then((response) => response.json())
|
|
1722
|
+
.then((json) => {
|
|
1723
|
+
const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
|
|
1724
|
+
Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
|
|
1725
|
+
setAccessToken(json.access_token)
|
|
1726
|
+
})
|
|
1727
1727
|
.catch((e) => console.log(e))*/
|
|
1728
1728
|
// hello
|
|
1729
1729
|
var url = 'https://beam.mjhlifesciences.com/api/cvent/token';
|
|
@@ -1919,7 +1919,7 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
1919
1919
|
)
|
|
1920
1920
|
)
|
|
1921
1921
|
),
|
|
1922
|
-
|
|
1922
|
+
main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
|
|
1923
1923
|
'div',
|
|
1924
1924
|
{ style: { margin: '0 auto' } },
|
|
1925
1925
|
renderMobileAd(index, numberOfItemsBeforeAd)
|
package/dist/esm/Feature.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
4
|
-
import { m as
|
|
4
|
+
import { m as main_39 } from './main-7255814e.js';
|
|
5
5
|
import Carousel from 'react-bootstrap/Carousel';
|
|
6
6
|
|
|
7
7
|
//Feature query to be used
|
|
@@ -34,7 +34,7 @@ var Feature = function Feature(props) {
|
|
|
34
34
|
};
|
|
35
35
|
//image width
|
|
36
36
|
var imageWidth = 900;
|
|
37
|
-
if (
|
|
37
|
+
if (main_39) {
|
|
38
38
|
imageWidth = 450;
|
|
39
39
|
}
|
|
40
40
|
|
package/dist/esm/ForbesHero.js
CHANGED
|
@@ -4,7 +4,7 @@ import './core.get-iterator-method-f5c0d66a.js';
|
|
|
4
4
|
import './web.dom.iterable-46c95e52.js';
|
|
5
5
|
import React__default from 'react';
|
|
6
6
|
import 'prop-types';
|
|
7
|
-
import { m as moment } from './moment-
|
|
7
|
+
import { m as moment } from './moment-12415288.js';
|
|
8
8
|
import 'react-dom';
|
|
9
9
|
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
10
10
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
package/dist/esm/GridContent.js
CHANGED
|
@@ -13,22 +13,22 @@ import './web.dom.iterable-46c95e52.js';
|
|
|
13
13
|
import './typeof-5f046efd.js';
|
|
14
14
|
import './_is-array-dd5523d6.js';
|
|
15
15
|
import React__default from 'react';
|
|
16
|
-
import { l as lib_3 } from './index-
|
|
16
|
+
import { l as lib_3 } from './index-93ec3c59.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-12415288.js';
|
|
23
23
|
import { withRouter } from 'next/router';
|
|
24
24
|
import './isSymbol-c1b9be80.js';
|
|
25
25
|
import { d as debounce_1 } from './debounce-8cd9e09c.js';
|
|
26
|
-
import { I as InfiniteScroll } from './index.es-
|
|
26
|
+
import { I as InfiniteScroll } from './index.es-938a3a58.js';
|
|
27
27
|
import 'react-dom';
|
|
28
28
|
import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
|
|
29
29
|
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
30
30
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
31
|
-
import { m as
|
|
31
|
+
import { m as main_39 } from './main-7255814e.js';
|
|
32
32
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
33
33
|
import './slicedToArray-f1e40361.js';
|
|
34
34
|
import './stringify-e30bc114.js';
|
|
@@ -37,9 +37,9 @@ import './_set-species-6f64f1c1.js';
|
|
|
37
37
|
import './Beam.js';
|
|
38
38
|
import './Segment.js';
|
|
39
39
|
import './AdSlot.js';
|
|
40
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
40
|
+
import { A as ADInfeed } from './ADInfeed-dbd65900.js';
|
|
41
41
|
import { l as lodash } from './lodash-17fdfebb.js';
|
|
42
|
-
import { A as ADlgInfeed } from './ADlgInfeed-
|
|
42
|
+
import { A as ADlgInfeed } from './ADlgInfeed-a385f968.js';
|
|
43
43
|
import './_arrayMap-a8dd2b2c.js';
|
|
44
44
|
import { g as get_1 } from './get-ae817b75.js';
|
|
45
45
|
import './AD.js';
|
|
@@ -508,7 +508,7 @@ var GridContent = function (_React$Component) {
|
|
|
508
508
|
)
|
|
509
509
|
),
|
|
510
510
|
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React__default.createElement(VideoPlayer, null),
|
|
511
|
-
|
|
511
|
+
main_39 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
512
512
|
);
|
|
513
513
|
} else {
|
|
514
514
|
return React__default.createElement(
|
|
@@ -572,7 +572,7 @@ var GridContent = function (_React$Component) {
|
|
|
572
572
|
)
|
|
573
573
|
),
|
|
574
574
|
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React__default.createElement(VideoPlayer, null),
|
|
575
|
-
|
|
575
|
+
main_39 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
576
576
|
);
|
|
577
577
|
}
|
|
578
578
|
} else if (row._type === 'lg-infeed' && row.adUnit) {
|
|
@@ -589,7 +589,7 @@ var GridContent = function (_React$Component) {
|
|
|
589
589
|
{
|
|
590
590
|
onChange: function onChange(isVisible) {
|
|
591
591
|
// Passing 'articleCount' instead of index because index will be including the indexes of ads whereas articleCount will be having index of article only.
|
|
592
|
-
isVisible && _this2.changePageNumber(pageNumber, itemsPerPage, row.articleCount);
|
|
592
|
+
isVisible && _this2.changePageNumber(pageNumber, itemsPerPage, row.articleCount ? row.articleCount : index);
|
|
593
593
|
} },
|
|
594
594
|
React__default.createElement(
|
|
595
595
|
'div',
|
|
@@ -642,7 +642,7 @@ var GridContent = function (_React$Component) {
|
|
|
642
642
|
)
|
|
643
643
|
),
|
|
644
644
|
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React__default.createElement(VideoPlayer, null),
|
|
645
|
-
|
|
645
|
+
main_39 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
646
646
|
);
|
|
647
647
|
} else return null;
|
|
648
648
|
}) : React__default.createElement(
|
package/dist/esm/GridHero.js
CHANGED
|
@@ -4,7 +4,7 @@ import './core.get-iterator-method-f5c0d66a.js';
|
|
|
4
4
|
import './web.dom.iterable-46c95e52.js';
|
|
5
5
|
import React__default from 'react';
|
|
6
6
|
import 'prop-types';
|
|
7
|
-
import { m as moment } from './moment-
|
|
7
|
+
import { m as moment } from './moment-12415288.js';
|
|
8
8
|
import 'react-dom';
|
|
9
9
|
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
10
10
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
package/dist/esm/GroupDeck.js
CHANGED
|
@@ -11,10 +11,10 @@ import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
|
11
11
|
import { _ as _slicedToArray } from './slicedToArray-f1e40361.js';
|
|
12
12
|
import { s as smoothscroll, g as getYoutubeId } from './smoothscroll-4b699764.js';
|
|
13
13
|
|
|
14
|
-
/*
|
|
15
|
-
GROQ query -
|
|
16
|
-
accepts an array of title, URL
|
|
17
|
-
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
14
|
+
/*
|
|
15
|
+
GROQ query -
|
|
16
|
+
accepts an array of title, URL
|
|
17
|
+
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
20
|
var GroupDeck = function GroupDeck(props) {
|
package/dist/esm/HamMagazine.js
CHANGED
|
@@ -5,7 +5,7 @@ import './web.dom.iterable-46c95e52.js';
|
|
|
5
5
|
import React__default, { useRef, useState, useEffect } from 'react';
|
|
6
6
|
import 'prop-types';
|
|
7
7
|
import Container from 'react-bootstrap/Container';
|
|
8
|
-
import { m as
|
|
8
|
+
import { m as main_39 } from './main-7255814e.js';
|
|
9
9
|
import { _ as _slicedToArray } from './slicedToArray-f1e40361.js';
|
|
10
10
|
import './react-social-icons-a7d5c5c7.js';
|
|
11
11
|
import './iconBase-6ee2f2fb.js';
|
|
@@ -22,15 +22,15 @@ import { N as NavFooter } from './NavFooter-e27bd93b.js';
|
|
|
22
22
|
import { S as SocialNavFooter } from './SocialNavFooter-4fb16720.js';
|
|
23
23
|
|
|
24
24
|
var HamMagazine = function HamMagazine(props) {
|
|
25
|
-
/*
|
|
26
|
-
Example Nav with acceptable props
|
|
27
|
-
<MagazineNav
|
|
28
|
-
showLogin
|
|
29
|
-
logo={props.settings.logo}
|
|
30
|
-
dataObject={props.cache.mainNavCache}
|
|
31
|
-
website={website}
|
|
32
|
-
subNav={props.cache.subNavCache}
|
|
33
|
-
/>
|
|
25
|
+
/*
|
|
26
|
+
Example Nav with acceptable props
|
|
27
|
+
<MagazineNav
|
|
28
|
+
showLogin
|
|
29
|
+
logo={props.settings.logo}
|
|
30
|
+
dataObject={props.cache.mainNavCache}
|
|
31
|
+
website={website}
|
|
32
|
+
subNav={props.cache.subNavCache}
|
|
33
|
+
/>
|
|
34
34
|
*/
|
|
35
35
|
|
|
36
36
|
var logo = props.logo,
|
|
@@ -182,7 +182,7 @@ var HamMagazine = function HamMagazine(props) {
|
|
|
182
182
|
|
|
183
183
|
return React__default.createElement(
|
|
184
184
|
'header',
|
|
185
|
-
{ className: !
|
|
185
|
+
{ className: !main_39 && isOpen ? 'nav-open' : 'nav-close', style: { zIndex: '99999' } },
|
|
186
186
|
React__default.createElement(
|
|
187
187
|
Navbar,
|
|
188
188
|
{ expand: 'md', ref: topNavRef },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import './moment-
|
|
3
|
+
import './moment-12415288.js';
|
|
4
4
|
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
5
5
|
import './iconBase-6ee2f2fb.js';
|
|
6
6
|
import { a as FaLongArrowAltRight } from './index.esm-a7ad65ba.js';
|
|
@@ -7,7 +7,7 @@ import 'prop-types';
|
|
|
7
7
|
import Row from 'react-bootstrap/Row';
|
|
8
8
|
import Col from 'react-bootstrap/Col';
|
|
9
9
|
import Card from 'react-bootstrap/Card';
|
|
10
|
-
import { m as moment } from './moment-
|
|
10
|
+
import { m as moment } from './moment-12415288.js';
|
|
11
11
|
import 'react-dom';
|
|
12
12
|
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
13
13
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
package/dist/esm/IssueDeck.js
CHANGED
|
@@ -12,7 +12,7 @@ import 'prop-types';
|
|
|
12
12
|
import Row from 'react-bootstrap/Row';
|
|
13
13
|
import Col from 'react-bootstrap/Col';
|
|
14
14
|
import Card from 'react-bootstrap/Card';
|
|
15
|
-
import { I as InfiniteScroll } from './index.es-
|
|
15
|
+
import { I as InfiniteScroll } from './index.es-938a3a58.js';
|
|
16
16
|
import 'react-dom';
|
|
17
17
|
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
18
18
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
package/dist/esm/IssueLanding.js
CHANGED
|
@@ -9,19 +9,19 @@ import './_object-pie-33c40e79.js';
|
|
|
9
9
|
import './extends-6e00b262.js';
|
|
10
10
|
import './web.dom.iterable-46c95e52.js';
|
|
11
11
|
import React__default from 'react';
|
|
12
|
-
import './index-
|
|
12
|
+
import './index-93ec3c59.js';
|
|
13
13
|
import 'prop-types';
|
|
14
14
|
import 'react-bootstrap/Card';
|
|
15
|
-
import './moment-
|
|
15
|
+
import './moment-12415288.js';
|
|
16
16
|
import 'next/router';
|
|
17
17
|
import './isSymbol-c1b9be80.js';
|
|
18
18
|
import './debounce-8cd9e09c.js';
|
|
19
|
-
import './index.es-
|
|
19
|
+
import './index.es-938a3a58.js';
|
|
20
20
|
import 'react-dom';
|
|
21
21
|
import './visibility-sensor-0baa4eea.js';
|
|
22
22
|
import './index-51a80699.js';
|
|
23
23
|
import './index-5f9f807a.js';
|
|
24
|
-
import './main-
|
|
24
|
+
import './main-7255814e.js';
|
|
25
25
|
import './entities-7cc3bf45.js';
|
|
26
26
|
import './slicedToArray-f1e40361.js';
|
|
27
27
|
import './stringify-e30bc114.js';
|
|
@@ -30,44 +30,44 @@ import './_set-species-6f64f1c1.js';
|
|
|
30
30
|
import './Beam.js';
|
|
31
31
|
import './Segment.js';
|
|
32
32
|
import './AdSlot.js';
|
|
33
|
-
import './ADInfeed-
|
|
33
|
+
import './ADInfeed-dbd65900.js';
|
|
34
34
|
import './lodash-17fdfebb.js';
|
|
35
|
-
import './ADlgInfeed-
|
|
35
|
+
import './ADlgInfeed-a385f968.js';
|
|
36
36
|
import './AuthorComponent-158226c9.js';
|
|
37
37
|
import 'react-bootstrap';
|
|
38
38
|
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
39
39
|
import 'react-bootstrap/Breadcrumb';
|
|
40
40
|
import Breadcrumbs from './Breadcrumbs.js';
|
|
41
41
|
|
|
42
|
-
/* usage
|
|
43
|
-
import Settings, { Ads } from '../../../../settings'
|
|
44
|
-
import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
|
|
45
|
-
import client from '../../../../client'
|
|
46
|
-
import moment from 'moment'
|
|
47
|
-
import Shell from '../../../../components/2.0/Shell'
|
|
48
|
-
import { pageview } from '../../../../utilities/gtag'
|
|
49
|
-
|
|
50
|
-
const Issue = (props) => {
|
|
51
|
-
const { pubIssue, cache } = props
|
|
52
|
-
const targeting = {
|
|
53
|
-
content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
54
|
-
document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
55
|
-
}
|
|
56
|
-
return (
|
|
57
|
-
<Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
|
|
58
|
-
<IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
|
|
59
|
-
</Shell>
|
|
60
|
-
)
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
Issue.getInitialProps = async (ctx) => {
|
|
64
|
-
const { query } = ctx
|
|
65
|
-
const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
|
|
66
|
-
)
|
|
67
|
-
return { pubIssue }
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export default Issue
|
|
42
|
+
/* usage
|
|
43
|
+
import Settings, { Ads } from '../../../../settings'
|
|
44
|
+
import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
|
|
45
|
+
import client from '../../../../client'
|
|
46
|
+
import moment from 'moment'
|
|
47
|
+
import Shell from '../../../../components/2.0/Shell'
|
|
48
|
+
import { pageview } from '../../../../utilities/gtag'
|
|
49
|
+
|
|
50
|
+
const Issue = (props) => {
|
|
51
|
+
const { pubIssue, cache } = props
|
|
52
|
+
const targeting = {
|
|
53
|
+
content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
54
|
+
document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
55
|
+
}
|
|
56
|
+
return (
|
|
57
|
+
<Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
|
|
58
|
+
<IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
|
|
59
|
+
</Shell>
|
|
60
|
+
)
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
Issue.getInitialProps = async (ctx) => {
|
|
64
|
+
const { query } = ctx
|
|
65
|
+
const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
|
|
66
|
+
)
|
|
67
|
+
return { pubIssue }
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export default Issue
|
|
71
71
|
*/
|
|
72
72
|
|
|
73
73
|
var IssueLanding = function IssueLanding(props) {
|
package/dist/esm/KMTracker.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
var KMTracker = function KMTracker(props) {
|
|
2
|
-
|
|
2
|
+
var id = props.id;
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
if (document && id) {
|
|
5
5
|
(function () {
|
|
6
|
-
|
|
6
|
+
var ecnJquery = document.createElement('script');
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
ecnJquery.type = 'text/javascript';
|
|
9
|
+
ecnJquery.async = true;
|
|
10
|
+
ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
var ecnScript = document.createElement('script');
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
ecnScript.type = 'text/javascript';
|
|
15
|
+
ecnScript.async = true;
|
|
16
|
+
ecnScript.id = 'km-tracker';
|
|
17
|
+
ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
document.head.appendChild(ecnJquery);
|
|
20
|
+
document.head.appendChild(ecnScript);
|
|
21
|
+
})();
|
|
22
|
+
}
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
export default KMTracker;
|
package/dist/esm/LeftNav.js
CHANGED
|
@@ -5,11 +5,11 @@ import './_library-528f1934.js';
|
|
|
5
5
|
import './_iter-detect-6e099a34.js';
|
|
6
6
|
import './web.dom.iterable-46c95e52.js';
|
|
7
7
|
import React__default from 'react';
|
|
8
|
-
import './index-
|
|
8
|
+
import './index-93ec3c59.js';
|
|
9
9
|
import 'prop-types';
|
|
10
10
|
import './isSymbol-c1b9be80.js';
|
|
11
11
|
import './debounce-8cd9e09c.js';
|
|
12
|
-
import './main-
|
|
12
|
+
import './main-7255814e.js';
|
|
13
13
|
import './slicedToArray-f1e40361.js';
|
|
14
14
|
import './stringify-e30bc114.js';
|
|
15
15
|
import './asyncToGenerator-0379e924.js';
|