@mjhls/mjh-framework 1.0.464 → 1.0.466

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.
Files changed (124) hide show
  1. package/README.md +171 -171
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +3 -3
  4. package/dist/cjs/AD300x250x600.js +3 -3
  5. package/dist/cjs/AD728x90.js +3 -3
  6. package/dist/cjs/ADFloatingFooter.js +2 -2
  7. package/dist/cjs/ADGutter.js +2 -2
  8. package/dist/cjs/ADSponsoredResources.js +2 -2
  9. package/dist/cjs/ADWebcast.js +2 -2
  10. package/dist/cjs/ADWelcome.js +2 -2
  11. package/dist/cjs/AdSlot.js +2 -2
  12. package/dist/cjs/AdSlotsProvider.js +1 -1
  13. package/dist/cjs/ArticleQueue.js +7 -7
  14. package/dist/cjs/Auth.js +301 -250
  15. package/dist/cjs/CMEDeck.js +5 -5
  16. package/dist/cjs/Column3.js +4 -4
  17. package/dist/cjs/ConferenceArticleCard.js +16 -16
  18. package/dist/cjs/DeckContent.js +14 -14
  19. package/dist/cjs/DeckQueue.js +5 -5
  20. package/dist/cjs/{Dfp-fcdeabc4.js → Dfp-fbe32b96.js} +1 -1
  21. package/dist/cjs/EventsDeck.js +21 -21
  22. package/dist/cjs/Feature.js +2 -2
  23. package/dist/cjs/ForbesHero.js +1 -1
  24. package/dist/cjs/GridContent.js +10 -10
  25. package/dist/cjs/GridHero.js +1 -1
  26. package/dist/cjs/GroupDeck.js +4 -4
  27. package/dist/cjs/HamMagazine.js +11 -11
  28. package/dist/cjs/HorizontalHero.js +1 -1
  29. package/dist/cjs/IssueContentDeck.js +1 -1
  30. package/dist/cjs/IssueDeck.js +1 -1
  31. package/dist/cjs/IssueLanding.js +35 -35
  32. package/dist/cjs/KMTracker.js +15 -15
  33. package/dist/cjs/LeftNav.js +2 -2
  34. package/dist/cjs/MasterDeck.js +15 -15
  35. package/dist/cjs/NavMagazine.js +12 -12
  36. package/dist/cjs/NavNative.js +11 -11
  37. package/dist/cjs/OncliveHero.js +1 -1
  38. package/dist/cjs/OncliveLargeHero.js +1 -1
  39. package/dist/cjs/PublicationLanding.js +33 -33
  40. package/dist/cjs/QueueDeckExpanded.js +14 -8
  41. package/dist/cjs/RelatedContent.js +29 -29
  42. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  43. package/dist/cjs/SideFooter.js +2 -2
  44. package/dist/cjs/TemplateNormal.js +2 -2
  45. package/dist/cjs/VerticalHero.js +1 -1
  46. package/dist/cjs/VideoSeriesFilter.js +1 -1
  47. package/dist/cjs/VideoSeriesListing.js +3 -3
  48. package/dist/cjs/View.js +13 -13
  49. package/dist/cjs/YahooHero.js +1 -1
  50. package/dist/cjs/YoutubeGroup.js +4 -4
  51. package/dist/cjs/getQuery.js +1 -1
  52. package/dist/cjs/getSerializers.js +4 -4
  53. package/dist/cjs/{getTargeting-3ced038f.js → getTargeting-b15993cb.js} +16 -9
  54. package/dist/cjs/getTargeting.js +1 -1
  55. package/dist/cjs/{index-fa3cec70.js → index-f7ee1612.js} +4 -6
  56. package/dist/cjs/{index.es-9110add6.js → index.es-ab3f2690.js} +3 -1
  57. package/dist/cjs/index.js +7 -7
  58. package/dist/cjs/{main-00905561.js → main-bc4db521.js} +61 -30
  59. package/dist/cjs/{moment-3cf060f6.js → moment-66a6a284.js} +5 -5
  60. package/dist/cjs/urlFor.js +1 -1
  61. package/dist/esm/AD.js +1 -1
  62. package/dist/esm/AD300x250.js +3 -3
  63. package/dist/esm/AD300x250x600.js +3 -3
  64. package/dist/esm/AD728x90.js +3 -3
  65. package/dist/esm/ADFloatingFooter.js +2 -2
  66. package/dist/esm/ADGutter.js +2 -2
  67. package/dist/esm/ADSponsoredResources.js +2 -2
  68. package/dist/esm/ADWebcast.js +2 -2
  69. package/dist/esm/ADWelcome.js +2 -2
  70. package/dist/esm/AdSlot.js +2 -2
  71. package/dist/esm/AdSlotsProvider.js +1 -1
  72. package/dist/esm/ArticleQueue.js +7 -7
  73. package/dist/esm/Auth.js +301 -250
  74. package/dist/esm/CMEDeck.js +5 -5
  75. package/dist/esm/Column3.js +4 -4
  76. package/dist/esm/ConferenceArticleCard.js +16 -16
  77. package/dist/esm/DeckContent.js +14 -14
  78. package/dist/esm/DeckQueue.js +5 -5
  79. package/dist/esm/{Dfp-58cfc45a.js → Dfp-6d2b24a0.js} +1 -1
  80. package/dist/esm/EventsDeck.js +21 -21
  81. package/dist/esm/Feature.js +2 -2
  82. package/dist/esm/ForbesHero.js +1 -1
  83. package/dist/esm/GridContent.js +10 -10
  84. package/dist/esm/GridHero.js +1 -1
  85. package/dist/esm/GroupDeck.js +4 -4
  86. package/dist/esm/HamMagazine.js +11 -11
  87. package/dist/esm/HorizontalHero.js +1 -1
  88. package/dist/esm/IssueContentDeck.js +1 -1
  89. package/dist/esm/IssueDeck.js +1 -1
  90. package/dist/esm/IssueLanding.js +35 -35
  91. package/dist/esm/KMTracker.js +15 -15
  92. package/dist/esm/LeftNav.js +2 -2
  93. package/dist/esm/MasterDeck.js +15 -15
  94. package/dist/esm/NavMagazine.js +12 -12
  95. package/dist/esm/NavNative.js +11 -11
  96. package/dist/esm/OncliveHero.js +1 -1
  97. package/dist/esm/OncliveLargeHero.js +1 -1
  98. package/dist/esm/PublicationLanding.js +33 -33
  99. package/dist/esm/QueueDeckExpanded.js +14 -8
  100. package/dist/esm/RelatedContent.js +29 -29
  101. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  102. package/dist/esm/SideFooter.js +2 -2
  103. package/dist/esm/TemplateNormal.js +2 -2
  104. package/dist/esm/VerticalHero.js +1 -1
  105. package/dist/esm/VideoSeriesFilter.js +1 -1
  106. package/dist/esm/VideoSeriesListing.js +3 -3
  107. package/dist/esm/View.js +13 -13
  108. package/dist/esm/YahooHero.js +1 -1
  109. package/dist/esm/YoutubeGroup.js +4 -4
  110. package/dist/esm/getQuery.js +1 -1
  111. package/dist/esm/getSerializers.js +4 -4
  112. package/dist/esm/{getTargeting-8f4bd5db.js → getTargeting-1a0bd08d.js} +16 -9
  113. package/dist/esm/getTargeting.js +1 -1
  114. package/dist/esm/{index-3f4dd6f2.js → index-93ec3c59.js} +4 -6
  115. package/dist/esm/{index.es-29c1cef5.js → index.es-938a3a58.js} +3 -1
  116. package/dist/esm/index.js +7 -7
  117. package/dist/esm/{main-adf6ec37.js → main-7255814e.js} +60 -29
  118. package/dist/esm/{moment-49ae13fa.js → moment-12415288.js} +5 -5
  119. package/dist/esm/urlFor.js +1 -1
  120. package/package.json +105 -105
  121. /package/dist/cjs/{ADInfeed-4b904089.js → ADInfeed-8a7f1d50.js} +0 -0
  122. /package/dist/cjs/{ADlgInfeed-f540f438.js → ADlgInfeed-659b82b6.js} +0 -0
  123. /package/dist/esm/{ADInfeed-23148e88.js → ADInfeed-dbd65900.js} +0 -0
  124. /package/dist/esm/{ADlgInfeed-5460339b.js → ADlgInfeed-a385f968.js} +0 -0
