@mjhls/mjh-framework 1.0.972 → 1.0.973-partner-listing-nojs-v1

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 (150) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +1 -2
  4. package/dist/cjs/AD300x250x600.js +1 -2
  5. package/dist/cjs/AD728x90.js +1 -2
  6. package/dist/cjs/ADFloatingFooter.js +1 -2
  7. package/dist/cjs/ADGutter.js +1 -2
  8. package/dist/cjs/ADSkyscraper.js +1 -2
  9. package/dist/cjs/ADSponsoredResources.js +1 -2
  10. package/dist/cjs/ADWebcast.js +1 -2
  11. package/dist/cjs/ADWelcome.js +1 -2
  12. package/dist/cjs/AdSlot.js +1 -2
  13. package/dist/cjs/AdSlotsProvider.js +1 -2
  14. package/dist/cjs/AlgoliaSearch.js +17 -14164
  15. package/dist/cjs/ArticleProgramLandingPage.js +2 -3
  16. package/dist/cjs/ArticleSeriesLandingPage.js +3 -4
  17. package/dist/cjs/ArticleSeriesListing.js +1 -2
  18. package/dist/cjs/AuthWrapper.js +29 -3
  19. package/dist/cjs/CMEDeck.js +1 -2
  20. package/dist/cjs/Column3.js +1 -2
  21. package/dist/cjs/ConferenceArticleCard.js +15 -15
  22. package/dist/cjs/ContentCardPaginated.js +3 -5
  23. package/dist/cjs/DeckContent.js +10 -11
  24. package/dist/cjs/DeckQueue.js +1 -2
  25. package/dist/cjs/DeckQueuePaginated.js +2 -4
  26. package/dist/cjs/{Dfp-9be904d5.js → Dfp-94f8ccdf.js} +1 -2
  27. package/dist/cjs/EventsDeck.js +17 -17
  28. package/dist/cjs/ExternalResources.js +2 -3
  29. package/dist/cjs/GridContent.js +3 -4
  30. package/dist/cjs/GridContentPaginated.js +4 -6
  31. package/dist/cjs/HamMagazine.js +9 -9
  32. package/dist/cjs/HealthCareProfessionalModal.js +1 -1
  33. package/dist/cjs/HorizontalArticleListing.js +2 -3
  34. package/dist/cjs/IssueLanding.js +33 -34
  35. package/dist/cjs/KMTracker.js +15 -15
  36. package/dist/cjs/LeftNav.js +1 -2
  37. package/dist/cjs/MasterDeck.js +11 -12
  38. package/dist/cjs/MasterDeckPaginated.js +12 -14
  39. package/dist/cjs/{MediaSeriesCard-5bf9813e.js → MediaSeriesCard-1a62916a.js} +384 -288
  40. package/dist/cjs/MediaSeriesLanding.js +10 -12
  41. package/dist/cjs/MediaSeriesLandingPaginated.js +11 -14
  42. package/dist/cjs/NavMagazine.js +10 -10
  43. package/dist/cjs/NavNative.js +9 -9
  44. package/dist/cjs/Pagination-2a3d0103.js +97 -0
  45. package/dist/cjs/PartnerDetailListing.js +31 -30
  46. package/dist/cjs/PartnerDetailListingPaginated.js +5 -7
  47. package/dist/cjs/PubSection.js +3 -4
  48. package/dist/cjs/PublicationLanding.js +26 -26
  49. package/dist/cjs/QueueDeckExpanded.js +3 -4
  50. package/dist/cjs/QueueDeckExpandedPaginated.js +4 -6
  51. package/dist/cjs/RelatedContent.js +28 -28
  52. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  53. package/dist/cjs/SeriesListingDeck.js +2 -3
  54. package/dist/cjs/{SeriesSlider-594b19eb.js → SeriesSlider-74546d19.js} +4 -4
  55. package/dist/cjs/SideFooter.js +2 -2
  56. package/dist/cjs/TaxonomyDescription.js +2 -3
  57. package/dist/cjs/TemplateNormal.js +1 -2
  58. package/dist/cjs/VideoProgramLandingPage.js +2 -3
  59. package/dist/cjs/VideoSeriesCard.js +1 -1
  60. package/dist/cjs/VideoSeriesLandingPage.js +3 -4
  61. package/dist/cjs/VideoSeriesListing.js +1 -2
  62. package/dist/cjs/View.js +14 -12
  63. package/dist/cjs/YoutubeGroup.js +4 -4
  64. package/dist/cjs/getSerializers.js +6 -7
  65. package/dist/cjs/{getTargeting-3c5754ac.js → getTargeting-dab97fe1.js} +9 -9
  66. package/dist/cjs/getTargeting.js +1 -1
  67. package/dist/cjs/{index-fc2f1ca2.js → index-0e4427c8.js} +467 -2
  68. package/dist/cjs/{index-eb1c583d.js → index-bb00ade7.js} +73 -30
  69. package/dist/cjs/index.js +7 -10
  70. package/dist/esm/AD.js +1 -1
  71. package/dist/esm/AD300x250.js +1 -2
  72. package/dist/esm/AD300x250x600.js +1 -2
  73. package/dist/esm/AD728x90.js +1 -2
  74. package/dist/esm/ADFloatingFooter.js +1 -2
  75. package/dist/esm/ADGutter.js +1 -2
  76. package/dist/esm/ADSkyscraper.js +1 -2
  77. package/dist/esm/ADSponsoredResources.js +1 -2
  78. package/dist/esm/ADWebcast.js +1 -2
  79. package/dist/esm/ADWelcome.js +1 -2
  80. package/dist/esm/AdSlot.js +1 -2
  81. package/dist/esm/AdSlotsProvider.js +1 -2
  82. package/dist/esm/AlgoliaSearch.js +11 -14158
  83. package/dist/esm/ArticleProgramLandingPage.js +2 -3
  84. package/dist/esm/ArticleSeriesLandingPage.js +3 -4
  85. package/dist/esm/ArticleSeriesListing.js +1 -2
  86. package/dist/esm/AuthWrapper.js +28 -2
  87. package/dist/esm/CMEDeck.js +1 -2
  88. package/dist/esm/Column3.js +1 -2
  89. package/dist/esm/ConferenceArticleCard.js +15 -15
  90. package/dist/esm/ContentCardPaginated.js +3 -5
  91. package/dist/esm/DeckContent.js +10 -11
  92. package/dist/esm/DeckQueue.js +1 -2
  93. package/dist/esm/DeckQueuePaginated.js +2 -4
  94. package/dist/esm/{Dfp-102f0beb.js → Dfp-cf85d203.js} +1 -2
  95. package/dist/esm/EventsDeck.js +17 -17
  96. package/dist/esm/ExternalResources.js +2 -3
  97. package/dist/esm/GridContent.js +3 -4
  98. package/dist/esm/GridContentPaginated.js +4 -6
  99. package/dist/esm/HamMagazine.js +9 -9
  100. package/dist/esm/HealthCareProfessionalModal.js +1 -1
  101. package/dist/esm/HorizontalArticleListing.js +2 -3
  102. package/dist/esm/IssueLanding.js +33 -34
  103. package/dist/esm/KMTracker.js +15 -15
  104. package/dist/esm/LeftNav.js +1 -2
  105. package/dist/esm/MasterDeck.js +11 -12
  106. package/dist/esm/MasterDeckPaginated.js +12 -14
  107. package/dist/esm/{MediaSeriesCard-305a9cb3.js → MediaSeriesCard-146e08c8.js} +99 -3
  108. package/dist/esm/MediaSeriesLanding.js +10 -12
  109. package/dist/esm/MediaSeriesLandingPaginated.js +11 -14
  110. package/dist/esm/NavMagazine.js +10 -10
  111. package/dist/esm/NavNative.js +9 -9
  112. package/dist/esm/Pagination-dc30727b.js +90 -0
  113. package/dist/esm/PartnerDetailListing.js +31 -30
  114. package/dist/esm/PartnerDetailListingPaginated.js +5 -7
  115. package/dist/esm/PubSection.js +3 -4
  116. package/dist/esm/PublicationLanding.js +26 -26
  117. package/dist/esm/QueueDeckExpanded.js +3 -4
  118. package/dist/esm/QueueDeckExpandedPaginated.js +4 -6
  119. package/dist/esm/RelatedContent.js +28 -28
  120. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  121. package/dist/esm/SeriesListingDeck.js +2 -3
  122. package/dist/esm/{SeriesSlider-f771e20d.js → SeriesSlider-e495571f.js} +4 -4
  123. package/dist/esm/SideFooter.js +2 -2
  124. package/dist/esm/TaxonomyDescription.js +2 -3
  125. package/dist/esm/TemplateNormal.js +1 -2
  126. package/dist/esm/VideoProgramLandingPage.js +2 -3
  127. package/dist/esm/VideoSeriesCard.js +1 -1
  128. package/dist/esm/VideoSeriesLandingPage.js +3 -4
  129. package/dist/esm/VideoSeriesListing.js +1 -2
  130. package/dist/esm/View.js +14 -11
  131. package/dist/esm/YoutubeGroup.js +4 -4
  132. package/dist/esm/getSerializers.js +6 -7
  133. package/dist/esm/{getTargeting-42f9b439.js → getTargeting-04d979c9.js} +9 -9
  134. package/dist/esm/getTargeting.js +1 -1
  135. package/dist/esm/{index-f0fc23eb.js → index-5cc7b406.js} +466 -1
  136. package/dist/esm/{index-264bbd3c.js → index-e89d33c8.js} +73 -30
  137. package/dist/esm/index.js +7 -10
  138. package/package.json +115 -115
  139. package/dist/cjs/Pagination-c63770a3.js +0 -90
  140. package/dist/cjs/events-1b438fe7.js +0 -469
  141. package/dist/cjs/index-50be6759.js +0 -105
  142. package/dist/cjs/typeof-1358762e.js +0 -33
  143. package/dist/esm/Pagination-6f8d5327.js +0 -82
  144. package/dist/esm/events-6c3a7a63.js +0 -467
  145. package/dist/esm/index-98ca9cec.js +0 -100
  146. package/dist/esm/typeof-2f07d0e8.js +0 -30
  147. /package/dist/cjs/{ADInfeed-81006615.js → ADInfeed-cf54cb8a.js} +0 -0
  148. /package/dist/cjs/{ADlgInfeed-0db07099.js → ADlgInfeed-d06624d8.js} +0 -0
  149. /package/dist/esm/{ADInfeed-6d1fc6bf.js → ADInfeed-0852ff35.js} +0 -0
  150. /package/dist/esm/{ADlgInfeed-dc36c928.js → ADlgInfeed-5fb3b724.js} +0 -0
