@mjhls/mjh-framework 1.0.642-iOS-mobile-fix → 1.0.642-multi-doc-group

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 (160) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +5 -5
  4. package/dist/cjs/AD300x250x600.js +5 -5
  5. package/dist/cjs/AD728x90.js +6 -6
  6. package/dist/cjs/ADFloatingFooter.js +4 -4
  7. package/dist/cjs/ADGutter.js +4 -4
  8. package/dist/cjs/ADSkyscraper.js +4 -4
  9. package/dist/cjs/ADSponsoredResources.js +4 -4
  10. package/dist/cjs/ADWebcast.js +4 -4
  11. package/dist/cjs/ADWelcome.js +4 -4
  12. package/dist/cjs/AdSlot.js +4 -4
  13. package/dist/cjs/AdSlotsProvider.js +1 -1
  14. package/dist/cjs/ArticleSeriesListing.js +6 -6
  15. package/dist/cjs/Auth.js +506 -255
  16. package/dist/cjs/{BlockContent-80b15fac.js → BlockContent-88f69acd.js} +1 -1
  17. package/dist/cjs/CMEDeck.js +7 -7
  18. package/dist/cjs/Column2.js +2 -3
  19. package/dist/cjs/Column3.js +7 -8
  20. package/dist/cjs/ConferenceArticleCard.js +13 -29
  21. package/dist/cjs/DeckContent.js +9 -9
  22. package/dist/cjs/DeckQueue.js +9 -10
  23. package/dist/cjs/{Dfp-7a66946e.js → Dfp-b2bc3b97.js} +3 -3
  24. package/dist/cjs/EventsDeck.js +5 -5
  25. package/dist/cjs/ExternalResources.js +9 -9
  26. package/dist/cjs/Feature.js +3 -3
  27. package/dist/cjs/ForbesHero.js +2 -2
  28. package/dist/cjs/GridContent.js +14 -15
  29. package/dist/cjs/GridHero.js +2 -2
  30. package/dist/cjs/GroupDeck.js +1 -1
  31. package/dist/cjs/HamMagazine.js +4 -4
  32. package/dist/cjs/Hero.js +1 -1
  33. package/dist/cjs/HorizontalHero.js +2 -2
  34. package/dist/cjs/IssueContentDeck.js +2 -2
  35. package/dist/cjs/IssueDeck.js +2 -2
  36. package/dist/cjs/IssueLanding.js +10 -10
  37. package/dist/cjs/LeftNav.js +4 -4
  38. package/dist/cjs/MasterDeck.js +11 -11
  39. package/dist/cjs/NavMagazine.js +5 -5
  40. package/dist/cjs/NavNative.js +2 -2
  41. package/dist/cjs/OncliveHero.js +2 -2
  42. package/dist/cjs/OncliveLargeHero.js +2 -2
  43. package/dist/cjs/PartnerDetailListing.js +16 -1213
  44. package/dist/cjs/PublicationDeck.js +2 -2
  45. package/dist/cjs/QueueDeckExpanded.js +12 -12
  46. package/dist/cjs/RecentNews.js +2 -2
  47. package/dist/cjs/RelatedContent.js +2 -32
  48. package/dist/cjs/SideFooter.js +2 -3
  49. package/dist/cjs/{SocialSearchComponent-b52e39a7.js → SocialSearchComponent-bf750093.js} +5 -5
  50. package/dist/cjs/TaxonomyCard.js +2 -2
  51. package/dist/cjs/TemplateNormal.js +6 -7
  52. package/dist/cjs/ThumbnailCard.js +1 -1
  53. package/dist/cjs/Ustream.js +2 -2
  54. package/dist/cjs/VerticalHero.js +2 -2
  55. package/dist/cjs/VideoSeriesCard.js +2 -2
  56. package/dist/cjs/VideoSeriesListing.js +5 -5
  57. package/dist/cjs/View.js +48 -40
  58. package/dist/cjs/YahooHero.js +2 -2
  59. package/dist/cjs/YoutubeGroup.js +1 -1
  60. package/dist/cjs/{debounce-32e57002.js → debounce-eb287781.js} +1 -2
  61. package/dist/cjs/{get-5dfcdc33.js → get-68c52cb1.js} +90 -7
  62. package/dist/cjs/getQuery.js +2 -2
  63. package/dist/cjs/getRelatedArticle.js +5 -354
  64. package/dist/cjs/getSerializers.js +8 -8
  65. package/dist/cjs/{index-40bd0e4f.js → index-04c709c4.js} +14 -14
  66. package/dist/cjs/{index-099d45ae.js → index-2d0a4911.js} +4 -6
  67. package/dist/cjs/{index-3294d3bc.js → index-5be2866f.js} +1 -1
  68. package/dist/cjs/{index-39beccb3.js → index-b5eb3ff8.js} +18 -18
  69. package/dist/cjs/{index.es-9110add6.js → index.es-ab3f2690.js} +3 -1
  70. package/dist/cjs/index.js +21 -23
  71. package/dist/cjs/{isSymbol-488934a7.js → isSymbol-04666465.js} +0 -2
  72. package/dist/cjs/{lodash-7fd85bcf.js → lodash-fc2922d0.js} +22 -71
  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 +5 -5
  78. package/dist/esm/AD300x250x600.js +5 -5
  79. package/dist/esm/AD728x90.js +6 -6
  80. package/dist/esm/ADFloatingFooter.js +4 -4
  81. package/dist/esm/ADGutter.js +4 -4
  82. package/dist/esm/ADSkyscraper.js +4 -4
  83. package/dist/esm/ADSponsoredResources.js +4 -4
  84. package/dist/esm/ADWebcast.js +4 -4
  85. package/dist/esm/ADWelcome.js +4 -4
  86. package/dist/esm/AdSlot.js +4 -4
  87. package/dist/esm/AdSlotsProvider.js +1 -1
  88. package/dist/esm/ArticleSeriesListing.js +6 -6
  89. package/dist/esm/Auth.js +501 -250
  90. package/dist/esm/{BlockContent-c409aca5.js → BlockContent-a614acdf.js} +1 -1
  91. package/dist/esm/CMEDeck.js +7 -7
  92. package/dist/esm/Column2.js +2 -3
  93. package/dist/esm/Column3.js +7 -8
  94. package/dist/esm/ConferenceArticleCard.js +13 -29
  95. package/dist/esm/DeckContent.js +9 -9
  96. package/dist/esm/DeckQueue.js +9 -10
  97. package/dist/esm/{Dfp-64ed29cf.js → Dfp-43d61e01.js} +3 -3
  98. package/dist/esm/EventsDeck.js +5 -5
  99. package/dist/esm/ExternalResources.js +9 -9
  100. package/dist/esm/Feature.js +3 -3
  101. package/dist/esm/ForbesHero.js +2 -2
  102. package/dist/esm/GridContent.js +14 -15
  103. package/dist/esm/GridHero.js +2 -2
  104. package/dist/esm/GroupDeck.js +1 -1
  105. package/dist/esm/HamMagazine.js +4 -4
  106. package/dist/esm/Hero.js +1 -1
  107. package/dist/esm/HorizontalHero.js +2 -2
  108. package/dist/esm/IssueContentDeck.js +2 -2
  109. package/dist/esm/IssueDeck.js +2 -2
  110. package/dist/esm/IssueLanding.js +10 -10
  111. package/dist/esm/LeftNav.js +4 -4
  112. package/dist/esm/MasterDeck.js +11 -11
  113. package/dist/esm/NavMagazine.js +5 -5
  114. package/dist/esm/NavNative.js +2 -2
  115. package/dist/esm/OncliveHero.js +2 -2
  116. package/dist/esm/OncliveLargeHero.js +2 -2
  117. package/dist/esm/PartnerDetailListing.js +16 -1212
  118. package/dist/esm/PublicationDeck.js +2 -2
  119. package/dist/esm/QueueDeckExpanded.js +12 -12
  120. package/dist/esm/RecentNews.js +2 -2
  121. package/dist/esm/RelatedContent.js +2 -32
  122. package/dist/esm/SideFooter.js +2 -3
  123. package/dist/esm/{SocialSearchComponent-a45b3379.js → SocialSearchComponent-6d144699.js} +5 -5
  124. package/dist/esm/TaxonomyCard.js +2 -2
  125. package/dist/esm/TemplateNormal.js +6 -7
  126. package/dist/esm/ThumbnailCard.js +1 -1
  127. package/dist/esm/Ustream.js +2 -2
  128. package/dist/esm/VerticalHero.js +2 -2
  129. package/dist/esm/VideoSeriesCard.js +2 -2
  130. package/dist/esm/VideoSeriesListing.js +5 -5
  131. package/dist/esm/View.js +45 -37
  132. package/dist/esm/YahooHero.js +2 -2
  133. package/dist/esm/YoutubeGroup.js +1 -1
  134. package/dist/esm/{debounce-a0d9abca.js → debounce-1a993acf.js} +2 -2
  135. package/dist/esm/{get-58d2f7cc.js → get-5ee14cda.js} +85 -2
  136. package/dist/esm/getQuery.js +2 -2
  137. package/dist/esm/getRelatedArticle.js +5 -354
  138. package/dist/esm/getSerializers.js +8 -8
  139. package/dist/esm/{index-3849e3fe.js → index-51a80699.js} +18 -18
  140. package/dist/esm/{index-3f4dd6f2.js → index-93ec3c59.js} +4 -6
  141. package/dist/esm/{index-c017d31a.js → index-c3ffdcd7.js} +14 -14
  142. package/dist/esm/{index-ef6d5dcf.js → index-d2f90501.js} +1 -1
  143. package/dist/esm/{index.es-29c1cef5.js → index.es-938a3a58.js} +3 -1
  144. package/dist/esm/index.js +19 -20
  145. package/dist/esm/{isSymbol-47f5ff3b.js → isSymbol-807e927e.js} +1 -1
  146. package/dist/esm/{lodash-ec8c6b48.js → lodash-17fdfebb.js} +22 -71
  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 +3 -3
  151. package/dist/cjs/ArticleQueue.js +0 -1689
  152. package/dist/cjs/_arrayMap-3b4a0f75.js +0 -91
  153. package/dist/cjs/index-bd6c9f56.js +0 -211
  154. package/dist/esm/ArticleQueue.js +0 -1684
  155. package/dist/esm/_arrayMap-818441dd.js +0 -87
  156. package/dist/esm/index-db3bb315.js +0 -207
  157. /package/dist/cjs/{ADInfeed-bdb4dc62.js → ADInfeed-eaa6c661.js} +0 -0
  158. /package/dist/cjs/{ADlgInfeed-56376f48.js → ADlgInfeed-f25eb4f7.js} +0 -0
  159. /package/dist/esm/{ADInfeed-34a87706.js → ADInfeed-3c4773f8.js} +0 -0
  160. /package/dist/esm/{ADlgInfeed-2a864f1d.js → ADlgInfeed-5a52301f.js} +0 -0