@@ -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-3f4dd6f2.js';
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 main_36 } from './main-adf6ec37.js';
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 (!main_36 && window.innerWidth >= 768) {
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
- (!main_36 || showRightAd) && React__default.createElement(
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-49ae13fa.js';
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) {
@@ -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-3f4dd6f2.js';
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-49ae13fa.js';
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-29c1cef5.js';
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 main_36 } from './main-adf6ec37.js';
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-23148e88.js';
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
- main_36 && _this.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this.renderMobileAd(index, numberOfItemsBeforeAd)
351
+ main_39 && _this.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this.renderMobileAd(index, numberOfItemsBeforeAd)
352
352
  );
353
353
  }
354
354
  })
@@ -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-3f4dd6f2.js';
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-49ae13fa.js';
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-29c1cef5.js';
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 main_36 } from './main-adf6ec37.js';
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
- main_36 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
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-3f4dd6f2.js';
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';
@@ -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-49ae13fa.js';
14
- import { I as InfiniteScroll } from './index.es-29c1cef5.js';
15
- import { m as main_36 } from './main-adf6ec37.js';
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
- main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
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)
@@ -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 main_36 } from './main-adf6ec37.js';
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 (main_36) {
37
+ if (main_39) {
38
38
  imageWidth = 450;
39
39
  }
40
40
 
@@ -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-49ae13fa.js';
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';
@@ -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-3f4dd6f2.js';
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-49ae13fa.js';
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-29c1cef5.js';
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 main_36 } from './main-adf6ec37.js';
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-23148e88.js';
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-5460339b.js';
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
- main_36 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
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
- main_36 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
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
- main_36 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
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(
@@ -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-49ae13fa.js';
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';
@@ -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) {
@@ -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 main_36 } from './main-adf6ec37.js';
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: !main_36 && isOpen ? 'nav-open' : 'nav-close', style: { zIndex: '99999' } },
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-49ae13fa.js';
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-49ae13fa.js';
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';
@@ -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-29c1cef5.js';
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';
@@ -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-3f4dd6f2.js';
12
+ import './index-93ec3c59.js';
13
13
  import 'prop-types';
