@mjhls/mjh-framework 1.0.651 → 1.0.653

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 (156) hide show
  1. package/README.md +172 -172
  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 +4 -4
  6. package/dist/cjs/ADFloatingFooter.js +5 -5
  7. package/dist/cjs/ADGutter.js +2 -2
  8. package/dist/cjs/ADSkyscraper.js +2 -2
  9. package/dist/cjs/ADSponsoredResources.js +2 -2
  10. package/dist/cjs/ADWebcast.js +2 -2
  11. package/dist/cjs/ADWelcome.js +2 -2
  12. package/dist/cjs/AdSlot.js +2 -2
  13. package/dist/cjs/AdSlotsProvider.js +1 -1
  14. package/dist/cjs/ArticleSeriesListing.js +4 -4
  15. package/dist/cjs/Auth.js +507 -256
  16. package/dist/cjs/{BlockContent-091a991f.js → BlockContent-88f69acd.js} +1 -1
  17. package/dist/cjs/CMEDeck.js +5 -5
  18. package/dist/cjs/Column3.js +4 -4
  19. package/dist/cjs/ConferenceArticleCard.js +17 -17
  20. package/dist/cjs/DeckContent.js +15 -15
  21. package/dist/cjs/DeckQueue.js +6 -6
  22. package/dist/cjs/{Dfp-390337bf.js → Dfp-b2bc3b97.js} +1 -1
  23. package/dist/cjs/EventsDeck.js +22 -22
  24. package/dist/cjs/ExternalResources.js +7 -7
  25. package/dist/cjs/Feature.js +3 -3
  26. package/dist/cjs/ForbesHero.js +2 -2
  27. package/dist/cjs/GridContent.js +18 -16
  28. package/dist/cjs/GridHero.js +2 -2
  29. package/dist/cjs/GroupDeck.js +1 -1
  30. package/dist/cjs/HamMagazine.js +13 -13
  31. package/dist/cjs/Hero.js +1 -1
  32. package/dist/cjs/HorizontalHero.js +2 -2
  33. package/dist/cjs/IssueContentDeck.js +2 -2
  34. package/dist/cjs/IssueDeck.js +2 -2
  35. package/dist/cjs/IssueLanding.js +39 -37
  36. package/dist/cjs/KMTracker.js +15 -15
  37. package/dist/cjs/LeftNav.js +2 -2
  38. package/dist/cjs/MasterDeck.js +16 -16
  39. package/dist/cjs/NavMagazine.js +14 -14
  40. package/dist/cjs/NavNative.js +11 -11
  41. package/dist/cjs/OncliveHero.js +2 -2
  42. package/dist/cjs/OncliveLargeHero.js +2 -2
  43. package/dist/cjs/PartnerDetailListing.js +16 -1212
  44. package/dist/cjs/PublicationDeck.js +1 -1
  45. package/dist/cjs/PublicationLanding.js +33 -33
  46. package/dist/cjs/QueueDeckExpanded.js +22 -19
  47. package/dist/cjs/RecentNews.js +2 -2
  48. package/dist/cjs/RelatedContent.js +30 -30
  49. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  50. package/dist/cjs/SideFooter.js +2 -2
  51. package/dist/cjs/{SocialSearchComponent-81a50f81.js → SocialSearchComponent-962b1344.js} +5 -5
  52. package/dist/cjs/TaxonomyCard.js +2 -2
  53. package/dist/cjs/TemplateNormal.js +3 -3
  54. package/dist/cjs/ThumbnailCard.js +1 -1
  55. package/dist/cjs/Ustream.js +2 -2
  56. package/dist/cjs/VerticalHero.js +2 -2
  57. package/dist/cjs/VideoSeriesCard.js +3 -3
  58. package/dist/cjs/VideoSeriesListing.js +3 -3
  59. package/dist/cjs/View.js +43 -43
  60. package/dist/cjs/YahooHero.js +2 -2
  61. package/dist/cjs/YoutubeGroup.js +5 -5
  62. package/dist/cjs/getContentCategory-f38a4c00.js +11 -0
  63. package/dist/cjs/getRelatedArticle.js +19 -359
  64. package/dist/cjs/getSerializers.js +6 -6
  65. package/dist/cjs/{getTargeting-bf55f61b.js → getTargeting-fee8c429.js} +11 -11
  66. package/dist/cjs/getTargeting.js +1 -1
  67. package/dist/cjs/{index-099d45ae.js → index-2d0a4911.js} +4 -6
  68. package/dist/cjs/{index-3294d3bc.js → index-5be2866f.js} +1 -1
  69. package/dist/cjs/{index-6268b081.js → index-94418bc4.js} +462 -450
  70. package/dist/cjs/{index-be0c82be.js → index-b5eb3ff8.js} +20 -19
  71. package/dist/cjs/{index.es-9110add6.js → index.es-ab3f2690.js} +3 -1
  72. package/dist/cjs/index.js +17 -15
  73. package/dist/cjs/{main-a4cb15bb.js → main-b6c96c8d.js} +67 -36
  74. package/dist/cjs/{moment-575fe24c.js → moment-66a6a284.js} +1 -1
  75. package/dist/cjs/urlFor.js +1 -1
  76. package/dist/esm/AD.js +1 -1
  77. package/dist/esm/AD300x250.js +3 -3
  78. package/dist/esm/AD300x250x600.js +3 -3
  79. package/dist/esm/AD728x90.js +4 -4
  80. package/dist/esm/ADFloatingFooter.js +5 -5
  81. package/dist/esm/ADGutter.js +2 -2
  82. package/dist/esm/ADSkyscraper.js +2 -2
  83. package/dist/esm/ADSponsoredResources.js +2 -2
  84. package/dist/esm/ADWebcast.js +2 -2
  85. package/dist/esm/ADWelcome.js +2 -2
  86. package/dist/esm/AdSlot.js +2 -2
  87. package/dist/esm/AdSlotsProvider.js +1 -1
  88. package/dist/esm/ArticleSeriesListing.js +4 -4
  89. package/dist/esm/Auth.js +499 -248
  90. package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-a614acdf.js} +1 -1
  91. package/dist/esm/CMEDeck.js +5 -5
  92. package/dist/esm/Column3.js +4 -4
  93. package/dist/esm/ConferenceArticleCard.js +17 -17
  94. package/dist/esm/DeckContent.js +15 -15
  95. package/dist/esm/DeckQueue.js +6 -6
  96. package/dist/esm/{Dfp-741c01be.js → Dfp-8a8fca18.js} +1 -1
  97. package/dist/esm/EventsDeck.js +22 -22
  98. package/dist/esm/ExternalResources.js +7 -7
  99. package/dist/esm/Feature.js +3 -3
  100. package/dist/esm/ForbesHero.js +2 -2
  101. package/dist/esm/GridContent.js +18 -16
  102. package/dist/esm/GridHero.js +2 -2
  103. package/dist/esm/GroupDeck.js +1 -1
  104. package/dist/esm/HamMagazine.js +13 -13
  105. package/dist/esm/Hero.js +1 -1
  106. package/dist/esm/HorizontalHero.js +2 -2
  107. package/dist/esm/IssueContentDeck.js +2 -2
  108. package/dist/esm/IssueDeck.js +2 -2
  109. package/dist/esm/IssueLanding.js +39 -37
  110. package/dist/esm/KMTracker.js +15 -15
  111. package/dist/esm/LeftNav.js +2 -2
  112. package/dist/esm/MasterDeck.js +16 -16
  113. package/dist/esm/NavMagazine.js +14 -14
  114. package/dist/esm/NavNative.js +11 -11
  115. package/dist/esm/OncliveHero.js +2 -2
  116. package/dist/esm/OncliveLargeHero.js +2 -2
  117. package/dist/esm/PartnerDetailListing.js +14 -1209
  118. package/dist/esm/PublicationDeck.js +1 -1
  119. package/dist/esm/PublicationLanding.js +33 -33
  120. package/dist/esm/QueueDeckExpanded.js +22 -19
  121. package/dist/esm/RecentNews.js +2 -2
  122. package/dist/esm/RelatedContent.js +30 -30
  123. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  124. package/dist/esm/SideFooter.js +2 -2
  125. package/dist/esm/{SocialSearchComponent-55960ec4.js → SocialSearchComponent-75527dfe.js} +5 -5
  126. package/dist/esm/TaxonomyCard.js +2 -2
  127. package/dist/esm/TemplateNormal.js +3 -3
  128. package/dist/esm/ThumbnailCard.js +1 -1
  129. package/dist/esm/Ustream.js +2 -2
  130. package/dist/esm/VerticalHero.js +2 -2
  131. package/dist/esm/VideoSeriesCard.js +3 -3
  132. package/dist/esm/VideoSeriesListing.js +3 -3
  133. package/dist/esm/View.js +17 -17
  134. package/dist/esm/YahooHero.js +2 -2
  135. package/dist/esm/YoutubeGroup.js +5 -5
  136. package/dist/esm/getContentCategory-15dcc413.js +9 -0
  137. package/dist/esm/getRelatedArticle.js +19 -359
  138. package/dist/esm/getSerializers.js +6 -6
  139. package/dist/esm/{getTargeting-d965e979.js → getTargeting-2acdec91.js} +9 -9
  140. package/dist/esm/getTargeting.js +1 -1
  141. package/dist/esm/{index-73819142.js → index-51a80699.js} +20 -19
  142. package/dist/esm/{index-3f4dd6f2.js → index-93ec3c59.js} +4 -6
  143. package/dist/esm/{index-ef6d5dcf.js → index-d2f90501.js} +1 -1
  144. package/dist/esm/{index-d40ad8fd.js → index-d493a594.js} +462 -450
  145. package/dist/esm/{index.es-29c1cef5.js → index.es-938a3a58.js} +3 -1
  146. package/dist/esm/index.js +16 -14
  147. package/dist/esm/{main-5d1e4bd3.js → main-0465b2a0.js} +65 -34
  148. package/dist/esm/{moment-e2f9b20c.js → moment-12415288.js} +1 -1
  149. package/dist/esm/urlFor.js +1 -1
  150. package/package.json +107 -107
  151. package/dist/cjs/index-bd6c9f56.js +0 -211
  152. package/dist/esm/index-db3bb315.js +0 -207
  153. /package/dist/cjs/{ADInfeed-f886da72.js → ADInfeed-eaa6c661.js} +0 -0
  154. /package/dist/cjs/{ADlgInfeed-7aa459cc.js → ADlgInfeed-f25eb4f7.js} +0 -0
  155. /package/dist/esm/{ADInfeed-67097b02.js → ADInfeed-c27997a3.js} +0 -0
  156. /package/dist/esm/{ADlgInfeed-0bd34fef.js → ADlgInfeed-41c3909c.js} +0 -0