@@ -5,9 +5,9 @@ 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-3849e3fe.js';
8
+ import { i as imageUrlBuilder } from './index-51a80699.js';
9
9
  import { L as LazyLoad } from './index-5f9f807a.js';
10
- import { l as lodash } from './lodash-ec8c6b48.js';
10
+ import { l as lodash } from './lodash-17fdfebb.js';
11
11
  import Button from 'react-bootstrap/Button';
12
12
 
13
13
  var PublicationDeck = function PublicationDeck(props) {
@@ -9,19 +9,19 @@ import './_object-pie-33c40e79.js';
9
9
  import { _ as _extends } from './extends-229166d5.js';
10
10
  import './web.dom.iterable-03c5ba1c.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
- import './isSymbol-47f5ff3b.js';
18
- import './debounce-a0d9abca.js';
19
- import { I as InfiniteScroll } from './index.es-29c1cef5.js';
17
+ import './isSymbol-807e927e.js';
18
+ import './debounce-1a993acf.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-3849e3fe.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-feadff37.js';
27
27
  import { _ as _slicedToArray } from './slicedToArray-5fb01661.js';
@@ -29,9 +29,9 @@ import './asyncToGenerator-271a52f3.js';
29
29
  import './_set-species-41cbf140.js';
30
30
  import './beam-c4d8f8f6.js';
31
31
  import './AdSlot.js';
32
- import { A as ADInfeed } from './ADInfeed-34a87706.js';
33
- import { l as lodash } from './lodash-ec8c6b48.js';
34
- import { A as ADlgInfeed } from './ADlgInfeed-2a864f1d.js';
32
+ import { A as ADInfeed } from './ADInfeed-3c4773f8.js';
33
+ import { l as lodash } from './lodash-17fdfebb.js';
34
+ import { A as ADlgInfeed } from './ADlgInfeed-5a52301f.js';
35
35
  import { A as AuthorComponent } from './AuthorComponent-1ea27faa.js';
36
36
  import { Container, Media } from 'react-bootstrap';
37
37
 
@@ -632,7 +632,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
632
632
  React__default.createElement(
633
633
  'div',
634
634
  null,
635
- main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd(index, numberOfItemsBeforeAd, rightItems)
635
+ main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd(index, numberOfItemsBeforeAd, rightItems)
636
636
  )
637
637
  )