@@ -11,7 +11,7 @@ import QueueDeckExpanded from './QueueDeckExpanded.js';
11
11
  import Breadcrumbs from './Breadcrumbs.js';
12
12
  import Feature from './Feature.js';
13
13
  import urlFor from './urlFor.js';
14
- import { g as getSerializers } from './index-264bbd3c.js';
14
+ import { g as getSerializers } from './index-e89d33c8.js';
15
15
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
16
16
  import './_commonjsHelpers-0c4b6f40.js';
17
17
  import './core.get-iterator-method-ea258bb1.js';
@@ -26,13 +26,12 @@ import 'react-bootstrap';
26
26
  import './index.es-a6137319.js';
27
27
  import './visibility-sensor-72fd8f8b.js';
28
28
  import 'react-dom';
29
- import './index-f0fc23eb.js';
30
- import './events-6c3a7a63.js';
29
+ import './index-5cc7b406.js';
31
30
  import 'next/router';
32
31
  import './index-755f2cc2.js';
33
32
  import './main-1894c974.js';
34
33
  import './entities-6d9154b4.js';
35
- import './ADInfeed-6d1fc6bf.js';
34
+ import './ADInfeed-0852ff35.js';
36
35
  import 'react-bootstrap/Card';
37
36
  import './AdSlot.js';