@@ -5,7 +5,7 @@ import Row from 'react-bootstrap/Row';
5
5
  import Col from 'react-bootstrap/Col';
6
6
  import Card from 'react-bootstrap/Card';
7
7
  import 'react-dom';
8
- import { i as imageUrlBuilder } from './index-73819142.js';
8
+ import { i as imageUrlBuilder } from './index-51a80699.js';
9
9
  import { L as LazyLoad } from './index-5f9f807a.js';
10
10
  import { l as lodash } from './lodash-17fdfebb.js';
11
11
  import Button from 'react-bootstrap/Button';
@@ -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 PublicationLanding = function PublicationLanding(props) {
@@ -9,19 +9,19 @@ import './_object-pie-71ac75a4.js';
9
9
  import { _ as _extends } from './extends-cc5da797.js';
10
10
  import './web.dom.iterable-8956f9a5.js';
11
11
  import React__default, { useEffect, useState, useRef } from 'react';
12
- import { l as lib_3 } from './index-3f4dd6f2.js';
12
+ import { l as lib_3 } from './index-93ec3c59.js';
13
13
  import 'prop-types';
14
14
  import 'react-bootstrap/Card';
15
- import { m as moment } from './moment-e2f9b20c.js';
15
+ import { m as moment } from './moment-12415288.js';
16
16
  import { useRouter } from 'next/router';
17
17
  import './isSymbol-807e927e.js';
18
18
  import './debounce-1a993acf.js';
19
- import { I as InfiniteScroll } from './index.es-29c1cef5.js';
19
+ import { I as InfiniteScroll } from './index.es-938a3a58.js';
20
20
  import 'react-dom';
21
21
  import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
22
- import { i as imageUrlBuilder } from './index-73819142.js';
22
+ import { i as imageUrlBuilder } from './index-51a80699.js';
23
23
  import { L as LazyLoad } from './index-5f9f807a.js';
24
- import { m as main_36 } from './main-5d1e4bd3.js';
24
+ import { m as main_39 } from './main-0465b2a0.js';
25
25
  import { c as clean_html_1 } from './entities-7cc3bf45.js';
26
26
  import './stringify-008c8802.js';
27
27
  import { _ as _slicedToArray } from './slicedToArray-7021e5df.js';
@@ -29,9 +29,10 @@ import './asyncToGenerator-7c654f36.js';
29
29
  import './_set-species-cede29f8.js';
30
30
  import './beam-681a9749.js';
31
31
  import './AdSlot.js';
32
- import { A as ADInfeed } from './ADInfeed-67097b02.js';
32
+ import { A as ADInfeed } from './ADInfeed-c27997a3.js';
33
33
  import { l as lodash } from './lodash-17fdfebb.js';
34
- import { A as ADlgInfeed } from './ADlgInfeed-0bd34fef.js';
34
+ import { A as ADlgInfeed } from './ADlgInfeed-41c3909c.js';
35
+ import { g as getContentCategory } from './getContentCategory-15dcc413.js';
35
36
  import { A as AuthorComponent } from './AuthorComponent-00f13201.js';
36
37
  import { Container, Media } from 'react-bootstrap';
37
38
 
@@ -148,7 +149,7 @@ var checkExternalUrl = function checkExternalUrl(url) {
148
149
  return new RegExp(['http', 'https'].join('|')).test(url);
149
150
  };
150
151
 
151
- var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, imageHeight, imageWidth, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, lgInfeedAd, showPubInfo) {
152
+ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, imageHeight, imageWidth, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, lgInfeedAd, showPubInfo, contentCategoryMapping) {
152
153
  var numberOfItemsBeforeAd = 6;
153
154
  var insertBrandInsightAd = function insertBrandInsightAd(arr, index, newElement) {
154
155
  return [].concat(_toConsumableArray(arr.slice(0, index)), [newElement], _toConsumableArray(arr.slice(index)));
@@ -335,7 +336,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
335
336
  padding: '0 .25rem',
336
337
  fontSize: '.8rem'
337
338
  } },
