@mjhls/mjh-framework 1.0.729-isiscroll → 1.0.729

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 (112) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +1 -1
  4. package/dist/cjs/AD300x250x600.js +1 -1
  5. package/dist/cjs/AD728x90.js +1 -1
  6. package/dist/cjs/ADFloatingFooter.js +1 -1
  7. package/dist/cjs/ADGutter.js +1 -1
  8. package/dist/cjs/ADSkyscraper.js +1 -1
  9. package/dist/cjs/ADSponsoredResources.js +1 -1
  10. package/dist/cjs/ADWebcast.js +1 -1
  11. package/dist/cjs/ADWelcome.js +1 -1
  12. package/dist/cjs/AdSlot.js +1 -1
  13. package/dist/cjs/AdSlotsProvider.js +1 -1
  14. package/dist/cjs/ArticleProgramLandingPage.js +2 -2
  15. package/dist/cjs/ArticleSeriesLandingPage.js +3 -3
  16. package/dist/cjs/ArticleSeriesListing.js +1 -1
  17. package/dist/cjs/CMEDeck.js +1 -1
  18. package/dist/cjs/Column3.js +1 -1
  19. package/dist/cjs/ConferenceArticleCard.js +15 -15
  20. package/dist/cjs/DeckContent.js +10 -10
  21. package/dist/cjs/DeckQueue.js +1 -1
  22. package/dist/cjs/{Dfp-a863cf48.js → Dfp-80146e98.js} +1 -1
  23. package/dist/cjs/EventsDeck.js +18 -18
  24. package/dist/cjs/ExternalResources.js +3 -3
  25. package/dist/cjs/GridContent.js +3 -3
  26. package/dist/cjs/HamMagazine.js +9 -9
  27. package/dist/cjs/HorizontalArticleListing.js +2 -2
  28. package/dist/cjs/IssueLanding.js +32 -32
  29. package/dist/cjs/KMTracker.js +15 -15
  30. package/dist/cjs/LeftNav.js +1 -1
  31. package/dist/cjs/MasterDeck.js +11 -11
  32. package/dist/cjs/NavMagazine.js +10 -10
  33. package/dist/cjs/NavNative.js +9 -9
  34. package/dist/cjs/PartnerDetailListing.js +4 -4
  35. package/dist/cjs/PublicationLanding.js +33 -33
  36. package/dist/cjs/QueueDeckExpanded.js +3 -3
  37. package/dist/cjs/RelatedContent.js +28 -28
  38. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  39. package/dist/cjs/SideFooter.js +2 -2
  40. package/dist/cjs/TaxonomyDescription.js +2 -2
  41. package/dist/cjs/TemplateNormal.js +1 -1
  42. package/dist/cjs/VideoProgramLandingPage.js +2 -2
  43. package/dist/cjs/VideoSeriesCard.js +1 -1
  44. package/dist/cjs/VideoSeriesLandingPage.js +3 -3
  45. package/dist/cjs/VideoSeriesListing.js +1 -1
  46. package/dist/cjs/View.js +6 -75
  47. package/dist/cjs/YoutubeGroup.js +4 -4
  48. package/dist/cjs/getSerializers.js +2 -2
  49. package/dist/cjs/{getTargeting-963303c6.js → getTargeting-497b581d.js} +9 -9
  50. package/dist/cjs/getTargeting.js +1 -1
  51. package/dist/cjs/{index-5ad2b070.js → index-0e4427c8.js} +37 -18
  52. package/dist/cjs/{index-cb6ed1fc.js → index-4d74ffd6.js} +29 -29
  53. package/dist/cjs/{index-58d40052.js → index-5260126b.js} +1 -1
  54. package/dist/cjs/index.js +6 -6
  55. package/dist/esm/AD.js +1 -1
  56. package/dist/esm/AD300x250.js +1 -1
  57. package/dist/esm/AD300x250x600.js +1 -1
  58. package/dist/esm/AD728x90.js +1 -1
  59. package/dist/esm/ADFloatingFooter.js +1 -1
  60. package/dist/esm/ADGutter.js +1 -1
  61. package/dist/esm/ADSkyscraper.js +1 -1
  62. package/dist/esm/ADSponsoredResources.js +1 -1
  63. package/dist/esm/ADWebcast.js +1 -1
  64. package/dist/esm/ADWelcome.js +1 -1
  65. package/dist/esm/AdSlot.js +1 -1
  66. package/dist/esm/AdSlotsProvider.js +1 -1
  67. package/dist/esm/ArticleProgramLandingPage.js +2 -2
  68. package/dist/esm/ArticleSeriesLandingPage.js +3 -3
  69. package/dist/esm/ArticleSeriesListing.js +1 -1
  70. package/dist/esm/CMEDeck.js +1 -1
  71. package/dist/esm/Column3.js +1 -1
  72. package/dist/esm/ConferenceArticleCard.js +15 -15
  73. package/dist/esm/DeckContent.js +10 -10
  74. package/dist/esm/DeckQueue.js +1 -1
  75. package/dist/esm/{Dfp-5d779279.js → Dfp-8bfbd310.js} +1 -1
  76. package/dist/esm/EventsDeck.js +18 -18
  77. package/dist/esm/ExternalResources.js +3 -3
  78. package/dist/esm/GridContent.js +3 -3
  79. package/dist/esm/HamMagazine.js +9 -9
  80. package/dist/esm/HorizontalArticleListing.js +2 -2
  81. package/dist/esm/IssueLanding.js +32 -32
  82. package/dist/esm/KMTracker.js +15 -15
  83. package/dist/esm/LeftNav.js +1 -1
  84. package/dist/esm/MasterDeck.js +11 -11
  85. package/dist/esm/NavMagazine.js +10 -10
  86. package/dist/esm/NavNative.js +9 -9
  87. package/dist/esm/PartnerDetailListing.js +4 -4
  88. package/dist/esm/PublicationLanding.js +33 -33
  89. package/dist/esm/QueueDeckExpanded.js +3 -3
  90. package/dist/esm/RelatedContent.js +28 -28
  91. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  92. package/dist/esm/SideFooter.js +2 -2
  93. package/dist/esm/TaxonomyDescription.js +2 -2
  94. package/dist/esm/TemplateNormal.js +1 -1
  95. package/dist/esm/VideoProgramLandingPage.js +2 -2
  96. package/dist/esm/VideoSeriesCard.js +1 -1
  97. package/dist/esm/VideoSeriesLandingPage.js +3 -3
  98. package/dist/esm/VideoSeriesListing.js +1 -1
  99. package/dist/esm/View.js +6 -75
  100. package/dist/esm/YoutubeGroup.js +4 -4
  101. package/dist/esm/getSerializers.js +2 -2
  102. package/dist/esm/{getTargeting-85315091.js → getTargeting-2d402d66.js} +9 -9
  103. package/dist/esm/getTargeting.js +1 -1
  104. package/dist/esm/{index-669ff425.js → index-888f9253.js} +37 -18
  105. package/dist/esm/{index-750a7380.js → index-ccb770c7.js} +29 -29
  106. package/dist/esm/{index-6eef5e56.js → index-d6ad9248.js} +1 -1
  107. package/dist/esm/index.js +6 -6
  108. package/package.json +105 -105
  109. /package/dist/cjs/{ADInfeed-70ebf89f.js → ADInfeed-5fe7fd9d.js} +0 -0
  110. /package/dist/cjs/{ADlgInfeed-7b7f88d3.js → ADlgInfeed-a62d2f9b.js} +0 -0
  111. /package/dist/esm/{ADInfeed-4fe6b23b.js → ADInfeed-3a9eef39.js} +0 -0
  112. /package/dist/esm/{ADlgInfeed-a01132a5.js → ADlgInfeed-8d63ff91.js} +0 -0