638
638
  );
@@ -1027,7 +1027,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
1027
1027
  React__default.createElement(
1028
1028
  'div',
1029
1029
  null,
1030
- main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd(index, numberOfItemsBeforeAd, rightItems)
1030
+ main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd(index, numberOfItemsBeforeAd, rightItems)
1031
1031
  )
1032
1032
  )
1033
1033
  );
@@ -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-3849e3fe.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,38 +1,8 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
2
  import React__default from 'react';
3
- import { m as moment } from './moment-e2f9b20c.js';
4
- import { i as imageUrlBuilder } from './index-3849e3fe.js';
5
- import 'react-bootstrap/Media';
3
+ import { m as moment } from './moment-12415288.js';
4
+ import { i as imageUrlBuilder } from './index-51a80699.js';
6
5
 
7
- /*
8
- Sample query
9
- let references = ''
10
- if(article.taxonomyMapping.length > 0){
11
- article.taxonomyMapping.forEach((ref, index) => {
12
- references = references + `references('${ref._ref}') `
13
- if(index+1 !== article.taxonomyMapping.length){
14
- references = references + ` && `
15
- }
16
- })
17
- }
18
-
19
- 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] {
20
- ...,
21
- title,
22
- summary,
23
- thumbnail,
24
- url,
25
- published,
26
- authorMapping[]->,
27
- contentCategory->
28
- }`
29
- const relatedArticles = await client.fetch(relatedArticlesQuery)
30
-
31
- Sample usage
32
- <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
33
-
34
-
35
- */
36
6
  var RelatedContent = function RelatedContent(props) {
37
7
  var client = props.client,
38
8
  dataRecord = props.dataRecord,
@@ -8,13 +8,12 @@ import './define-property-99e9c0ad.js';
8
8
  import './web.dom.iterable-03c5ba1c.js';
9
9
  import React__default, { useRef, useEffect } from 'react';
10
10
  import 'prop-types';
11
- import './isSymbol-47f5ff3b.js';
11
+ import './isSymbol-807e927e.js';
12
12
  import './stringify-feadff37.js';
13
13
  import './asyncToGenerator-271a52f3.js';
14
14
  import './_set-species-41cbf140.js';
15
15
  import { S as Segment } from './beam-c4d8f8f6.js';
16
- import './_arrayMap-818441dd.js';
17
- import { g as get_1 } from './get-58d2f7cc.js';
16
+ import { g as get_1 } from './get-5ee14cda.js';
18
17
  import { r as reactSocialIcons_1 } from './react-social-icons-a7d5c5c7.js';
19
18
  import { _ as _defineProperty } from './defineProperty-fa14766d.js';
20
19
 
@@ -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-5fb01661.js';
4
4
  import { I as IconContext } from './iconBase-602d52fe.js';
5
5
  import Button from 'react-bootstrap/Button';
@@ -39,7 +39,7 @@ var SocialSearchComponent = function SocialSearchComponent(_ref) {
39
39
  var navWrapper = document.getElementById(navID);
40
40
  var mastNav = document.querySelector('.nav-brands');
41
41
  var topOffset = 0;
42
- if (window && window.innerWidth < 1200 && mastNav && mastNav.offsetHeight && !main_30) topOffset = topOffset + mastNav.offsetHeight;
42
+ if (window && window.innerWidth < 1200 && mastNav && mastNav.offsetHeight) topOffset = topOffset + mastNav.offsetHeight;
43
43
  if (navWrapper && navWrapper.offsetHeight) topOffset = topOffset + navWrapper.offsetHeight;
44
44
  setTopOffset(topOffset + 2);
45
45
 
@@ -67,14 +67,14 @@ var SocialSearchComponent = function SocialSearchComponent(_ref) {
67
67
  var searchBtn = document.getElementsByClassName(selector)[0];
68
68
  if (searchBtn && searchBtn.classList && searchBtn.classList.contains(addOn)) {
69
69
  // Set overflow fix for iPhones safari browsers
70
- if (main_37 || window.innerWidth < 1200 && main_30) {
70
+ if (main_40 || window.innerWidth < 1200 && main_31) {
71
71
  var mainNav = document.querySelector('#navbar-ham');
72
72
  if (mainNav && mainNav.style) mainNav.style.overflow = 'auto';
73
73
  }
74
74
  searchBtn.classList.remove(addOn);
75
75
  } else if (searchBtn && searchBtn.classList) {
76
76
  // Set overflow fix for iPhones safari browsers
77
- if (main_37 || window.innerWidth < 1200 && main_30) {
77
+ if (main_40 || window.innerWidth < 1200 && main_31) {
78
78
  var _mainNav = document.querySelector('#navbar-ham');
79
79
  if (_mainNav && _mainNav.style) _mainNav.style.overflow = 'visible';
80
80
  }
@@ -176,7 +176,7 @@ var SocialSearchComponent = function SocialSearchComponent(_ref) {
176
176
  React__default.createElement(
177
177
  'style',
178
178
  { jsx: 'true' },
179
- '\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 '
179
+ '\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 '
180
180
  )
181
181
  );
182
182
  };
@@ -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-3849e3fe.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-c409aca5.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,23 +7,22 @@ import './core.get-iterator-method-e41daf74.js';
7
7
  import './define-property-99e9c0ad.js';
8
8
  import './web.dom.iterable-03c5ba1c.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';
14
14
  import 'react-bootstrap/Col';
15
15
  import { useRouter } from 'next/router';
16
- import './isSymbol-47f5ff3b.js';
17
- import './debounce-a0d9abca.js';
18
- import './main-5d1e4bd3.js';
16
+ import './isSymbol-807e927e.js';
17
+ import './debounce-1a993acf.js';
18
+ import './main-0465b2a0.js';
19
19
  import './stringify-feadff37.js';
20
20
  import { _ as _slicedToArray } from './slicedToArray-5fb01661.js';
21
21
  import './asyncToGenerator-271a52f3.js';
22
22
  import './_set-species-41cbf140.js';
23
23
  import './beam-c4d8f8f6.js';
24
24
  import './AdSlot.js';
25
- import './_arrayMap-818441dd.js';
26
- import './get-58d2f7cc.js';
25
+ import './get-5ee14cda.js';
27
26
  import './react-social-icons-a7d5c5c7.js';
28
27
  import 'react-bootstrap';
29
28
  import './iconBase-602d52fe.js';
@@ -51,7 +50,7 @@ import './index.esm-73e847d2.js';
51
50
  import './SocialIcons.js';
52
51
  import 'react-bootstrap/Form';
53
52
  import 'react-bootstrap/FormControl';
54
- import './SocialSearchComponent-a45b3379.js';
53
+ import './SocialSearchComponent-6d144699.js';
55
54
  import MagazineNav from './NavMagazine.js';
56
55
  import { NavNative } from './NavNative.js';
57
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-3849e3fe.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-c199c9ba.js';
4
4
  import './core.get-iterator-method-e41daf74.js';
5
5
  import './web.dom.iterable-03c5ba1c.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-5fb01661.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-3849e3fe.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,9 +8,9 @@ import { _ as _typeof } from './typeof-fea75829.js';
8
8
  import './_is-array-ced12663.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-3849e3fe.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
 
@@ -12,16 +12,16 @@ import './web.dom.iterable-03c5ba1c.js';
12
12
  import './typeof-fea75829.js';
13
13
  import './_is-array-ced12663.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
- import './isSymbol-47f5ff3b.js';
20
- import { d as debounce_1 } from './debounce-a0d9abca.js';
21
- import { I as InfiniteScroll } from './index.es-29c1cef5.js';
19
+ import './isSymbol-807e927e.js';
20
+ import { d as debounce_1 } from './debounce-1a993acf.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-3849e3fe.js';
24
+ import './index-51a80699.js';
25
25
  import './index-5f9f807a.js';
26
26
  import './slicedToArray-5fb01661.js';
27
27
  import './smoothscroll-4b699764.js';
package/dist/esm/View.js CHANGED
@@ -14,19 +14,19 @@ import './web.dom.iterable-03c5ba1c.js';
14
14
  import { _ as _typeof } from './typeof-fea75829.js';
15
15
  import './_is-array-ced12663.js';
16
16
  import React__default, { useState, useEffect } from 'react';
17
- import { l as lib_3 } from './index-3f4dd6f2.js';
17
+ import { l as lib_3 } from './index-93ec3c59.js';
18
18
  import 'prop-types';
19
19
  import 'react-bootstrap/Row';
20
20
  import 'react-bootstrap/Col';
21
- import { m as moment } from './moment-e2f9b20c.js';
21
+ import { m as moment } from './moment-12415288.js';
22
22
  import { useRouter } from 'next/router';
23
- import './isSymbol-47f5ff3b.js';
24
- import './debounce-a0d9abca.js';
25
- import { I as InfiniteScroll } from './index.es-29c1cef5.js';
23
+ import './isSymbol-807e927e.js';
24
+ import './debounce-1a993acf.js';
25
+ import { I as InfiniteScroll } from './index.es-938a3a58.js';
26
26
  import 'react-dom';
27
- import './index-3849e3fe.js';
27
+ import './index-51a80699.js';
28
28
  import './index-5f9f807a.js';
29
- import { m as main_36 } from './main-5d1e4bd3.js';
29
+ import { m as main_39 } from './main-0465b2a0.js';
30
30
  import './entities-7cc3bf45.js';
31
31
  import { _ as _JSON$stringify } from './stringify-feadff37.js';
32
32
  import { a as _getIterator, _ as _slicedToArray } from './slicedToArray-5fb01661.js';
@@ -34,12 +34,12 @@ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-271
34
34
  import './_set-species-41cbf140.js';
35
35
  import './beam-c4d8f8f6.js';
36
36
  import DFPAdSlot from './AdSlot.js';
37
- import { B as BlockContent } from './BlockContent-c409aca5.js';
37
+ import { B as BlockContent } from './BlockContent-a614acdf.js';
38
38
  import './smoothscroll-4b699764.js';
39
39
  import './GroupDeck.js';
40
40
  import 'react-bootstrap';
41
41
  import Button from 'react-bootstrap/Button';
42
- import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-c017d31a.js';
42
+ import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-c3ffdcd7.js';
43
43
  import './util-7700fc59.js';
44
44
  import './brightcove-react-player-loader.es-83f53e4e.js';
45
45
  import 'react-bootstrap/Pagination';
@@ -51,12 +51,12 @@ import Form from 'react-bootstrap/Form';
51
51
  import FormControl from 'react-bootstrap/FormControl';
52
52
  import { _ as _Object$keys } from './keys-941eccc4.js';
53
53
  import 'react-bootstrap/Dropdown';
54
- import getKeywords from './getKeywords.js';
55
54
  import getSeriesDetail from './getSeriesDetail.js';
56
- import './index-db3bb315.js';
57
- import getRelatedArticle from './getRelatedArticle.js';
55
+ import 'nookies';
58
56
  import getQuery from './getQuery.js';
57
+ import getRelatedArticle from './getRelatedArticle.js';
59
58
  import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-3cc3f97d.js';
59
+ import getKeywords from './getKeywords.js';
60
60
  import urlFor from './urlFor.js';
61
61
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
62
62
 
@@ -134,9 +134,9 @@ var DocumentGroup = function DocumentGroup(_ref) {
134
134
  style: { display: 'flex', flexDirection: 'column', padding: '0 1rem', justifyContent: thumbnailUrl ? 'center' : 'flex-start', alignItems: 'center' } },
135
135
  thumbnailUrl && React__default.createElement('img', { style: { maxWidth: '220px', maxHeight: '100px', marginTop: '1rem' }, src: thumbnailUrl, alt: name }),
136
136
  !thumbnailUrl && React__default.createElement('p', {
137
- style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main_36 ? 'left' : 'right', marginTop: '.25rem' },
137
+ style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main_39 ? 'left' : 'right', marginTop: '.25rem' },
138
138
  dangerouslySetInnerHTML: { __html: name } }),
139
- main_36 && !thumbnailUrl && React__default.createElement(
139
+ main_39 && !thumbnailUrl && React__default.createElement(
140
140
  'style',
141
141
  { jsx: 'true' },
142
142
  '\n a.doc-group {\n display: block !important;\n padding: 0!important;\n }\n '
@@ -309,6 +309,7 @@ var Article = function Article(props) {
309
309
  issue = _props$article.issue,
310
310
  source = _props$article.source,
311
311
  documentGroup = _props$article.documentGroup,
312
+ documentGroupMapping = _props$article.documentGroupMapping,
312
313
  regionalPages = props.regionalPages,
313
314
  nationalPage = props.nationalPage,
314
315
  ISIContent = props.ISIContent,
@@ -399,7 +400,7 @@ var Article = function Article(props) {
399
400
  };
400
401
 
401
402
  var RelevantTopics = function RelevantTopics() {
402
- if (content_placement && content_placement.length > 0 || documentGroup) {
403
+ if (content_placement && content_placement.length > 0 || documentGroupMapping) {
403
404
  return React__default.createElement(
404
405
  'div',
405
406
  { style: { color: '#262626' } },
@@ -412,23 +413,28 @@ var Article = function Article(props) {
412
413
  'Related Content:'
413
414
  )
414
415
  ),
415
- documentGroup && documentGroup.parent && React__default.createElement(
416
- React__default.Fragment,
417
- null,
418
- React__default.createElement(
419
- 'span',
420
- { className: '' },
416
+ documentGroupMapping && documentGroupMapping.length > 0 && documentGroupMapping.map(function (map, map_index) {
417
+ var map_href = (cpModificationRequired ? map.parent && '/' + (map.parent.identifier && map.parent.identifier.current) : '') + '/' + map.path;
418
+ return React__default.createElement(
419
+ React__default.Fragment,
420
+ null,
421
421
  React__default.createElement(
422
- 'a',
423
- {
424
- className: 'related-links',
425
- style: { color: 'blue' },
426
- href: cpModificationRequired ? '/' + documentGroup.parent.identifier.current + '/' + documentGroup.path : '/' + documentGroup.path },
427
- documentGroup.name
428
- )
429
- ),
430
- content_placement && content_placement.length ? ' | ' : null
431
- ),
422
+ 'span',
423
+ { className: '', key: map_index },
424
+ React__default.createElement(
425
+ 'a',
426
+ {
427
+ className: 'related-links',
428
+ style: { color: 'blue' },
429
+ href: map_href
430
+ },
431
+ map.name
432
+ )
433
+ ),
434
+ map.index < documentGroupMapping.length && ' | '
435
+ );
436
+ }),
437
+ content_placement && content_placement.length > 0 && ' | ',
432
438
  content_placement && content_placement.length > 0 ? content_placement.map(function (cp, index) {
433
439
  var cp_url = cpModificationRequired ? getContentPlacementUrl(cp) : cp.path;
434
440
  var href = '/' + cp_url;
@@ -857,7 +863,7 @@ var Article = function Article(props) {
857
863
  React__default.createElement(
858
864
  'div',
859
865
  { className: 'ad-box', style: { textAlign: 'center' } },
860
- main_36 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
866
+ main_39 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
861
867
  if (index === 0) {
862
868
  return React__default.createElement(
863
869
  'div',
@@ -924,7 +930,7 @@ var Article = function Article(props) {
924
930
  renderIsiContent(props.article)
925
931
  )
926
932
  ),
927
- main_36 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
933
+ main_39 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
928
934
  if (index > 0) {
929
935
  return React__default.createElement(
930
936
  'div',
@@ -997,7 +1003,7 @@ var ArticleQueue = function ArticleQueue(props) {
997
1003
  });
998
1004
  var targeting = getTargeting({ article: activeArticle, cpModificationRequired: cpModificationRequired, position: props.position, prevUrl: prevUrl });
999
1005
 
1000
- if (!main_36) {
1006
+ if (!main_39) {
1001
1007
  lib_3.getGoogletag().then(function (googletag) {
1002
1008
  if (window.googletag && googletag.pubadsReady) {
1003
1009
  var slots = googletag.pubads().getSlots();
@@ -1015,7 +1021,7 @@ var ArticleQueue = function ArticleQueue(props) {
1015
1021
  });
1016
1022
  }
1017
1023
  //Refresh leaderboard ad on mobile
1018
- if (main_36) {
1024
+ if (main_39) {
1019
1025
  var leaderboardSlotId = '';
1020
1026
  lib_3.getGoogletag().then(function (googletag) {
1021
1027
  if (window.googletag && googletag.pubadsReady) {
@@ -1276,7 +1282,9 @@ var View = function View(props) {
1276
1282
  _props$showRelatedArt = props.showRelatedArticles,
1277
1283
  showRelatedArticles = _props$showRelatedArt === undefined ? false : _props$showRelatedArt,
1278
1284
  _props$canonicalTag = props.canonicalTag,
1279
- canonicalTag = _props$canonicalTag === undefined ? true : _props$canonicalTag;
1285
+ canonicalTag = _props$canonicalTag === undefined ? true : _props$canonicalTag,
1286
+ _props$disableInfinit = props.disableInfiniteScroll,
1287
+ disableInfiniteScroll = _props$disableInfinit === undefined ? false : _props$disableInfinit;
1280
1288
  var _props$article = props.article,
1281
1289
  _props$article$passwo = _props$article.passwordLock,
1282
1290
  passwordLock = _props$article$passwo === undefined ? false : _props$article$passwo,
@@ -1334,7 +1342,7 @@ var View = function View(props) {
1334
1342
 
1335
1343
  var isVideoSeries = checkVideoSeries(props.article);
1336
1344
  var isArticleSeries = checkArticleSeries(props.article);
1337
- var needInfiniteScroll = ['Articles', 'Videos', 'Podcasts'].includes(article.category.name) && article.taxonomyMapping && article.passwordLock !== true && !isVideoSeries && !isArticleSeries && !article.ExcludeFromInfiniteScroll && !sponsoredFlag;
1345
+ var needInfiniteScroll = ['Articles', 'Videos', 'Podcasts'].includes(article.category.name) && article.taxonomyMapping && article.passwordLock !== true && !isVideoSeries && !isArticleSeries && !article.ExcludeFromInfiniteScroll && !sponsoredFlag && !disableInfiniteScroll;
1338
1346
 
1339
1347
  if (['Articles', 'Videos', 'Podcasts'].includes(article.category.name)) {
1340
1348
  description = null;
@@ -5,9 +5,9 @@ import './core.get-iterator-method-e41daf74.js';
5
5
  import './web.dom.iterable-03c5ba1c.js';
6
6
  import React__default from 'react';
7
7
  import 'prop-types';
8
- import { m as moment } from './moment-e2f9b20c.js';
8
+ import { m as moment } from './moment-12415288.js';
9
9
  import 'react-dom';
10
- import { i as imageUrlBuilder } from './index-3849e3fe.js';
10
+ import { i as imageUrlBuilder } from './index-51a80699.js';
11
11
  import { L as LazyLoad } from './index-5f9f807a.js';
12
12
  import { c as clean_html_1 } from './entities-7cc3bf45.js';
13
13
  import './slicedToArray-5fb01661.js';
@@ -10,7 +10,7 @@ import './_is-array-ced12663.js';
10
10
  import React__default, { useRef, useState, useEffect } from 'react';
11
11
  import 'prop-types';
12
12
  import 'react-dom';
13
- import { i as imageUrlBuilder } from './index-3849e3fe.js';
13
+ import { i as imageUrlBuilder } from './index-51a80699.js';
14
14
  import { L as LazyLoad } from './index-5f9f807a.js';
15
15
  import { _ as _slicedToArray } from './slicedToArray-5fb01661.js';
16
16
  import { s as smoothscroll, g as getYoutubeId } from './smoothscroll-4b699764.js';
@@ -1,4 +1,4 @@
1
- import { a as _root, c as isSymbol_1, d as isObject_1 } from './isSymbol-47f5ff3b.js';
1
+ import { _ as _root, i as isSymbol_1, a as isObject_1 } from './isSymbol-807e927e.js';
2
2
 
3
3
  /**
4
4
  * Gets the timestamp of the number of milliseconds that have elapsed since
@@ -274,4 +274,4 @@ function debounce(func, wait, options) {
274
274
 
275
275
  var debounce_1 = debounce;
276
276
 
277
- export { debounce_1 as d, toNumber_1 as t };
277
+ export { debounce_1 as d };
@@ -1,5 +1,31 @@
1
- import { c as isSymbol_1, a as _root, d as isObject_1, e as _Symbol } from './isSymbol-47f5ff3b.js';
2
- import { a as isArray_1, i as isFunction_1, _ as _arrayMap } from './_arrayMap-818441dd.js';
1
+ import { i as isSymbol_1, a as isObject_1, b as _baseGetTag, _ as _root, c as _Symbol } from './isSymbol-807e927e.js';
2
+
3
+ /**
4
+ * Checks if `value` is classified as an `Array` object.
5
+ *
6
+ * @static
7
+ * @memberOf _
8
+ * @since 0.1.0
9
+ * @category Lang
10
+ * @param {*} value The value to check.
11
+ * @returns {boolean} Returns `true` if `value` is an array, else `false`.
12
+ * @example
13
+ *
14
+ * _.isArray([1, 2, 3]);
15
+ * // => true
16
+ *
17
+ * _.isArray(document.body.children);
18
+ * // => false
19
+ *
20
+ * _.isArray('abc');
21
+ * // => false
22
+ *
23
+ * _.isArray(_.noop);
24
+ * // => false
25
+ */
26
+ var isArray = Array.isArray;
27
+
28
+ var isArray_1 = isArray;
3
29
 
4
30
  /** Used to match property names within property paths. */
5
31
  var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
@@ -28,6 +54,41 @@ function isKey(value, object) {
28
54
 
29
55
  var _isKey = isKey;
30
56
 
57
+ /** `Object#toString` result references. */
58
+ var asyncTag = '[object AsyncFunction]',
59
+ funcTag = '[object Function]',
60
+ genTag = '[object GeneratorFunction]',
61
+ proxyTag = '[object Proxy]';
62
+
63
+ /**
64
+ * Checks if `value` is classified as a `Function` object.
65
+ *
66
+ * @static
67
+ * @memberOf _
68
+ * @since 0.1.0
69
+ * @category Lang
70
+ * @param {*} value The value to check.
71
+ * @returns {boolean} Returns `true` if `value` is a function, else `false`.
72
+ * @example
73
+ *
74
+ * _.isFunction(_);
75
+ * // => true
76
+ *
77
+ * _.isFunction(/abc/);
78
+ * // => false
79
+ */
80
+ function isFunction(value) {
81
+ if (!isObject_1(value)) {
82
+ return false;
83
+ }
84
+ // The use of `Object#toString` avoids issues with the `typeof` operator
85
+ // in Safari 9 which returns 'object' for typed arrays and other constructors.
86
+ var tag = _baseGetTag(value);
87
+ return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
88
+ }
89
+
90
+ var isFunction_1 = isFunction;
91
+
31
92
  /** Used to detect overreaching core-js shims. */
32
93
  var coreJsData = _root['__core-js_shared__'];
33
94
 
@@ -753,6 +814,28 @@ var stringToPath = _memoizeCapped(function(string) {
753
814
 
754
815
  var _stringToPath = stringToPath;
755
816
 
817
+ /**
818
+ * A specialized version of `_.map` for arrays without support for iteratee
819
+ * shorthands.
820
+ *
821
+ * @private
822
+ * @param {Array} [array] The array to iterate over.
823
+ * @param {Function} iteratee The function invoked per iteration.
824
+ * @returns {Array} Returns the new mapped array.
825
+ */
826
+ function arrayMap(array, iteratee) {
827
+ var index = -1,
828
+ length = array == null ? 0 : array.length,
829
+ result = Array(length);
830
+
831
+ while (++index < length) {
832
+ result[index] = iteratee(array[index], index, array);
833
+ }
834
+ return result;
835
+ }
836
+
837
+ var _arrayMap = arrayMap;
838
+
756
839
  /** Used as references for various `Number` constants. */
757
840
  var INFINITY = 1 / 0;
758
841