338
- article.contentCategory.name.slice(0, article.contentCategory.name.length - 1)
339
+ getContentCategory(article.contentCategory.name, contentCategoryMapping)
339
340
  ),
340
341
  article.issueSection && article.issueSection.name && React__default.createElement(
341
342
  'p',
@@ -458,7 +459,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
458
459
  padding: '0 .25rem',
459
460
  fontSize: '.8rem'
460
461
  } },
461
- article.contentCategory.name.slice(0, article.contentCategory.name.length - 1)
462
+ getContentCategory(article.contentCategory.name, contentCategoryMapping)
462
463
  ),
463
464
  article.issueSection && article.issueSection.name && React__default.createElement(
464
465
  'p',
@@ -590,7 +591,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
590
591
  padding: '0 .25rem',
591
592
  fontSize: '.8rem'
592
593
  } },
593
- article.contentCategory.name.slice(0, article.contentCategory.name.length - 1)
594
+ getContentCategory(article.contentCategory.name, contentCategoryMapping)
594
595
  ),
595
596
  article.issueSection && article.issueSection.name && React__default.createElement(
596
597
  'p',
@@ -632,7 +633,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
632
633
  React__default.createElement(
633
634
  'div',
634
635
  null,
635
- main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd(index, numberOfItemsBeforeAd, rightItems)
636
+ main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd(index, numberOfItemsBeforeAd, rightItems)
636
637
  )
637
638
  )