@@ -2,7 +2,7 @@ import { _ as _toConsumableArray } from './toConsumableArray-fa2dcda7.js';
2
2
  import { _ as _extends } from './extends-31d65aba.js';
3
3
  import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-5906fbea.js';
4
4
  import React from 'react';
5
- import { l as lib_3 } from './index-669ff425.js';
5
+ import { l as lib_3 } from './index-888f9253.js';
6
6
  import Container from 'react-bootstrap/Container';
7
7
  import Row from 'react-bootstrap/Row';
8
8
  import Col from 'react-bootstrap/Col';
@@ -16,7 +16,7 @@ import { i as imageUrlBuilder } from './index-3f5c03b2.js';
16
16
  import { L as LazyLoad } from './index-752d1dae.js';
17
17
  import { m as main_40 } from './main-1450d277.js';
18
18
  import { c as clean_html_1 } from './entities-932b50cf.js';
19
- import { A as ADInfeed } from './ADInfeed-4fe6b23b.js';
19
+ import { A as ADInfeed } from './ADInfeed-3a9eef39.js';
20
20
  import './_commonjsHelpers-0c4b6f40.js';
21
21
  import './es6.string.iterator-aa6068a3.js';
22
22
  import './_to-object-97770c52.js';
@@ -179,14 +179,14 @@ var DeckContent = function (_React$Component) {
179
179
  var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
180
180
 
181
181
  // please leave this for later debug purpose : Yong Jun.
182
- /* console.log('page change reported', {
183
- currentPage: currentPage,
184
- pageNumber: pageNumber,
185
- pathname: pathname,
186
- path: path,
187
- newPath: newPath,
188
- firstPage: pageNumber === 1,
189
- queryString: queryString
182
+ /* console.log('page change reported', {
183
+ currentPage: currentPage,
184
+ pageNumber: pageNumber,
185
+ pathname: pathname,
186
+ path: path,
187
+ newPath: newPath,
188
+ firstPage: pageNumber === 1,
189
+ queryString: queryString
190
190
  }) */
191
191
 
192
192
  if (pageview) {
@@ -2,7 +2,7 @@ import { _ as _toConsumableArray } from './toConsumableArray-fa2dcda7.js';
2
2
  import { _ as _extends } from './extends-31d65aba.js';
3
3
  import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-5906fbea.js';
4
4
  import React from 'react';
5
- import { l as lib_3 } from './index-669ff425.js';
5
+ import { l as lib_3 } from './index-888f9253.js';
6
6
  import Container from 'react-bootstrap/Container';
7
7
  import Row from 'react-bootstrap/Row';
8
8
  import Col from 'react-bootstrap/Col';
@@ -1,7 +1,7 @@
1
1
  import { _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
2
2
  import React, { useState } from 'react';
3
3
  import PropTypes from 'prop-types';
4
- import { b as lib_1, a as lib_2 } from './index-669ff425.js';
4
+ import { b as lib_1, a as lib_2 } from './index-888f9253.js';
5
5
  import { V as VisibilitySensor } from './visibility-sensor-082c757b.js';
6
6
  import { d as debounce_1 } from './debounce-1a993acf.js';
7
7
  import './_commonjsHelpers-0c4b6f40.js';
@@ -16,7 +16,7 @@ import Card from 'react-bootstrap/Card';
16
16
  import Form from 'react-bootstrap/Form';
17
17
  import Button from 'react-bootstrap/Button';
18
18
  import './main-1450d277.js';
19
- import { m as momentTimezone } from './index-750a7380.js';
19
+ import { m as momentTimezone } from './index-ccb770c7.js';
20
20
  import { j as js_cookie } from './js.cookie-6874175c.js';
21
21
  import { useRouter } from 'next/router';
22
22
  import './define-property-ec6d528d.js';
@@ -245,23 +245,23 @@ var EventsDeck = function EventsDeck(_ref) {
245
245
  if (cventAccessToken && cventAccessToken !== 'undefined') {
246
246
  setAccessToken(cventAccessToken);
247
247
  } else {
248
- /*const encodedData = window.btoa(clientId + ':' + clientSecret)
249
- //const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
250
- const url = `https://api-platform.cvent.com/ea/oauth2/token`
251
- fetch(url, {
252
- headers: {
253
- 'Content-Type': 'application/x-www-form-urlencoded',
254
- Authorization: `Basic ${encodedData}`
255
- },
256
- method: 'POST',
257
- body: `grant_type=client_credentials&client_id=${clientId}`
258
- })
259
- .then((response) => response.json())
260
- .then((json) => {
261
- const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
262
- Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
263
- setAccessToken(json.access_token)
264
- })
248
+ /*const encodedData = window.btoa(clientId + ':' + clientSecret)
249
+ //const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
250
+ const url = `https://api-platform.cvent.com/ea/oauth2/token`
251
+ fetch(url, {
252
+ headers: {
253
+ 'Content-Type': 'application/x-www-form-urlencoded',
254
+ Authorization: `Basic ${encodedData}`
255
+ },
256
+ method: 'POST',
257
+ body: `grant_type=client_credentials&client_id=${clientId}`
258
+ })
259
+ .then((response) => response.json())
260
+ .then((json) => {
261
+ const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
262
+ Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
263
+ setAccessToken(json.access_token)
264
+ })
265
265
  .catch((e) => console.log(e))*/
266
266
  // hello
267
267
  var url = 'https://beam.mjhlifesciences.com/api/cvent/token';
@@ -2,8 +2,8 @@ import { _ as _extends } from './extends-31d65aba.js';
2
2
  import { _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
3
3
  import React, { useState, useEffect } from 'react';
4
4
  import { B as BlockContent } from './BlockContent-d8cd739c.js';
5
- import { g as getSerializers } from './index-6eef5e56.js';
6
- import { m as momentTimezone } from './index-750a7380.js';
5
+ import { g as getSerializers } from './index-d6ad9248.js';
6
+ import { m as momentTimezone } from './index-ccb770c7.js';
7
7
  import { useRouter } from 'next/router';
8
8
  import Button from 'react-bootstrap/Button';
9
9
  import './_commonjsHelpers-0c4b6f40.js';
@@ -15,7 +15,7 @@ import './core.get-iterator-method-d1d5ed02.js';
15
15
  import 'prop-types';
16
16
  import './index-3f5c03b2.js';
17
17
  import 'react-bootstrap';
18
- import './index-669ff425.js';
18
+ import './index-888f9253.js';
19
19
  import './index-c7e2ac95.js';
20
20
  import './util-3ab476bf.js';
21
21
  import './Beam.js';
@@ -2,7 +2,7 @@ import { _ as _toConsumableArray } from './toConsumableArray-fa2dcda7.js';
2
2
  import { _ as _extends } from './extends-31d65aba.js';
3
3
  import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-5906fbea.js';
4
4
  import React from 'react';
5
- import { l as lib_3 } from './index-669ff425.js';
5
+ import { l as lib_3 } from './index-888f9253.js';
6
6
  import Container from 'react-bootstrap/Container';
7
7
  import Row from 'react-bootstrap/Row';
8
8
  import Col from 'react-bootstrap/Col';
@@ -12,9 +12,9 @@ import { m as moment } from './moment-bc12cb97.js';
12
12
  import { withRouter } from 'next/router';
13
13
  import { L as LazyLoad } from './index-752d1dae.js';
14
14
  import { c as clean_html_1 } from './entities-932b50cf.js';
15
- import { A as ADInfeed } from './ADInfeed-4fe6b23b.js';
15
+ import { A as ADInfeed } from './ADInfeed-3a9eef39.js';
16
16
  import { l as lodash } from './lodash-ad27652f.js';
17
- import { A as ADlgInfeed } from './ADlgInfeed-a01132a5.js';
17
+ import { A as ADlgInfeed } from './ADlgInfeed-8d63ff91.js';
18
18
  import { g as getContentCategory } from './getContentCategory-15dcc413.js';
19
19
  import { g as get_1 } from './get-5ee14cda.js';
20
20
  import { d as debounce_1 } from './debounce-1a993acf.js';
@@ -29,15 +29,15 @@ import './_set-species-494ed292.js';
29
29
  import './_iter-detect-48516cd3.js';
30
30
 
31
31
  var HamMagazine = function HamMagazine(props) {
32
- /*
33
- Example Nav with acceptable props
34
- <MagazineNav
35
- showLogin
36
- logo={props.settings.logo}
37
- dataObject={props.cache.mainNavCache}
38
- website={website}
39
- subNav={props.cache.subNavCache}
40
- />
32
+ /*
33
+ Example Nav with acceptable props
34
+ <MagazineNav
35
+ showLogin
36
+ logo={props.settings.logo}
37
+ dataObject={props.cache.mainNavCache}
38
+ website={website}
39
+ subNav={props.cache.subNavCache}
40
+ />
41
41
  */
42
42
 
43
43
  // Setting 'socialIconVariant' as 'light' as default to make the social icons and search icon black
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import ArticleCarousel from './ArticleCarousel.js';
4
4
  import { I as IoIosArrowForward } from './index.esm-3fdda599.js';
5
5
  import { B as BlockContent } from './BlockContent-d8cd739c.js';
6
- import { g as getSerializers } from './index-6eef5e56.js';
6
+ import { g as getSerializers } from './index-d6ad9248.js';
7
7
  import './_commonjsHelpers-0c4b6f40.js';
8
8
  import './_to-object-97770c52.js';
9
9
  import './_object-pie-33c40e79.js';
@@ -24,7 +24,7 @@ import './index-3f5c03b2.js';
24
24
  import './main-1450d277.js';
25
25
  import './iconBase-602d52fe.js';
26
26
  import 'react-bootstrap';
27
- import './index-669ff425.js';
27
+ import './index-888f9253.js';
28
28
  import 'next/router';
29
29
  import './util-3ab476bf.js';
30
30
  import './Beam.js';
@@ -17,13 +17,13 @@ import './index.es-c6222053.js';
17
17
  import './moment-bc12cb97.js';
18
18
  import './visibility-sensor-082c757b.js';
19
19
  import 'react-dom';
20
- import './index-669ff425.js';
20
+ import './index-888f9253.js';
21
21
  import 'prop-types';
22
22
  import 'next/router';
23
23
  import './index-752d1dae.js';
24
24
  import './main-1450d277.js';
25
25
  import './entities-932b50cf.js';
26
- import './ADInfeed-4fe6b23b.js';
26
+ import './ADInfeed-3a9eef39.js';
27
27
  import 'react-bootstrap/Card';
28
28
  import './AdSlot.js';
29
29
  import './debounce-1a993acf.js';
@@ -36,40 +36,40 @@ import './_set-species-494ed292.js';
36
36
  import './Segment.js';
37
37
  import './AuthorComponent-c7ff069f.js';
38
38
  import './lodash-ad27652f.js';
39
- import './ADlgInfeed-a01132a5.js';
39
+ import './ADlgInfeed-8d63ff91.js';
40
40
  import './getContentCategory-15dcc413.js';
41
41
  import './timeDifferenceCalc.js';
42
42
  import 'react-bootstrap/Breadcrumb';
43
43
 
44
- /* usage
45
- import Settings, { Ads } from '../../../../settings'
46
- import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
47
- import client from '../../../../client'
48
- import moment from 'moment'
49
- import Shell from '../../../../components/2.0/Shell'
50
- import { pageview } from '../../../../utilities/gtag'
51
-
52
- const Issue = (props) => {
53
- const { pubIssue, cache } = props
54
- const targeting = {
55
- content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
56
- document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
57
- }
58
- return (
59
- <Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
60
- <IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
61
- </Shell>
62
- )
63
- }
64
-
65
- Issue.getInitialProps = async (ctx) => {
66
- const { query } = ctx
67
- const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
68
- )
69
- return { pubIssue }
70
- }
71
-
72
- export default Issue
44
+ /* usage
45
+ import Settings, { Ads } from '../../../../settings'
46
+ import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
47
+ import client from '../../../../client'
48
+ import moment from 'moment'
49
+ import Shell from '../../../../components/2.0/Shell'
50
+ import { pageview } from '../../../../utilities/gtag'
51
+
52
+ const Issue = (props) => {
53
+ const { pubIssue, cache } = props
54
+ const targeting = {
55
+ content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
56
+ document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
57
+ }
58
+ return (
59
+ <Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
60
+ <IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
61
+ </Shell>
62
+ )
63
+ }
64
+
65
+ Issue.getInitialProps = async (ctx) => {
66
+ const { query } = ctx
67
+ const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
68
+ )
69
+ return { pubIssue }
70
+ }
71
+
72
+ export default Issue
73
73
  */
74
74
 
75
75
  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;
@@ -12,7 +12,7 @@ import './AdSlot.js';
12
12
  import './extends-31d65aba.js';
13
13
  import './_object-pie-33c40e79.js';
14
14
  import 'prop-types';
15
- import './index-669ff425.js';
15
+ import './index-888f9253.js';
16
16
  import './debounce-1a993acf.js';
17
17
  import './isSymbol-807e927e.js';
18
18
  import './Beam.js';
@@ -3,7 +3,7 @@ import { _ as _Promise } from './asyncToGenerator-2bd4099a.js';
3
3
  import { _ as _extends } from './extends-31d65aba.js';
4
4
  import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-5906fbea.js';
5
5
  import React from 'react';
6
- import { l as lib_3 } from './index-669ff425.js';
6
+ import { l as lib_3 } from './index-888f9253.js';
7
7
  import Container from 'react-bootstrap/Container';
8
8
  import 'react-bootstrap/Row';
9
9
  import 'react-bootstrap/Col';
@@ -15,8 +15,8 @@ import { d as debounce_1 } from './debounce-1a993acf.js';
15
15
  import { I as InfiniteScroll } from './index.es-c6222053.js';
16
16
  import { V as VisibilitySensor } from './visibility-sensor-082c757b.js';
17
17
  import './index-3f5c03b2.js';
18
- import { A as ADlgInfeed } from './ADlgInfeed-a01132a5.js';
19
- import { A as ADInfeed } from './ADInfeed-4fe6b23b.js';
18
+ import { A as ADlgInfeed } from './ADlgInfeed-8d63ff91.js';
19
+ import { A as ADInfeed } from './ADInfeed-3a9eef39.js';
20
20
  import './main-1450d277.js';
21
21
  import './_commonjsHelpers-0c4b6f40.js';
22
22
  import './es6.string.iterator-aa6068a3.js';
@@ -224,14 +224,14 @@ var MasterDeck = function (_React$Component) {
224
224
  }
225
225
 
226
226
  // please leave this for later debug purpose : Yong Jun.
227
- /* console.log('page change reported', {
228
- currentPage: currentPage,
229
- pageNumber: pageNumber,
230
- pathname: pathname,
231
- path: path,
232
- newPath: newPath,
233
- firstPage: pageNumber === 1,
234
- queryString: queryString
227
+ /* console.log('page change reported', {
228
+ currentPage: currentPage,
229
+ pageNumber: pageNumber,
230
+ pathname: pathname,
231
+ path: path,
232
+ newPath: newPath,
233
+ firstPage: pageNumber === 1,
234
+ queryString: queryString
235
235
  }) */
236
236
 
237
237
  if (pageview) {
@@ -29,16 +29,16 @@ import 'react-bootstrap/FormControl';
29
29
  import 'react-bootstrap/Button';
30
30
 
31
31
  var NavMagazine = function NavMagazine(props) {
32
- /*
33
- Example Nav with acceptable props
34
- <MagazineNav
35
- showLogin
36
- user={props.cache.user}
37
- logo={props.settings.logo}
38
- dataObject={props.cache.mainNavCache}
39
- website={website}
40
- subNav={props.cache.subNavCache}
41
- />
32
+ /*
33
+ Example Nav with acceptable props
34
+ <MagazineNav
35
+ showLogin
36
+ user={props.cache.user}
37
+ logo={props.settings.logo}
38
+ dataObject={props.cache.mainNavCache}
39
+ website={website}
40
+ subNav={props.cache.subNavCache}
41
+ />
42
42
  */
43
43
 
44
44
  // Setting 'socialIconVariant' as 'light' as default to make the social icons and search icon black
@@ -26,15 +26,15 @@ import './_set-species-494ed292.js';
26
26
  import './_iter-detect-48516cd3.js';
27
27
 
28
28
  var NavNative = function NavNative(props) {
29
- /*
30
- Example Nav with acceptable props
31
- <MagazineNav
32
- showLogin
33
- logo={props.settings.logo}
34
- dataObject={props.cache.mainNavCache}
35
- website={website}
36
- subNav={props.cache.subNavCache}
37
- />
29
+ /*
30
+ Example Nav with acceptable props
31
+ <MagazineNav
32
+ showLogin
33
+ logo={props.settings.logo}
34
+ dataObject={props.cache.mainNavCache}
35
+ website={website}
36
+ subNav={props.cache.subNavCache}
37
+ />
38
38
  */
39
39
  // Setting 'socialIconVariant' as 'dark' as default to make the social icons and search icon black
40
40
  var logo = props.logo,
@@ -10,7 +10,7 @@ import QueueDeckExpanded from './QueueDeckExpanded.js';
10
10
  import Breadcrumbs from './Breadcrumbs.js';
11
11
  import Feature from './Feature.js';
12
12
  import urlFor from './urlFor.js';
13
- import { g as getSerializers } from './index-6eef5e56.js';
13
+ import { g as getSerializers } from './index-d6ad9248.js';
14
14
  import { B as BlockContent } from './BlockContent-d8cd739c.js';
15
15
  import './_commonjsHelpers-0c4b6f40.js';
16
16
  import './es6.string.iterator-aa6068a3.js';
@@ -26,13 +26,13 @@ import 'react-bootstrap';
26
26
  import './index.es-c6222053.js';
27
27
  import './visibility-sensor-082c757b.js';
28
28
  import 'react-dom';
29
- import './index-669ff425.js';
29
+ import './index-888f9253.js';
30
30
  import 'prop-types';
31
31
  import 'next/router';
32
32
  import './index-752d1dae.js';
33
33
  import './main-1450d277.js';
34
34
  import './entities-932b50cf.js';
35
- import './ADInfeed-4fe6b23b.js';
35
+ import './ADInfeed-3a9eef39.js';
36
36
  import 'react-bootstrap/Card';
37
37
  import './AdSlot.js';
38
38
  import './debounce-1a993acf.js';
@@ -42,7 +42,7 @@ import './stringify-d4839bab.js';
42
42
  import './Segment.js';
43
43
  import './AuthorComponent-c7ff069f.js';
44
44
  import './lodash-ad27652f.js';
45
- import './ADlgInfeed-a01132a5.js';
45
+ import './ADlgInfeed-8d63ff91.js';
46
46
  import './getContentCategory-15dcc413.js';
47
47
  import './timeDifferenceCalc.js';
48
48
  import 'react-bootstrap/Breadcrumb';
@@ -370,39 +370,39 @@ module.exports = { "default": set, __esModule: true };
370
370
 
371
371
  var _Set = unwrapExports(set$1);
372
372
 
373
- /* usage & query
374
- const Publication = (props) => {
375
- const { cache, pub, year } = props
376
-
377
- const targeting = {
378
- content_placement: [`/journals/${pub.identifier.current}`],
379
- document_url: [`/journals/${pub.identifier.current}`],
380
- }
381
-
382
- return (
383
- <Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
384
- <PublicationLanding publication={pub} year={year} href={'journals'} />
385
- </Shell>
386
- )
387
- }
388
-
389
- Publication.getInitialProps = async (ctx) => {
390
- const { query } = ctx
391
- const {
392
- query: { year },
393
- } = ctx
394
- const pub = await client.fetch(getQuery('publication'), query)
395
- const builder = imageUrlBuilder(client)
396
- const urlFor = (source) => {
397
- return builder.image(source)
398
- }
399
- pub.issues.map((issue) => {
400
- issue.thumbnail = urlFor(issue.thumbnail).url()
401
- })
402
- return { pub, year }
403
- }
404
-
405
- export default Publication
373
+ /* usage & query
374
+ const Publication = (props) => {
375
+ const { cache, pub, year } = props
376
+
377
+ const targeting = {
378
+ content_placement: [`/journals/${pub.identifier.current}`],
379
+ document_url: [`/journals/${pub.identifier.current}`],
380
+ }
381
+
382
+ return (
383
+ <Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
384
+ <PublicationLanding publication={pub} year={year} href={'journals'} />
385
+ </Shell>
386
+ )
387
+ }
388
+
389
+ Publication.getInitialProps = async (ctx) => {
390
+ const { query } = ctx
391
+ const {
392
+ query: { year },
393
+ } = ctx
394
+ const pub = await client.fetch(getQuery('publication'), query)
395
+ const builder = imageUrlBuilder(client)
396
+ const urlFor = (source) => {
397
+ return builder.image(source)
398
+ }
399
+ pub.issues.map((issue) => {
400
+ issue.thumbnail = urlFor(issue.thumbnail).url()
401
+ })
402
+ return { pub, year }
403
+ }
404
+
405
+ export default Publication
406
406
  */
407
407
 
408
408
  var generateContentPlacements = function generateContentPlacements(issues) {
@@ -7,15 +7,15 @@ import { i as imageUrlBuilder } from './index-3f5c03b2.js';
7
7
  import { I as InfiniteScroll } from './index.es-c6222053.js';
8
8
  import { m as moment } from './moment-bc12cb97.js';
9
9
  import { V as VisibilitySensor } from './visibility-sensor-082c757b.js';
10
- import { l as lib_3 } from './index-669ff425.js';
10
+ import { l as lib_3 } from './index-888f9253.js';
11
11
  import { useRouter } from 'next/router';
12
12
  import { L as LazyLoad } from './index-752d1dae.js';
13
13
  import { m as main_40 } from './main-1450d277.js';
14
14
  import { c as clean_html_1 } from './entities-932b50cf.js';
15
- import { A as ADInfeed } from './ADInfeed-4fe6b23b.js';
15
+ import { A as ADInfeed } from './ADInfeed-3a9eef39.js';
16
16
  import { A as AuthorComponent } from './AuthorComponent-c7ff069f.js';
17
17
  import { l as lodash } from './lodash-ad27652f.js';
18
- import { A as ADlgInfeed } from './ADlgInfeed-a01132a5.js';
18
+ import { A as ADlgInfeed } from './ADlgInfeed-8d63ff91.js';
19
19
  import { g as getContentCategory } from './getContentCategory-15dcc413.js';
20
20
  import timeDifferenceCalc from './timeDifferenceCalc.js';
21
21
  import './_commonjsHelpers-0c4b6f40.js';
@@ -7,34 +7,34 @@ import './_commonjsHelpers-0c4b6f40.js';
7
7
  import 'react-dom';
8
8
  import 'prop-types';
9
9
 
10
- /*
11
- Sample query
12
- let references = ''
13
- if(article.taxonomyMapping.length > 0){
14
- article.taxonomyMapping.forEach((ref, index) => {
15
- references = references + `references('${ref._ref}') `
16
- if(index+1 !== article.taxonomyMapping.length){
17
- references = references + ` && `
18
- }
19
- })
20
- }
21
-
22
- const relatedArticlesQuery = `*[!(_id in path("drafts.**")) && _type == "article" && title !='${article.title}' && defined(title) && is_visible == true && ( references('article.documentGroup._id') || ${references} ) && published <= '${today}'] | order(published desc) [0...4] {
23
- ...,
24
- title,
25
- summary,
26
- thumbnail,
27
- url,
28
- published,
29
- authorMapping[]->,
30
- contentCategory->
31
- }`
32
- const relatedArticles = await client.fetch(relatedArticlesQuery)
33
-
34
- Sample usage
35
- <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
36
-
37
-
10
+ /*
11
+ Sample query
12
+ let references = ''
13
+ if(article.taxonomyMapping.length > 0){
14
+ article.taxonomyMapping.forEach((ref, index) => {
15
+ references = references + `references('${ref._ref}') `
16
+ if(index+1 !== article.taxonomyMapping.length){
17
+ references = references + ` && `
18
+ }
19
+ })
20
+ }
21
+
22
+ const relatedArticlesQuery = `*[!(_id in path("drafts.**")) && _type == "article" && title !='${article.title}' && defined(title) && is_visible == true && ( references('article.documentGroup._id') || ${references} ) && published <= '${today}'] | order(published desc) [0...4] {
23
+ ...,
24
+ title,
25
+ summary,
26
+ thumbnail,
27
+ url,
28
+ published,
29
+ authorMapping[]->,
30
+ contentCategory->
31
+ }`
32
+ const relatedArticles = await client.fetch(relatedArticlesQuery)
33
+
34
+ Sample usage
35
+ <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
36
+
37
+
38
38
  */
39
39
  var RelatedContent = function RelatedContent(props) {
40
40
  var client = props.client,