38
37
  import './debounce-533d9748.js';
@@ -43,7 +42,7 @@ import './stringify-2b084bee.js';
43
42
  import './Segment.js';
44
43
  import './AuthorComponent-11adff02.js';
45
44
  import './lodash-f97fd99a.js';
46
- import './ADlgInfeed-dc36c928.js';
45
+ import './ADlgInfeed-5fb3b724.js';
47
46
  import './getContentCategory-15dcc413.js';
48
47
  import './timeDifferenceCalc.js';
49
48
  import './index-3f5c03b2.js';
@@ -94,7 +93,8 @@ var PartnerDetails = function PartnerDetails(_ref) {
94
93
  client = _ref.client,
95
94
  Settings = _ref.Settings,
96
95
  pageview = _ref.pageview,
97
- page = _ref.page;
96
+ page = _ref.page,
97
+ nextPagePostsCount = _ref.nextPagePostsCount;
98
98
 
99
99
  var description = partnerDetails && partnerDetails.description ? partnerDetails.description.filter(function (block) {
100
100
  return block._type !== 'slideshows' ? block : null;
@@ -170,24 +170,9 @@ var PartnerDetails = function PartnerDetails(_ref) {
170
170
  rel: 'noopener noreferrer',
171
171
  style: { height: 30, width: 30 }
172
172
  }),
173
- partnerDetails.youtube && partnerDetails.youtubeIcon && React__default.createElement(reactSocialIcons_1, {
174
- url: partnerDetails.youtube,
175
- target: '_blank',
176
- rel: 'noopener noreferrer',
177
- style: { height: 30, width: 30, marginLeft: '0.25rem' }
178
- }),
179
- partnerDetails.twitter && partnerDetails.twitterIcon && React__default.createElement(reactSocialIcons_1, {
180
- url: partnerDetails.twitter,
181
- target: '_blank',
182
- rel: 'noopener noreferrer',
183
- style: { height: 30, width: 30, marginLeft: '0.25rem' }
184
- }),
185
- partnerDetails.facebook && !partnerDetails.twitterIcon && React__default.createElement(reactSocialIcons_1, {
186
- url: partnerDetails.facebook,
187
- target: '_blank',
188
- rel: 'noopener noreferrer',
189
- style: { height: 30, width: 30, marginLeft: '0.25rem' }
190
- })
173
+ partnerDetails.youtube && partnerDetails.youtubeIcon && React__default.createElement(reactSocialIcons_1, { url: partnerDetails.youtube, target: '_blank', rel: 'noopener noreferrer', style: { height: 30, width: 30, marginLeft: '0.25rem' } }),
174
+ partnerDetails.twitter && partnerDetails.twitterIcon && React__default.createElement(reactSocialIcons_1, { url: partnerDetails.twitter, target: '_blank', rel: 'noopener noreferrer', style: { height: 30, width: 30, marginLeft: '0.25rem' } }),
175
+ partnerDetails.facebook && !partnerDetails.twitterIcon && React__default.createElement(reactSocialIcons_1, { url: partnerDetails.facebook, target: '_blank', rel: 'noopener noreferrer', style: { height: 30, width: 30, marginLeft: '0.25rem' } })
191
176
  )
192
177
  )
193
178
  ),
@@ -244,7 +229,8 @@ var PartnerDetails = function PartnerDetails(_ref) {
244
229
  defaultImage: Settings.logo,
245
230
  showPublished: true,
246
231
  showCategory: true,
247
- pageview: pageview
232
+ pageview: pageview,
233
+ nextPagePostsCount: nextPagePostsCount
248
234
  })
249
235
  )
250
236
  )