638
639
  );
@@ -730,7 +731,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
730
731
  padding: '0 .25rem',
731
732
  fontSize: '.8rem'
732
733
  } },
733
- article.contentCategory.name.slice(0, article.contentCategory.name.length - 1)
734
+ getContentCategory(article.contentCategory.name, contentCategoryMapping)
734
735
  ),
735
736
  article.issueSection && article.issueSection.name && React__default.createElement(
736
737
  'p',
@@ -853,7 +854,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
853
854
  padding: '0 .25rem',
854
855
  fontSize: '.8rem'
855
856
  } },
856
- article.contentCategory.name.slice(0, article.contentCategory.name.length - 1)
857
+ getContentCategory(article.contentCategory.name, contentCategoryMapping)
857
858
  ),
858
859
  article.issueSection && article.issueSection.name && React__default.createElement(
859
860
  'p',
@@ -985,7 +986,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
985
986
  padding: '0 .25rem',
986
987
  fontSize: '.8rem'
987
988
  } },
988
- article.contentCategory.name.slice(0, article.contentCategory.name.length - 1)
989
+ getContentCategory(article.contentCategory.name, contentCategoryMapping)
989
990
  ),
990
991
  article.issueSection && article.issueSection.name && React__default.createElement(
991
992
  'p',
@@ -1027,7 +1028,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
1027
1028
  React__default.createElement(
1028
1029
  'div',
1029
1030
  null,
1030
- main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd(index, numberOfItemsBeforeAd, rightItems)
1031
+ main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd(index, numberOfItemsBeforeAd, rightItems)
1031
1032
  )
1032
1033
  )