14
14
  import 'react-bootstrap/Card';
15
- import './moment-49ae13fa.js';
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-29c1cef5.js';
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-adf6ec37.js';
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-23148e88.js';
33
+ import './ADInfeed-dbd65900.js';
34
34
  import './lodash-17fdfebb.js';
35
- import './ADlgInfeed-5460339b.js';
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) {
@@ -1,25 +1,25 @@
1
1
  var KMTracker = function KMTracker(props) {
2
- var id = props.id;
2
+ var id = props.id;
3
3
 
4
- if (document && id) {
4
+ if (document && id) {
5
5
  (function () {
6
- var ecnJquery = document.createElement('script');
6
+ var ecnJquery = document.createElement('script');
7
7
 
8
- ecnJquery.type = 'text/javascript';
9
- ecnJquery.async = true;
10
- ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
8
+ ecnJquery.type = 'text/javascript';
9
+ ecnJquery.async = true;
10
+ ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
11
11
 
12
- var ecnScript = document.createElement('script');
12
+ var ecnScript = document.createElement('script');
13
13
 
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;
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
- document.head.appendChild(ecnJquery);
20
- document.head.appendChild(ecnScript);
21
- })();
22
- }
19
+ document.head.appendChild(ecnJquery);
20
+ document.head.appendChild(ecnScript);
21
+ })();
22
+ }
23
23
  };
24
24
 
25
25
  export default KMTracker;
@@ -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-3f4dd6f2.js';
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-adf6ec37.js';
12
+ import './main-7255814e.js';
13
13
  import './slicedToArray-f1e40361.js';
14
14
  import './stringify-e30bc114.js';
15
15
  import './asyncToGenerator-0379e924.js';