@@ -255,7 +241,7 @@ PartnerDetails.returnGetInitialProps = function () {
255
241
  var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(identifier, partnerPageUrl, partnerDocumentGroupID, params, currentPage, client) {
256
242
  var category = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : false;
257
243
 
258
- var today, featureQuery, partnerQuery, taxonomyQuery, _ref3, _ref4, features, partnerDetails, taxonomyDetails, articlesQuery, articles;
244
+ var today, featureQuery, partnerQuery, taxonomyQuery, _ref3, _ref4, features, partnerDetails, taxonomyDetails, articlesQuery, itemsPerPage, articles, nextPagePostsCount;
259
245
 
260
246
  return regenerator.wrap(function _callee$(_context) {
261
247
  while (1) {
@@ -288,12 +274,17 @@ PartnerDetails.returnGetInitialProps = function () {
288
274
  partnerDetails = _ref4[1];
289
275
  taxonomyDetails = _ref4[2];
290
276
  articlesQuery = '*[_type == \'article\' && !(_id in path("drafts.**")) && defined(title) && is_visible == true && defined(url) && dateTime(published) <= dateTime(\'' + today + '\') && passwordLocked != true && references(\'' + taxonomyDetails.id + '\')] | order(published desc)[$from...$to]{\n title,\n summary,\n thumbnail{ ..., asset-> },\n url,\n published,\n contentCategory->,\n \'pageNumber\': ' + currentPage + '\n }';
291
- _context.next = 16;
277
+ itemsPerPage = params.itemsPerPage ? params.itemsPerPage : params.from && params.to ? parseInt(params.to) - parseInt(params.from) : 10;
278
+ _context.next = 17;
292
279
  return client.fetch(articlesQuery, params);
293
280
 
294
- case 16:
281
+ case 17:
295
282
  articles = _context.sent;
283
+ _context.next = 20;
284
+ return client.fetch('count(' + articlesQuery + ')', _extends({}, params, { from: params.to, to: params.to + itemsPerPage }));
296
285
 
286
+ case 20:
287
+ nextPagePostsCount = _context.sent;
297
288
 
298
289
  // need to exclude slideshows from body due to the affiliate slider
299
290
  if (partnerDetails && partnerDetails.description) {
@@ -302,9 +293,19 @@ PartnerDetails.returnGetInitialProps = function () {
302
293
  });
303
294
  }
304
295
 
305
- return _context.abrupt('return', { articles: articles, taxonomyDetails: taxonomyDetails, partnerDetails: category ? partnerDetails.partner : partnerDetails, features: features, featureQuery: featureQuery, partnerQuery: partnerQuery, taxonomyQuery: taxonomyQuery, articlesQuery: articlesQuery });
296
+ return _context.abrupt('return', {
297
+ articles: articles,
298
+ taxonomyDetails: taxonomyDetails,
299
+ partnerDetails: category ? partnerDetails.partner : partnerDetails,
300
+ features: features,
301
+ featureQuery: featureQuery,
302
+ partnerQuery: partnerQuery,
303
+ taxonomyQuery: taxonomyQuery,
304
+ articlesQuery: articlesQuery,
305
+ nextPagePostsCount: nextPagePostsCount
306
+ });
306
307
 
307
- case 19:
308
+ case 23:
308
309
  case 'end':
309
310
  return _context.stop();
310
311
  }
@@ -11,7 +11,7 @@ import QueueDeckExpanded from './QueueDeckExpandedPaginated.js';
11
11
  import Breadcrumbs from './Breadcrumbs.js';
12
12
  import Feature from './Feature.js';
13
13
  import urlFor from './urlFor.js';
14
- import { g as getSerializers } from './index-264bbd3c.js';
14
+ import { g as getSerializers } from './index-e89d33c8.js';
15
15
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
16
16
  import './_commonjsHelpers-0c4b6f40.js';
17
17
  import './core.get-iterator-method-ea258bb1.js';
@@ -23,15 +23,14 @@ import 'prop-types';
23
23
  import './smoothscroll-fa4e3f8c.js';
24
24
  import './toConsumableArray-f7074d7c.js';
25
25
  import 'react-bootstrap';
26
- import './index-f0fc23eb.js';
27
- import './events-6c3a7a63.js';
26
+ import './index-5cc7b406.js';
28
27
  import 'next/router';
29
28
  import './index-755f2cc2.js';
30
29
  import 'react-dom';
31
30
  import './lodash-f97fd99a.js';
32
31
  import './main-1894c974.js';
33
32
  import './entities-6d9154b4.js';
34
- import './ADInfeed-6d1fc6bf.js';
33
+ import './ADInfeed-0852ff35.js';
35
34
  import 'react-bootstrap/Card';
36
35
  import './AdSlot.js';
37
36
  import './debounce-533d9748.js';
@@ -41,11 +40,10 @@ import './Beam.js';
41
40
  import './stringify-2b084bee.js';
42
41
  import './Segment.js';
43
42
  import './AuthorComponent-11adff02.js';
44
- import './ADlgInfeed-dc36c928.js';
43
+ import './ADlgInfeed-5fb3b724.js';
45
44
  import './getContentCategory-15dcc413.js';
46
45
  import './timeDifferenceCalc.js';
47
- import './Pagination-6f8d5327.js';
48
- import 'react-paginate';
46
+ import './Pagination-dc30727b.js';
49
47
  import 'react-bootstrap/Button';
50
48
  import './index.esm-1bd8a0a8.js';
51
49
  import './iconBase-ccc56b97.js';
@@ -17,14 +17,13 @@ import './index.es-a6137319.js';
17
17
  import './moment-bc12cb97.js';
18
18
  import './visibility-sensor-72fd8f8b.js';
19
19
  import 'react-dom';
20
- import './index-f0fc23eb.js';
21
- import './events-6c3a7a63.js';
20
+ import './index-5cc7b406.js';
22
21
  import 'prop-types';
23
22
  import 'next/router';
24
23
  import './index-755f2cc2.js';
25
24
  import './main-1894c974.js';
26
25
  import './entities-6d9154b4.js';
27
- import './ADInfeed-6d1fc6bf.js';
26
+ import './ADInfeed-0852ff35.js';
28
27
  import 'react-bootstrap/Card';
29
28
  import './AdSlot.js';
30
29
  import './debounce-533d9748.js';
@@ -35,7 +34,7 @@ import './stringify-2b084bee.js';
35
34
  import './Segment.js';
36
35
  import './AuthorComponent-11adff02.js';
37
36
  import './lodash-f97fd99a.js';
38
- import './ADlgInfeed-dc36c928.js';
37
+ import './ADlgInfeed-5fb3b724.js';
39
38
  import './getContentCategory-15dcc413.js';
40
39
  import './timeDifferenceCalc.js';
41
40
 
@@ -376,32 +376,32 @@ module.exports = { "default": set$1, __esModule: true };
376
376
 
377
377
  var _Set = unwrapExports(set);
378
378
 
379
- /* usage & query
380
- const Publication = (props) => {
381
- const { cache, pub, year } = props
382
- const targeting = {
383
- content_placement: [`/journals/${pub.identifier.current}`],
384
- document_url: [`/journals/${pub.identifier.current}`],
385
- }
386
- return (
387
- <Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
388
- <PublicationLanding publication={pub} year={year} href={'journals'} />
389
- </Shell>
390
- )
391
- }
392
- Publication.getInitialProps = async (ctx) => {
393
- const { query } = ctx
394
- const {
395
- query: { year },
396
- } = ctx
397
- const pub = await client.fetch(getQuery('publication'), query)
398
- **import urlFor from framework**
399
- pub.issues.map((issue) => {
400
- issue.thumbnail = urlFor({client, source: issue.thumbnail})
401
- })
402
- return { pub, year }
403
- }
404
- export default Publication
379
+ /* usage & query
380
+ const Publication = (props) => {
381
+ const { cache, pub, year } = props
382
+ const targeting = {
383
+ content_placement: [`/journals/${pub.identifier.current}`],
384
+ document_url: [`/journals/${pub.identifier.current}`],
385
+ }
386
+ return (
387
+ <Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
388
+ <PublicationLanding publication={pub} year={year} href={'journals'} />
389
+ </Shell>
390
+ )
391
+ }
392
+ Publication.getInitialProps = async (ctx) => {
393
+ const { query } = ctx
394
+ const {
395
+ query: { year },
396
+ } = ctx
397
+ const pub = await client.fetch(getQuery('publication'), query)
398
+ **import urlFor from framework**
399
+ pub.issues.map((issue) => {
400
+ issue.thumbnail = urlFor({client, source: issue.thumbnail})
401
+ })
402
+ return { pub, year }
403
+ }
404
+ export default Publication
405
405
  */
406
406
 
407
407
  var generateContentPlacements = function generateContentPlacements(issues) {
@@ -7,15 +7,15 @@ import urlFor from './urlFor.js';
7
7
  import { I as InfiniteScroll } from './index.es-a6137319.js';
8
8
  import { m as moment } from './moment-bc12cb97.js';
9
9
  import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
10
- import { l as lib_3 } from './index-f0fc23eb.js';
10
+ import { l as lib_3 } from './index-5cc7b406.js';
11
11
  import { useRouter } from 'next/router';
12
12
  import { L as LazyLoad } from './index-755f2cc2.js';
13
13
  import { m as main_43 } from './main-1894c974.js';
14
14
  import { c as clean_html_1 } from './entities-6d9154b4.js';
15
- import { A as ADInfeed } from './ADInfeed-6d1fc6bf.js';
15
+ import { A as ADInfeed } from './ADInfeed-0852ff35.js';
16
16
  import { A as AuthorComponent } from './AuthorComponent-11adff02.js';
17
17
  import { l as lodash } from './lodash-f97fd99a.js';
18
- import { A as ADlgInfeed } from './ADlgInfeed-dc36c928.js';
18
+ import { A as ADlgInfeed } from './ADlgInfeed-5fb3b724.js';
19
19
  import { g as getContentCategory } from './getContentCategory-15dcc413.js';
20
20
  import timeDifferenceCalc from './timeDifferenceCalc.js';
21
21
  import './_commonjsHelpers-0c4b6f40.js';
@@ -25,7 +25,6 @@ import './_iter-detect-98db3b07.js';
25
25
  import './_object-pie-133f504a.js';
26
26
  import './index-3f5c03b2.js';
27
27
  import 'react-dom';
28
- import './events-6c3a7a63.js';
29
28
  import 'prop-types';
30
29
  import 'react-bootstrap/Card';
31
30
  import './AdSlot.js';
@@ -5,26 +5,25 @@ import { _ as _toConsumableArray } from './toConsumableArray-f7074d7c.js';
5
5
  import React__default, { useState, useEffect, useRef } from 'react';
6
6
  import { Spinner, Container, Media } from 'react-bootstrap';
7
7
  import { m as moment } from './moment-bc12cb97.js';
8
- import { l as lib_3 } from './index-f0fc23eb.js';
8
+ import { l as lib_3 } from './index-5cc7b406.js';
9
9
  import { useRouter } from 'next/router';
10
10
  import { L as LazyLoad } from './index-755f2cc2.js';
11
11
  import { l as lodash } from './lodash-f97fd99a.js';
12
12
  import { m as main_43 } from './main-1894c974.js';
13
13
  import { c as clean_html_1 } from './entities-6d9154b4.js';
14
- import { A as ADInfeed } from './ADInfeed-6d1fc6bf.js';
14
+ import { A as ADInfeed } from './ADInfeed-0852ff35.js';
15
15
  import { A as AuthorComponent } from './AuthorComponent-11adff02.js';
16
- import { A as ADlgInfeed } from './ADlgInfeed-dc36c928.js';
16
+ import { A as ADlgInfeed } from './ADlgInfeed-5fb3b724.js';
17
17
  import { g as getContentCategory } from './getContentCategory-15dcc413.js';
18
18
  import timeDifferenceCalc from './timeDifferenceCalc.js';
19
19
  import urlFor from './urlFor.js';
20
- import { P as Pagination } from './Pagination-6f8d5327.js';
20
+ import { P as Pagination } from './Pagination-dc30727b.js';
21
21
  import './_commonjsHelpers-0c4b6f40.js';
22
22
  import './core.get-iterator-method-ea258bb1.js';
23
23
  import './web.dom.iterable-ab4dea5c.js';
24
24
  import './_library-528f1934.js';
25
25
  import './_iter-detect-98db3b07.js';
26
26
  import './_object-pie-133f504a.js';
27
- import './events-6c3a7a63.js';
28
27
  import 'prop-types';
29
28
  import 'react-dom';
30
29
  import 'react-bootstrap/Card';
@@ -36,7 +35,6 @@ import './Beam.js';
36
35
  import './stringify-2b084bee.js';
37
36
  import './Segment.js';
38
37
  import './index-3f5c03b2.js';
39
- import 'react-paginate';
40
38
  import 'react-bootstrap/Button';
41
39
  import './index.esm-1bd8a0a8.js';
42
40
  import './iconBase-ccc56b97.js';
@@ -11,34 +11,34 @@ import './index-3f5c03b2.js';
11
11
  import 'react-dom';
12
12
  import 'prop-types';
13
13
 
14
- /*
15
- Sample query
16
- let references = ''
17
- if(article.taxonomyMapping.length > 0){
18
- article.taxonomyMapping.forEach((ref, index) => {
19
- references = references + `references('${ref._ref}') `
20
- if(index+1 !== article.taxonomyMapping.length){
21
- references = references + ` && `
22
- }
23
- })
24
- }
25
-
26
- 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] {
27
- ...,
28
- title,
29
- summary,
30
- thumbnail,
31
- url,
32
- published,
33
- authorMapping[]->,
34
- contentCategory->
35
- }`
36
- const relatedArticles = await client.fetch(relatedArticlesQuery)
37
-
38
- Sample usage
39
- <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
40
-
41
-
14
+ /*
15
+ Sample query
16
+ let references = ''
17
+ if(article.taxonomyMapping.length > 0){
18
+ article.taxonomyMapping.forEach((ref, index) => {
19
+ references = references + `references('${ref._ref}') `
20
+ if(index+1 !== article.taxonomyMapping.length){
21
+ references = references + ` && `
22
+ }
23
+ })
24
+ }
25
+
26
+ 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] {
27
+ ...,
28
+ title,
29
+ summary,
30
+ thumbnail,
31
+ url,
32
+ published,
33
+ authorMapping[]->,
34
+ contentCategory->
35
+ }`
36
+ const relatedArticles = await client.fetch(relatedArticlesQuery)
37
+
38
+ Sample usage
39
+ <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
40
+
41
+
42
42
  */
43
43
  var RelatedContent = function RelatedContent(props) {
44
44
  var client = props.client,
@@ -14,16 +14,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
14
14
  _ref$className = _ref.className,
15
15
  className = _ref$className === undefined ? '' : _ref$className;
16
16
 
17
- /*
18
- Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
19
- example:
20
- <RelatedTopicDropdown
21
- page='/clinical'
22
- exclude="clinical"
23
- className='mb-3'
24
- parentTaxonomy={props.parentTaxonomy}
25
- subTaxonomies={props.subTaxonomies}
26
- />
17
+ /*
18
+ Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
19
+ example:
20
+ <RelatedTopicDropdown
21
+ page='/clinical'
22
+ exclude="clinical"
23
+ className='mb-3'
24
+ parentTaxonomy={props.parentTaxonomy}
25
+ subTaxonomies={props.subTaxonomies}
26
+ />
27
27
  */
28
28
  if (subTaxonomies.length === 0 && parentTaxonomy) {
29
29
  if (parentTaxonomy.identifier == exclude) {
@@ -3,16 +3,15 @@ import { _ as _extends } from './extends-6d8e3924.js';
3
3
  import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
4
4
  import React__default, { useState, useEffect, useRef } from 'react';
5
5
  import { useRouter } from 'next/router';
6
- import { l as lib_3 } from './index-f0fc23eb.js';
6
+ import { l as lib_3 } from './index-5cc7b406.js';
7
7
  import { I as InfiniteScroll } from './index.es-a6137319.js';
8
- import { S as SeriesSlider } from './SeriesSlider-f771e20d.js';
8
+ import { S as SeriesSlider } from './SeriesSlider-e495571f.js';
9
9
  import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
10
10
  import './_commonjsHelpers-0c4b6f40.js';
11
11
  import './core.get-iterator-method-ea258bb1.js';
12
12
  import './_iter-detect-98db3b07.js';
13
13
  import './_object-pie-133f504a.js';
14
14
  import './web.dom.iterable-ab4dea5c.js';
15
- import './events-6c3a7a63.js';
16
15
  import 'prop-types';
17
16
  import './index-c7e2ac95.js';
18
17
  import './index-755f2cc2.js';
@@ -6,10 +6,10 @@ import { s as smoothscroll } from './smoothscroll-fa4e3f8c.js';
6
6
  import urlFor from './urlFor.js';
7
7
  import { m as main_43, a as main_49, b as main_42 } from './main-1894c974.js';
8
8
 
9
- /*
10
- GROQ query -
11
- accepts an array of title, URL
12
- `https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
9
+ /*
10
+ GROQ query -
11
+ accepts an array of title, URL
12
+ `https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
13
13
  */
14
14
 
15
15
  var SeriesSlider = function SeriesSlider(_ref) {
@@ -32,8 +32,8 @@ var renderLink = function renderLink(row) {
32
32
  };
33
33
 
34
34
  var SideFooter = function SideFooter(props) {
35
- /*
36
- useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
35
+ /*
36
+ useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
37
37
  */
38
38
  var _get = get_1(props, 'cache.siteSettingCache', {}),
39
39
  socialLinks = _get.socialLinks,
@@ -5,7 +5,7 @@ import React__default, { useState, useEffect } from 'react';
5
5
  import { useRouter } from 'next/router';
6
6
  import Head from 'next/head';
7
7
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
8
- import { g as getSerializers } from './index-264bbd3c.js';
8
+ import { g as getSerializers } from './index-e89d33c8.js';
9
9
  import './_commonjsHelpers-0c4b6f40.js';
10
10
  import './core.get-iterator-method-ea258bb1.js';
11
11
  import './_object-pie-133f504a.js';
@@ -16,8 +16,7 @@ import 'prop-types';
16
16
  import './index-3f5c03b2.js';
17
17
  import 'react-bootstrap';
18
18
  import './urlFor.js';
19
- import './index-f0fc23eb.js';
20
- import './events-6c3a7a63.js';
19
+ import './index-5cc7b406.js';
21
20
  import './index-c7e2ac95.js';
22
21
  import './util-8ed16d48.js';
23
22
  import './Beam.js';
@@ -19,8 +19,7 @@ import './AdSlot.js';
19
19
  import './extends-6d8e3924.js';
20
20
  import './_object-pie-133f504a.js';
21
21
  import 'prop-types';
22
- import './index-f0fc23eb.js';
23
- import './events-6c3a7a63.js';
22
+ import './index-5cc7b406.js';
24
23
  import './debounce-533d9748.js';
25
24
  import './isSymbol-a7e9aafe.js';
26
25
  import './toNumber-5aeba6e7.js';
@@ -5,7 +5,7 @@ import { B as BlockContent } from './BlockContent-1e73bd2c.js';
5
5
  import Col from 'react-bootstrap/Col';
6
6
  import Form from 'react-bootstrap/Form';
7
7
  import Button from 'react-bootstrap/Button';
8
- import { g as getSerializers } from './index-264bbd3c.js';
8
+ import { g as getSerializers } from './index-e89d33c8.js';
9
9
  import VideoSeriesListing from './VideoSeriesListing.js';
10
10
  import './_commonjsHelpers-0c4b6f40.js';
11
11
  import './core.get-iterator-method-ea258bb1.js';
@@ -18,8 +18,7 @@ import './index-3f5c03b2.js';
18
18
  import './slicedToArray-6ebcbfea.js';
19
19
  import 'react-bootstrap';
20
20
  import './urlFor.js';
21
- import './index-f0fc23eb.js';
22
- import './events-6c3a7a63.js';
21
+ import './index-5cc7b406.js';
23
22
  import 'next/router';
24
23
  import './index-c7e2ac95.js';
25
24
  import './util-8ed16d48.js';
@@ -15,7 +15,7 @@ import 'react-dom';
15
15
  import './slicedToArray-6ebcbfea.js';
16
16
  import './index-3f5c03b2.js';
17
17
 
18
- var css = ".VideoSeriesCard-module_article__Hlc3e {\n width: 100%;\n margin: 0 0 1rem 0;\n}\n.VideoSeriesCard-module_article__Hlc3e a {\n display: flex;\n width: 100%;\n color: #000000;\n}\n.VideoSeriesCard-module_thumb__3hGyJ {\n width: 25%;\n}\n.VideoSeriesCard-module_thumb__3hGyJ img {\n width: 100%;\n height: auto;\n}\n.VideoSeriesCard-module_info__2_i1N {\n width: 75%;\n font-size: 1rem;\n}\n.VideoSeriesCard-module_info__2_i1N h2 {\n font-weight: bold;\n font-size: 1.25rem;\n margin: 0;\n}\n.VideoSeriesCard-module_published__1fI0q {\n color: #6d6d6d;\n margin: 0;\n}\n.VideoSeriesCard-module_summary__3hWJT {\n margin: 0.5rem 0 0 0;\n}\n.VideoSeriesCard-module_author__aU35o {\n margin: 0;\n}\n.VideoSeriesCard-module_author__aU35o span {\n color: #6d6d6d;\n}\n@media only screen and (max-width: 568px) {\n .VideoSeriesCard-module_article__Hlc3e {\n margin: 1rem 0;\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\n }\n .VideoSeriesCard-module_article__Hlc3e a {\n flex-direction: column;\n align-items: center;\n }\n .VideoSeriesCard-module_thumb__3hGyJ {\n overflow: hidden;\n width: 100%;\n margin-bottom: 1rem;\n }\n .VideoSeriesCard-module_thumb__3hGyJ img{\n border-radius: 10px 10px 0 0; \n }\n .VideoSeriesCard-module_thumb__3hGyJ figure {\n margin: 0;\n }\n .VideoSeriesCard-module_info__2_i1N {\n width: 90%;\n padding: 1rem !important;\n }\n .VideoSeriesCard-module_info__2_i1N h2 {\n font-size: 1rem;\n }\n}\n";
18
+ var css = ".VideoSeriesCard-module_article__Hlc3e {\r\n width: 100%;\r\n margin: 0 0 1rem 0;\r\n}\r\n.VideoSeriesCard-module_article__Hlc3e a {\r\n display: flex;\r\n width: 100%;\r\n color: #000000;\r\n}\r\n.VideoSeriesCard-module_thumb__3hGyJ {\r\n width: 25%;\r\n}\r\n.VideoSeriesCard-module_thumb__3hGyJ img {\r\n width: 100%;\r\n height: auto;\r\n}\r\n.VideoSeriesCard-module_info__2_i1N {\r\n width: 75%;\r\n font-size: 1rem;\r\n}\r\n.VideoSeriesCard-module_info__2_i1N h2 {\r\n font-weight: bold;\r\n font-size: 1.25rem;\r\n margin: 0;\r\n}\r\n.VideoSeriesCard-module_published__1fI0q {\r\n color: #6d6d6d;\r\n margin: 0;\r\n}\r\n.VideoSeriesCard-module_summary__3hWJT {\r\n margin: 0.5rem 0 0 0;\r\n}\r\n.VideoSeriesCard-module_author__aU35o {\r\n margin: 0;\r\n}\r\n.VideoSeriesCard-module_author__aU35o span {\r\n color: #6d6d6d;\r\n}\r\n@media only screen and (max-width: 568px) {\r\n .VideoSeriesCard-module_article__Hlc3e {\r\n margin: 1rem 0;\r\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\r\n }\r\n .VideoSeriesCard-module_article__Hlc3e a {\r\n flex-direction: column;\r\n align-items: center;\r\n }\r\n .VideoSeriesCard-module_thumb__3hGyJ {\r\n overflow: hidden;\r\n width: 100%;\r\n margin-bottom: 1rem;\r\n }\r\n .VideoSeriesCard-module_thumb__3hGyJ img{\r\n border-radius: 10px 10px 0 0; \r\n }\r\n .VideoSeriesCard-module_thumb__3hGyJ figure {\r\n margin: 0;\r\n }\r\n .VideoSeriesCard-module_info__2_i1N {\r\n width: 90%;\r\n padding: 1rem !important;\r\n }\r\n .VideoSeriesCard-module_info__2_i1N h2 {\r\n font-size: 1rem;\r\n }\r\n}\r\n";
19
19
  var styles = { "article": "VideoSeriesCard-module_article__Hlc3e", "thumb": "VideoSeriesCard-module_thumb__3hGyJ", "info": "VideoSeriesCard-module_info__2_i1N", "published": "VideoSeriesCard-module_published__1fI0q", "summary": "VideoSeriesCard-module_summary__3hWJT", "author": "VideoSeriesCard-module_author__aU35o" };
20
20
  styleInject(css);
21
21
 
@@ -20,8 +20,7 @@ import './extends-6d8e3924.js';
20
20
  import './inherits-a6ba2ec4.js';
21
21
  import './_object-sap-7cee6f84.js';
22
22
  import './define-property-5f1bda73.js';
23
- import './index-f0fc23eb.js';
24
- import './events-6c3a7a63.js';
23
+ import './index-5cc7b406.js';
25
24
  import 'prop-types';
26
25
  import 'react-bootstrap/Container';
27
26
  import 'react-bootstrap/Row';
@@ -36,13 +35,13 @@ import './index.es-a6137319.js';
36
35
  import './visibility-sensor-72fd8f8b.js';
37
36
  import 'react-dom';
38
37
  import './index-3f5c03b2.js';
39
- import './ADlgInfeed-dc36c928.js';
38
+ import './ADlgInfeed-5fb3b724.js';
40
39
  import './AdSlot.js';
41
40
  import './Beam.js';
42
41
  import './stringify-2b084bee.js';
43
42
  import './Segment.js';
44
43
  import './main-1894c974.js';
45
- import './ADInfeed-6d1fc6bf.js';
44
+ import './ADInfeed-0852ff35.js';
46
45
  import './index-755f2cc2.js';
47
46
  import './urlFor.js';
48
47
  import './style-inject.es-1f59c1d0.js';
@@ -1,7 +1,7 @@
1
1
  import { _ as _extends } from './extends-6d8e3924.js';
2
2
  import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-a6ba2ec4.js';
3
3
  import React__default from 'react';
4
- import { l as lib_3 } from './index-f0fc23eb.js';
4
+ import { l as lib_3 } from './index-5cc7b406.js';
5
5
  import Container from 'react-bootstrap/Container';
6
6
  import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
7
7
  import { I as IoIosArrowForward } from './index.esm-eb1e8e80.js';
@@ -19,7 +19,6 @@ import './typeof-e9fc0c5d.js';
19
19
  import './web.dom.iterable-ab4dea5c.js';
20
20
  import './_is-array-8d21b9e3.js';
21
21
  import './_library-528f1934.js';
22
- import './events-6c3a7a63.js';
23
22
  import 'prop-types';
24
23
  import 'react-dom';
25
24
  import './iconBase-ccc56b97.js';