1033
1034
  );
@@ -1122,7 +1123,9 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
1122
1123
  _props$lgInfeedAd = props.lgInfeedAd,
1123
1124
  lgInfeedAd = _props$lgInfeedAd === undefined ? false : _props$lgInfeedAd,
1124
1125
  _props$showPubInfo = props.showPubInfo,
1125
- showPubInfo = _props$showPubInfo === undefined ? false : _props$showPubInfo;
1126
+ showPubInfo = _props$showPubInfo === undefined ? false : _props$showPubInfo,
1127
+ _props$contentCategor = props.contentCategoryMapping,
1128
+ contentCategoryMapping = _props$contentCategor === undefined ? [] : _props$contentCategor;
1126
1129
  var initialCurrentPage = props.currentPage,
1127
1130
  showPublished = props.showPublished;
1128
1131
 
@@ -1239,7 +1242,7 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
1239
1242
  React__default.createElement(
1240
1243
  Container,
1241
1244
  null,
1242
- cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, imageHeight, imageWidth, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, lgInfeedAd, showPubInfo)
1245
+ cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, imageHeight, imageWidth, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, lgInfeedAd, showPubInfo, contentCategoryMapping)
1243
1246
  )
1244
1247
  ),
1245
1248
  React__default.createElement(
@@ -1253,7 +1256,7 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
1253
1256
  React__default.createElement(
1254
1257
  Container,
1255
1258
  null,
1256
- cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, lgInfeedAd, showPubInfo)
1259
+ cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage, showPublished, defaultImage, showAuthor, showCategory, rightItems, brandInsightAd, showBI, itemsPerPage, heroContent, lgInfeedAd, showPubInfo, contentCategoryMapping)
1257
1260
  ),
1258
1261
  React__default.createElement(
1259
1262
  'div',
@@ -1,7 +1,7 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
2
  import React__default from 'react';
3
- import './moment-e2f9b20c.js';
4
- import { i as imageUrlBuilder } from './index-73819142.js';
3
+ import './moment-12415288.js';
4
+ import { i as imageUrlBuilder } from './index-51a80699.js';
5
5
  import './iconBase-602d52fe.js';
6
6
  import { a as FaLongArrowAltRight } from './index.esm-9a4c8813.js';
7
7
 
@@ -1,40 +1,40 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
2
  import React__default from 'react';
3
3
  import 'prop-types';
4
- import { m as moment } from './moment-e2f9b20c.js';
4
+ import { m as moment } from './moment-12415288.js';
5
5
  import 'react-dom';
6
- import { i as imageUrlBuilder } from './index-73819142.js';
6
+ import { i as imageUrlBuilder } from './index-51a80699.js';
7
7
  import { L as LazyLoad } from './index-5f9f807a.js';
8
8
  import 'react-bootstrap/Media';
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,
@@ -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) {
@@ -35,8 +35,8 @@ var renderLink = function renderLink(row) {
35
35
  };
36
36
 
37
37
  var SideFooter = function SideFooter(props) {
38
- /*
39
- useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
38
+ /*
39
+ useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
40
40
  */
41
41
  var _get = get_1(props, 'cache.siteSettingCache', {}),
42
42
  socialLinks = _get.socialLinks,
@@ -1,5 +1,5 @@
1
1
  import React__default, { useState, useRef, useEffect } from 'react';
2
- import { d as main_30, a as main_37 } from './main-5d1e4bd3.js';
2
+ import { d as main_31, a as main_40 } from './main-0465b2a0.js';
3
3
  import { _ as _slicedToArray } from './slicedToArray-7021e5df.js';
4
4
  import { I as IconContext } from './iconBase-602d52fe.js';
5
5
  import Button from 'react-bootstrap/Button';
@@ -40,7 +40,7 @@ var SocialSearchComponent = function SocialSearchComponent(_ref) {
40
40
  var mastNav = document.querySelector('.nav-brands');
41
41
  var topOffset = 0;
42
42
  // Checking for non-IOS devices before setting the offset position.
43
- if (window && window.innerWidth < 1200 && mastNav && mastNav.offsetHeight && !main_30) topOffset = topOffset + mastNav.offsetHeight;
43
+ if (window && window.innerWidth < 1200 && mastNav && mastNav.offsetHeight && !main_31) topOffset = topOffset + mastNav.offsetHeight;
44
44
  if (navWrapper && navWrapper.offsetHeight) topOffset = topOffset + navWrapper.offsetHeight;
45
45
  setTopOffset(topOffset + 2);
46
46
 
@@ -68,14 +68,14 @@ var SocialSearchComponent = function SocialSearchComponent(_ref) {
68
68
  var searchBtn = document.getElementsByClassName(selector)[0];
69
69
  if (searchBtn && searchBtn.classList && searchBtn.classList.contains(addOn)) {
70
70
  // Set overflow fix for iPhones safari browsers
71
- if (main_37 || window.innerWidth < 1200 && main_30) {
71
+ if (main_40 || window.innerWidth < 1200 && main_31) {
72
72
  var mainNav = document.querySelector('#navbar-ham');
73
73
  if (mainNav && mainNav.style) mainNav.style.overflow = 'auto';
74
74
  }
75
75
  searchBtn.classList.remove(addOn);
76
76
  } else if (searchBtn && searchBtn.classList) {
77
77
  // Set overflow fix for iPhones safari browsers
78
- if (main_37 || window.innerWidth < 1200 && main_30) {
78
+ if (main_40 || window.innerWidth < 1200 && main_31) {
79
79
  var _mainNav = document.querySelector('#navbar-ham');
80
80
  if (_mainNav && _mainNav.style) _mainNav.style.overflow = 'visible';
81
81
  }
@@ -177,7 +177,7 @@ var SocialSearchComponent = function SocialSearchComponent(_ref) {
177
177
  React__default.createElement(
178
178
  'style',
179
179
  { jsx: 'true' },
180
- '\n #search-content-mobile {\n display: flex;\n z-index: 999;\n }\n @media screen and (min-width: 1200px) {\n #search-content-mobile {\n display: none;\n }\n }\n #search-content-mobile .search-btn-mobile {\n padding: 5px;\n right: 4%;\n height: 35px;\n width: 35px;\n margin-top: 4px;\n cursor: pointer;\n }\n #search-content-mobile #search-bar-mobile {\n position: ' + (main_30 ? 'absolute' : 'fixed') + ';\n display: none;\n left: 0px;\n width: 100%;\n border-radius: 5px;\n padding: 10px;\n background-color: var(--primary);\n }\n #search-content-mobile #search-bar-mobile .form-inline {\n margin-top: 0px;\n width: 100% !important;\n }\n #search-content-mobile #search-bar-mobile .form-inline .form-control {\n width: 78%;\n border-radius: 5px;\n height: 45px;\n }\n #search-content-mobile #search-bar-mobile .form-inline .btn {\n width: 20%;\n border-radius: 5px;\n background-color: #040c5a;\n height: 45px;\n margin-left: 5px;\n padding: 1px;\n }\n #search-content-mobile .search-btn-mobile.active-search {\n border-radius: 5px;\n border: 1px solid var(--secondary);\n }\n #search-content-mobile #search-bar-mobile.show {\n display: block !important;\n }\n '
180
+ '\n #search-content-mobile {\n display: flex;\n z-index: 999;\n }\n @media screen and (min-width: 1200px) {\n #search-content-mobile {\n display: none;\n }\n }\n #search-content-mobile .search-btn-mobile {\n padding: 5px;\n right: 4%;\n height: 35px;\n width: 35px;\n margin-top: 4px;\n cursor: pointer;\n }\n #search-content-mobile #search-bar-mobile {\n position: ' + (main_31 ? 'absolute' : 'fixed') + ';\n display: none;\n left: 0px;\n width: 100%;\n border-radius: 5px;\n padding: 10px;\n background-color: var(--primary);\n }\n #search-content-mobile #search-bar-mobile .form-inline {\n margin-top: 0px;\n width: 100% !important;\n }\n #search-content-mobile #search-bar-mobile .form-inline .form-control {\n width: 78%;\n border-radius: 5px;\n height: 45px;\n }\n #search-content-mobile #search-bar-mobile .form-inline .btn {\n width: 20%;\n border-radius: 5px;\n background-color: #040c5a;\n height: 45px;\n margin-left: 5px;\n padding: 1px;\n }\n #search-content-mobile .search-btn-mobile.active-search {\n border-radius: 5px;\n border: 1px solid var(--secondary);\n }\n #search-content-mobile #search-bar-mobile.show {\n display: block !important;\n }\n '
181
181
  )
182
182
  );
183
183
  };
@@ -9,9 +9,9 @@ import Row from 'react-bootstrap/Row';
9
9
  import Col from 'react-bootstrap/Col';
10
10
  import Card from 'react-bootstrap/Card';
11
11
  import 'react-dom';
12
- import { i as imageUrlBuilder } from './index-73819142.js';
12
+ import { i as imageUrlBuilder } from './index-51a80699.js';
13
13
  import { L as LazyLoad } from './index-5f9f807a.js';
14
- import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
14
+ import { B as BlockContent } from './BlockContent-a614acdf.js';
15
15
  import { r as reactSocialIcons_1 } from './react-social-icons-a7d5c5c7.js';
16
16
 
17
17
  var TaxonomyCard = function TaxonomyCard(props) {
@@ -7,7 +7,7 @@ import './core.get-iterator-method-54d2e411.js';
7
7
  import './define-property-de3fc946.js';
8
8
  import './web.dom.iterable-8956f9a5.js';
9
9
  import React__default, { useState, useEffect } from 'react';
10
- import './index-3f4dd6f2.js';
10
+ import './index-93ec3c59.js';
11
11
  import 'prop-types';
12
12
  import Container from 'react-bootstrap/Container';
13
13
  import 'react-bootstrap/Row';
@@ -15,7 +15,7 @@ import 'react-bootstrap/Col';
15
15
  import { useRouter } from 'next/router';
16
16
  import './isSymbol-807e927e.js';
17
17
  import './debounce-1a993acf.js';
18
- import './main-5d1e4bd3.js';
18
+ import './main-0465b2a0.js';
19
19
  import './stringify-008c8802.js';
20
20
  import { _ as _slicedToArray } from './slicedToArray-7021e5df.js';
21
21
  import './asyncToGenerator-7c654f36.js';
@@ -50,7 +50,7 @@ import './NavFooter-e27bd93b.js';
50
50
  import './index.esm-73e847d2.js';
51
51
  import './SocialIcons.js';
52
52
  import 'react-bootstrap/FormControl';
53
- import './SocialSearchComponent-55960ec4.js';
53
+ import './SocialSearchComponent-75527dfe.js';
54
54
  import MagazineNav from './NavMagazine.js';
55
55
  import { NavNative } from './NavNative.js';
56
56
  import './Search.js';
@@ -2,7 +2,7 @@ import './_commonjsHelpers-0c4b6f40.js';
2
2
  import React__default from 'react';
3
3
  import 'prop-types';
4
4
  import 'react-dom';
5
- import { i as imageUrlBuilder } from './index-73819142.js';
5
+ import { i as imageUrlBuilder } from './index-51a80699.js';
6
6
  import { L as LazyLoad } from './index-5f9f807a.js';
7
7
  import { c as clean_html_1 } from './entities-7cc3bf45.js';
8
8
  import Media from 'react-bootstrap/Media';
@@ -4,7 +4,7 @@ import './es6.string.iterator-9b2af4a5.js';
4
4
  import './core.get-iterator-method-54d2e411.js';
5
5
  import './web.dom.iterable-8956f9a5.js';
6
6
  import React__default, { useState, useRef, useEffect } from 'react';
7
- import { m as main_36 } from './main-5d1e4bd3.js';
7
+ import { m as main_39 } from './main-0465b2a0.js';
8
8
  import { _ as _slicedToArray } from './slicedToArray-7021e5df.js';
9
9
  import './iconBase-602d52fe.js';
10
10
  import { c as IoIosOpen } from './index.esm-85cb09e6.js';
@@ -65,7 +65,7 @@ var Ustream = function Ustream(_ref) {
65
65
  } catch (err) {}
66
66
  }, []);
67
67
  //return nothing if mobile
68
- if (main_36) {
68
+ if (main_39) {
69
69
  return null;
70
70
  }
71
71
  return React__default.createElement(
@@ -1,7 +1,7 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
2
  import React__default from 'react';
3
- import './moment-e2f9b20c.js';
4
- import { i as imageUrlBuilder } from './index-73819142.js';
3
+ import './moment-12415288.js';
4
+ import { i as imageUrlBuilder } from './index-51a80699.js';
5
5
 
6
6
  var VerticalHero = function VerticalHero(props) {
7
7
  var client = props.client;
@@ -8,13 +8,13 @@ import { _ as _typeof } from './typeof-08f2c380.js';
8
8
  import './_is-array-49698029.js';
9
9
  import React__default from 'react';
10
10
  import 'prop-types';
11
- import { m as moment } from './moment-e2f9b20c.js';
11
+ import { m as moment } from './moment-12415288.js';
12
12
  import 'react-dom';
13
- import { i as imageUrlBuilder } from './index-73819142.js';
13
+ import { i as imageUrlBuilder } from './index-51a80699.js';
14
14
  import { L as LazyLoad } from './index-5f9f807a.js';
15
15
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
16
16
 
17
- 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";
17
+ 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";
18
18
  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" };
19
19
  styleInject(css);
20
20
 
@@ -12,16 +12,16 @@ import './web.dom.iterable-8956f9a5.js';
12
12
  import './typeof-08f2c380.js';
13
13
  import './_is-array-49698029.js';
14
14
  import React__default from 'react';
15
- import { l as lib_3 } from './index-3f4dd6f2.js';
15
+ import { l as lib_3 } from './index-93ec3c59.js';
16
16
  import 'prop-types';
17
17
  import Container from 'react-bootstrap/Container';
18
18
  import { withRouter } from 'next/router';
19
19
  import './isSymbol-807e927e.js';
20
20
  import { d as debounce_1 } from './debounce-1a993acf.js';
21
- import { I as InfiniteScroll } from './index.es-29c1cef5.js';
21
+ import { I as InfiniteScroll } from './index.es-938a3a58.js';
22
22
  import 'react-dom';
23
23
  import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
24
- import './index-73819142.js';
24
+ import './index-51a80699.js';
25
25
  import './index-5f9f807a.js';
26
26
  import './slicedToArray-7021e5df.js';
27
27
  import './smoothscroll-4b699764.js';