@mjhls/mjh-framework 1.0.624 → 1.0.626-iOS-chrome-fix

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 (145) hide show
  1. package/README.md +1 -1
  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 +2 -2
  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/ArticleQueue.js +12 -12
  15. package/dist/cjs/ArticleSeriesListing.js +5 -5
  16. package/dist/cjs/Auth.js +255 -506
  17. package/dist/cjs/{BlockContent-f942392e.js → BlockContent-c2168db0.js} +1 -1
  18. package/dist/cjs/CMEDeck.js +5 -5
  19. package/dist/cjs/Column3.js +4 -4
  20. package/dist/cjs/ConferenceArticleCard.js +2 -2
  21. package/dist/cjs/DeckContent.js +8 -8
  22. package/dist/cjs/DeckQueue.js +7 -7
  23. package/dist/cjs/{Dfp-fbe32b96.js → Dfp-fcdeabc4.js} +1 -1
  24. package/dist/cjs/EventsDeck.js +5 -5
  25. package/dist/cjs/ExternalResources.js +8 -8
  26. package/dist/cjs/Feature.js +3 -3
  27. package/dist/cjs/ForbesHero.js +2 -2
  28. package/dist/cjs/GridContent.js +12 -12
  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 +8 -8
  37. package/dist/cjs/LeftNav.js +2 -2
  38. package/dist/cjs/MasterDeck.js +10 -10
  39. package/dist/cjs/NavMagazine.js +4 -4
  40. package/dist/cjs/NavNative.js +17 -2
  41. package/dist/cjs/OncliveHero.js +2 -2
  42. package/dist/cjs/OncliveLargeHero.js +2 -2
  43. package/dist/cjs/PartnerDetailListing.js +1211 -15
  44. package/dist/cjs/PublicationDeck.js +2 -2
  45. package/dist/cjs/QueueDeckExpanded.js +10 -10
  46. package/dist/cjs/RecentNews.js +2 -2
  47. package/dist/cjs/RelatedContent.js +2 -2
  48. package/dist/cjs/{SocialSearchComponent-5cbde5e0.js → SocialSearchComponent-7febe148.js} +5 -3
  49. package/dist/cjs/TaxonomyCard.js +2 -2
  50. package/dist/cjs/TemplateNormal.js +3 -3
  51. package/dist/cjs/ThumbnailCard.js +1 -1
  52. package/dist/cjs/Ustream.js +2 -2
  53. package/dist/cjs/VerticalHero.js +2 -2
  54. package/dist/cjs/VideoSeriesListing.js +5 -5
  55. package/dist/cjs/View.js +29 -23
  56. package/dist/cjs/YahooHero.js +2 -2
  57. package/dist/cjs/YoutubeGroup.js +1 -1
  58. package/dist/cjs/getRelatedArticle.js +354 -5
  59. package/dist/cjs/getSerializers.js +7 -7
  60. package/dist/cjs/{index-77531536.js → index-2cc1225c.js} +10 -10
  61. package/dist/cjs/{index-5be2866f.js → index-3294d3bc.js} +1 -1
  62. package/dist/cjs/{index-b5eb3ff8.js → index-39beccb3.js} +18 -18
  63. package/dist/cjs/index-bd6c9f56.js +211 -0
  64. package/dist/cjs/{index-f7ee1612.js → index-fa3cec70.js} +6 -4
  65. package/dist/cjs/{index.es-ab3f2690.js → index.es-9110add6.js} +1 -3
  66. package/dist/cjs/index.js +16 -17
  67. package/dist/cjs/{inherits-dca612fa.js → inherits-227da8e1.js} +4 -4
  68. package/dist/cjs/{lodash-fc2922d0.js → lodash-7fd85bcf.js} +71 -22
  69. package/dist/cjs/{main-bc4db521.js → main-a4cb15bb.js} +36 -66
  70. package/dist/cjs/{moment-66a6a284.js → moment-575fe24c.js} +1 -1
  71. package/dist/cjs/urlFor.js +1 -1
  72. package/dist/esm/AD.js +1 -1
  73. package/dist/esm/AD300x250.js +3 -3
  74. package/dist/esm/AD300x250x600.js +3 -3
  75. package/dist/esm/AD728x90.js +4 -4
  76. package/dist/esm/ADFloatingFooter.js +2 -2
  77. package/dist/esm/ADGutter.js +2 -2
  78. package/dist/esm/ADSkyscraper.js +2 -2
  79. package/dist/esm/ADSponsoredResources.js +2 -2
  80. package/dist/esm/ADWebcast.js +2 -2
  81. package/dist/esm/ADWelcome.js +2 -2
  82. package/dist/esm/AdSlot.js +2 -2
  83. package/dist/esm/AdSlotsProvider.js +1 -1
  84. package/dist/esm/ArticleQueue.js +11 -11
  85. package/dist/esm/ArticleSeriesListing.js +4 -4
  86. package/dist/esm/Auth.js +250 -501
  87. package/dist/esm/{BlockContent-a614acdf.js → BlockContent-c409aca5.js} +1 -1
  88. package/dist/esm/CMEDeck.js +5 -5
  89. package/dist/esm/Column3.js +4 -4
  90. package/dist/esm/ConferenceArticleCard.js +2 -2
  91. package/dist/esm/DeckContent.js +7 -7
  92. package/dist/esm/DeckQueue.js +6 -6
  93. package/dist/esm/{Dfp-40c70a33.js → Dfp-380bef62.js} +1 -1
  94. package/dist/esm/EventsDeck.js +5 -5
  95. package/dist/esm/ExternalResources.js +7 -7
  96. package/dist/esm/Feature.js +3 -3
  97. package/dist/esm/ForbesHero.js +2 -2
  98. package/dist/esm/GridContent.js +11 -11
  99. package/dist/esm/GridHero.js +2 -2
  100. package/dist/esm/GroupDeck.js +1 -1
  101. package/dist/esm/HamMagazine.js +4 -4
  102. package/dist/esm/Hero.js +1 -1
  103. package/dist/esm/HorizontalHero.js +2 -2
  104. package/dist/esm/IssueContentDeck.js +2 -2
  105. package/dist/esm/IssueDeck.js +2 -2
  106. package/dist/esm/IssueLanding.js +8 -8
  107. package/dist/esm/LeftNav.js +2 -2
  108. package/dist/esm/MasterDeck.js +9 -9
  109. package/dist/esm/NavMagazine.js +4 -4
  110. package/dist/esm/NavNative.js +17 -2
  111. package/dist/esm/OncliveHero.js +2 -2
  112. package/dist/esm/OncliveLargeHero.js +2 -2
  113. package/dist/esm/PartnerDetailListing.js +1210 -14
  114. package/dist/esm/PublicationDeck.js +2 -2
  115. package/dist/esm/QueueDeckExpanded.js +10 -10
  116. package/dist/esm/RecentNews.js +2 -2
  117. package/dist/esm/RelatedContent.js +2 -2
  118. package/dist/esm/{SocialSearchComponent-00385695.js → SocialSearchComponent-74c5add5.js} +5 -3
  119. package/dist/esm/TaxonomyCard.js +2 -2
  120. package/dist/esm/TemplateNormal.js +3 -3
  121. package/dist/esm/ThumbnailCard.js +1 -1
  122. package/dist/esm/Ustream.js +2 -2
  123. package/dist/esm/VerticalHero.js +2 -2
  124. package/dist/esm/VideoSeriesListing.js +4 -4
  125. package/dist/esm/View.js +28 -22
  126. package/dist/esm/YahooHero.js +2 -2
  127. package/dist/esm/YoutubeGroup.js +1 -1
  128. package/dist/esm/getRelatedArticle.js +354 -5
  129. package/dist/esm/getSerializers.js +6 -6
  130. package/dist/esm/{index-8a3465af.js → index-1df8b68e.js} +9 -9
  131. package/dist/esm/{index-51a80699.js → index-3849e3fe.js} +18 -18
  132. package/dist/esm/{index-93ec3c59.js → index-3f4dd6f2.js} +6 -4
  133. package/dist/esm/index-db3bb315.js +207 -0
  134. package/dist/esm/{index-d2f90501.js → index-ef6d5dcf.js} +1 -1
  135. package/dist/esm/{index.es-938a3a58.js → index.es-29c1cef5.js} +1 -3
  136. package/dist/esm/index.js +14 -15
  137. package/dist/esm/{lodash-17fdfebb.js → lodash-ec8c6b48.js} +71 -22
  138. package/dist/esm/{main-7255814e.js → main-5d1e4bd3.js} +34 -65
  139. package/dist/esm/{moment-12415288.js → moment-e2f9b20c.js} +1 -1
  140. package/dist/esm/urlFor.js +1 -1
  141. package/package.json +3 -3
  142. /package/dist/cjs/{ADInfeed-ce11d87d.js → ADInfeed-cbdb3a85.js} +0 -0
  143. /package/dist/cjs/{ADlgInfeed-7fc40444.js → ADlgInfeed-abcaf930.js} +0 -0
  144. /package/dist/esm/{ADInfeed-5fb6c05e.js → ADInfeed-cab1e5a5.js} +0 -0
  145. /package/dist/esm/{ADlgInfeed-5eab5705.js → ADlgInfeed-b65e5399.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-51a80699.js';
8
+ import { i as imageUrlBuilder } from './index-3849e3fe.js';
9
9
  import { L as LazyLoad } from './index-5f9f807a.js';
10
- import { l as lodash } from './lodash-17fdfebb.js';
10
+ import { l as lodash } from './lodash-ec8c6b48.js';
11
11
  import Button from 'react-bootstrap/Button';
12
12
 
13
13
  var PublicationDeck = function PublicationDeck(props) {
@@ -8,19 +8,19 @@ import './_object-pie-33c40e79.js';
8
8
  import { _ as _extends } from './extends-229166d5.js';
9
9
  import './web.dom.iterable-5c830d3d.js';
10
10
  import React__default, { useEffect, useState, useRef } from 'react';
11
- import { l as lib_3 } from './index-93ec3c59.js';
11
+ import { l as lib_3 } from './index-3f4dd6f2.js';
12
12
  import 'prop-types';
13
13
  import 'react-bootstrap/Card';
14
- import { m as moment } from './moment-12415288.js';
14
+ import { m as moment } from './moment-e2f9b20c.js';
15
15
  import { useRouter } from 'next/router';
16
16
  import './isSymbol-47f5ff3b.js';
17
17
  import './debounce-a0d9abca.js';
18
- import { I as InfiniteScroll } from './index.es-938a3a58.js';
18
+ import { I as InfiniteScroll } from './index.es-29c1cef5.js';
19
19
  import 'react-dom';
20
20
  import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
21
- import { i as imageUrlBuilder } from './index-51a80699.js';
21
+ import { i as imageUrlBuilder } from './index-3849e3fe.js';
22
22
  import { L as LazyLoad } from './index-5f9f807a.js';
23
- import { m as main_39 } from './main-7255814e.js';
23
+ import { m as main_36 } from './main-5d1e4bd3.js';
24
24
  import { c as clean_html_1 } from './entities-7cc3bf45.js';
25
25
  import './stringify-feadff37.js';
26
26
  import { _ as _slicedToArray } from './slicedToArray-a58d7edf.js';
@@ -28,9 +28,9 @@ import './asyncToGenerator-d25aac66.js';
28
28
  import './_set-species-75f77d40.js';
29
29
  import './beam-c40d77ae.js';
30
30
  import './AdSlot.js';
31
- import { A as ADInfeed } from './ADInfeed-5fb6c05e.js';
32
- import { l as lodash } from './lodash-17fdfebb.js';
33
- import { A as ADlgInfeed } from './ADlgInfeed-5eab5705.js';
31
+ import { A as ADInfeed } from './ADInfeed-cab1e5a5.js';
32
+ import { l as lodash } from './lodash-ec8c6b48.js';
33
+ import { A as ADlgInfeed } from './ADlgInfeed-b65e5399.js';
34
34
  import { A as AuthorComponent } from './AuthorComponent-4ddf3533.js';
35
35
  import { Container, Media } from 'react-bootstrap';
36
36
 
@@ -504,7 +504,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
504
504
  } else if (article._type === 'brandInsightAd' && article.adUnit) {
505
505
  return React__default.createElement(ADInfeed, { index: index, infeedAd: article });
506
506
  }
507
- if (main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0) {
507
+ if (main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0) {
508
508
  return renderMobileAd(index, numberOfItemsBeforeAd, rightItems);
509
509
  }
510
510
 
@@ -898,7 +898,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
898
898
  } else if (article._type === 'brandInsightAd' && article.adUnit) {
899
899
  return React__default.createElement(ADInfeed, { index: index, infeedAd: article });
900
900
  }
901
- if (main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0) {
901
+ if (main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0) {
902
902
  return renderMobileAd(index, numberOfItemsBeforeAd, rightItems);
903
903
  }
904
904
 
@@ -1,7 +1,7 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
2
  import React__default from 'react';
3
- import './moment-12415288.js';
4
- import { i as imageUrlBuilder } from './index-51a80699.js';
3
+ import './moment-e2f9b20c.js';
4
+ import { i as imageUrlBuilder } from './index-3849e3fe.js';
5
5
  import './iconBase-602d52fe.js';
6
6
  import { a as FaLongArrowAltRight } from './index.esm-9a4c8813.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
2
  import React__default from 'react';
3
- import { m as moment } from './moment-12415288.js';
4
- import { i as imageUrlBuilder } from './index-51a80699.js';
3
+ import { m as moment } from './moment-e2f9b20c.js';
4
+ import { i as imageUrlBuilder } from './index-3849e3fe.js';
5
5
  import 'react-bootstrap/Media';
6
6
 
7
7
  /*
@@ -1,5 +1,5 @@
1
1
  import React__default, { useState, useRef, useEffect } from 'react';
2
- import { a as main_40 } from './main-7255814e.js';
2
+ import { d as main_30, a as main_37 } from './main-5d1e4bd3.js';
3
3
  import { _ as _slicedToArray } from './slicedToArray-a58d7edf.js';
4
4
  import { I as IconContext } from './iconBase-602d52fe.js';
5
5
  import Button from 'react-bootstrap/Button';
@@ -14,7 +14,9 @@ var SocialSearchComponent = function SocialSearchComponent(_ref) {
14
14
  website = _ref.website,
15
15
  navID = _ref.navID;
16
16
 
17
+ console.log('isIOS:::::::::::::', main_30);
17
18
  // Search Term
19
+
18
20
  var _useState = useState(''),
19
21
  _useState2 = _slicedToArray(_useState, 2),
20
22
  searchKey = _useState2[0],
@@ -67,14 +69,14 @@ var SocialSearchComponent = function SocialSearchComponent(_ref) {
67
69
  var searchBtn = document.getElementsByClassName(selector)[0];
68
70
  if (searchBtn && searchBtn.classList && searchBtn.classList.contains(addOn)) {
69
71
  // Set overflow fix for iPhones safari browsers
70
- if (main_40) {
72
+ if (main_37 || window.innerWidth < 1200 && main_30) {
71
73
  var mainNav = document.querySelector('#navbar-ham');
72
74
  if (mainNav && mainNav.style) mainNav.style.overflow = 'auto';
73
75
  }
74
76
  searchBtn.classList.remove(addOn);
75
77
  } else if (searchBtn && searchBtn.classList) {
76
78
  // Set overflow fix for iPhones safari browsers
77
- if (main_40) {
79
+ if (main_37 || window.innerWidth < 1200 && main_30) {
78
80
  var _mainNav = document.querySelector('#navbar-ham');
79
81
  if (_mainNav && _mainNav.style) _mainNav.style.overflow = 'visible';
80
82
  }
@@ -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-51a80699.js';
12
+ import { i as imageUrlBuilder } from './index-3849e3fe.js';
13
13
  import { L as LazyLoad } from './index-5f9f807a.js';
14
- import { B as BlockContent } from './BlockContent-a614acdf.js';
14
+ import { B as BlockContent } from './BlockContent-c409aca5.js';
15
15
  import { r as reactSocialIcons_1 } from './react-social-icons-a7d5c5c7.js';
16
16
 
17
17
  var TaxonomyCard = function TaxonomyCard(props) {
@@ -6,7 +6,7 @@ import './_iter-detect-70af34ea.js';
6
6
  import './define-property-99e9c0ad.js';
7
7
  import './web.dom.iterable-5c830d3d.js';
8
8
  import React__default, { useState, useEffect } from 'react';
9
- import './index-93ec3c59.js';
9
+ import './index-3f4dd6f2.js';
10
10
  import 'prop-types';
11
11
  import Container from 'react-bootstrap/Container';
12
12
  import 'react-bootstrap/Row';
@@ -14,7 +14,7 @@ import 'react-bootstrap/Col';
14
14
  import { useRouter } from 'next/router';
15
15
  import './isSymbol-47f5ff3b.js';
16
16
  import './debounce-a0d9abca.js';
17
- import './main-7255814e.js';
17
+ import './main-5d1e4bd3.js';
18
18
  import './stringify-feadff37.js';
19
19
  import { _ as _slicedToArray } from './slicedToArray-a58d7edf.js';
20
20
  import './asyncToGenerator-d25aac66.js';
@@ -50,7 +50,7 @@ import './index.esm-73e847d2.js';
50
50
  import './SocialIcons.js';
51
51
  import 'react-bootstrap/Form';
52
52
  import 'react-bootstrap/FormControl';
53
- import './SocialSearchComponent-00385695.js';
53
+ import './SocialSearchComponent-74c5add5.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-51a80699.js';
5
+ import { i as imageUrlBuilder } from './index-3849e3fe.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';
@@ -3,7 +3,7 @@ import './_to-object-b01e8612.js';
3
3
  import './core.get-iterator-method-66cf57ee.js';
4
4
  import './web.dom.iterable-5c830d3d.js';
5
5
  import React__default, { useState, useRef, useEffect } from 'react';
6
- import { m as main_39 } from './main-7255814e.js';
6
+ import { m as main_36 } from './main-5d1e4bd3.js';
7
7
  import { _ as _slicedToArray } from './slicedToArray-a58d7edf.js';
8
8
  import './iconBase-602d52fe.js';
9
9
  import { c as IoIosOpen } from './index.esm-85cb09e6.js';
@@ -64,7 +64,7 @@ var Ustream = function Ustream(_ref) {
64
64
  } catch (err) {}
65
65
  }, []);
66
66
  //return nothing if mobile
67
- if (main_39) {
67
+ if (main_36) {
68
68
  return null;
69
69
  }
70
70
  return React__default.createElement(
@@ -1,7 +1,7 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
2
  import React__default from 'react';
3
- import './moment-12415288.js';
4
- import { i as imageUrlBuilder } from './index-51a80699.js';
3
+ import './moment-e2f9b20c.js';
4
+ import { i as imageUrlBuilder } from './index-3849e3fe.js';
5
5
 
6
6
  var VerticalHero = function VerticalHero(props) {
7
7
  var client = props.client;
@@ -11,17 +11,17 @@ import './web.dom.iterable-5c830d3d.js';
11
11
  import './typeof-f11fd438.js';
12
12
  import './_is-array-ced12663.js';
13
13
  import React__default from 'react';
14
- import { l as lib_3 } from './index-93ec3c59.js';
14
+ import { l as lib_3 } from './index-3f4dd6f2.js';
15
15
  import 'prop-types';
16
16
  import Container from 'react-bootstrap/Container';
17
- import './moment-12415288.js';
17
+ import './moment-e2f9b20c.js';
18
18
  import { withRouter } from 'next/router';
19
19
  import './isSymbol-47f5ff3b.js';
20
20
  import { d as debounce_1 } from './debounce-a0d9abca.js';
21
- import { I as InfiniteScroll } from './index.es-938a3a58.js';
21
+ import { I as InfiniteScroll } from './index.es-29c1cef5.js';
22
22
  import 'react-dom';
23
23
  import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
24
- import './index-51a80699.js';
24
+ import './index-3849e3fe.js';
25
25
  import './index-5f9f807a.js';
26
26
  import './slicedToArray-a58d7edf.js';
27
27
  import './smoothscroll-4b699764.js';
package/dist/esm/View.js CHANGED
@@ -13,19 +13,19 @@ import './web.dom.iterable-5c830d3d.js';
13
13
  import { _ as _typeof } from './typeof-f11fd438.js';
14
14
  import './_is-array-ced12663.js';
15
15
  import React__default, { useState, useEffect } from 'react';
16
- import { l as lib_3 } from './index-93ec3c59.js';
16
+ import { l as lib_3 } from './index-3f4dd6f2.js';
17
17
  import 'prop-types';
18
18
  import 'react-bootstrap/Row';
19
19
  import 'react-bootstrap/Col';
20
- import { m as moment } from './moment-12415288.js';
20
+ import { m as moment } from './moment-e2f9b20c.js';
21
21
  import { useRouter } from 'next/router';
22
22
  import './isSymbol-47f5ff3b.js';
23
23
  import './debounce-a0d9abca.js';
24
- import { I as InfiniteScroll } from './index.es-938a3a58.js';
24
+ import { I as InfiniteScroll } from './index.es-29c1cef5.js';
25
25
  import 'react-dom';
26
- import './index-51a80699.js';
26
+ import './index-3849e3fe.js';
27
27
  import './index-5f9f807a.js';
28
- import { m as main_39 } from './main-7255814e.js';
28
+ import { m as main_36 } from './main-5d1e4bd3.js';
29
29
  import './entities-7cc3bf45.js';
30
30
  import { _ as _JSON$stringify } from './stringify-feadff37.js';
31
31
  import { a as _getIterator, _ as _slicedToArray } from './slicedToArray-a58d7edf.js';
@@ -33,12 +33,12 @@ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-d25
33
33
  import './_set-species-75f77d40.js';
34
34
  import './beam-c40d77ae.js';
35
35
  import DFPAdSlot from './AdSlot.js';
36
- import { B as BlockContent } from './BlockContent-a614acdf.js';
36
+ import { B as BlockContent } from './BlockContent-c409aca5.js';
37
37
  import './smoothscroll-4b699764.js';
38
38
  import './GroupDeck.js';
39
39
  import 'react-bootstrap';
40
40
  import Button from 'react-bootstrap/Button';
41
- import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-8a3465af.js';
41
+ import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-1df8b68e.js';
42
42
  import './util-7700fc59.js';
43
43
  import './brightcove-react-player-loader.es-83f53e4e.js';
44
44
  import 'react-bootstrap/Pagination';
@@ -52,9 +52,9 @@ import { _ as _Object$keys } from './keys-941eccc4.js';
52
52
  import 'react-bootstrap/Dropdown';
53
53
  import getKeywords from './getKeywords.js';
54
54
  import getSeriesDetail from './getSeriesDetail.js';
55
- import 'nookies';
56
- import getQuery from './getQuery.js';
55
+ import './index-db3bb315.js';
57
56
  import getRelatedArticle from './getRelatedArticle.js';
57
+ import getQuery from './getQuery.js';
58
58
  import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-962c9cf6.js';
59
59
  import urlFor from './urlFor.js';
60
60
 
@@ -132,9 +132,9 @@ var DocumentGroup = function DocumentGroup(_ref) {
132
132
  style: { display: 'flex', flexDirection: 'column', padding: '0 1rem', justifyContent: thumbnailUrl ? 'center' : 'flex-start', alignItems: 'center' } },
133
133
  thumbnailUrl && React__default.createElement('img', { style: { maxWidth: '220px', maxHeight: '100px', marginTop: '1rem' }, src: thumbnailUrl, alt: name }),
134
134
  !thumbnailUrl && React__default.createElement('p', {
135
- style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main_39 ? 'left' : 'right', marginTop: '.25rem' },
135
+ style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main_36 ? 'left' : 'right', marginTop: '.25rem' },
136
136
  dangerouslySetInnerHTML: { __html: name } }),
137
- main_39 && !thumbnailUrl && React__default.createElement(
137
+ main_36 && !thumbnailUrl && React__default.createElement(
138
138
  'style',
139
139
  { jsx: 'true' },
140
140
  '\n a.doc-group {\n display: block !important;\n padding: 0!important;\n }\n '
@@ -880,7 +880,7 @@ var Article = function Article(props) {
880
880
  React__default.createElement(
881
881
  'div',
882
882
  { className: 'ad-box', style: { textAlign: 'center' } },
883
- main_39 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
883
+ main_36 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
884
884
  if (index === 0) {
885
885
  return React__default.createElement(
886
886
  'div',
@@ -947,7 +947,7 @@ var Article = function Article(props) {
947
947
  renderIsiContent(props.article)
948
948
  )
949
949
  ),
950
- main_39 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
950
+ main_36 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
951
951
  if (index > 0) {
952
952
  return React__default.createElement(
953
953
  'div',
@@ -998,7 +998,8 @@ var ArticleQueue = function ArticleQueue(props) {
998
998
  cpModificationRequired = _props$cpModification === undefined ? false : _props$cpModification,
999
999
  _props$authorPrefix = props.authorPrefix,
1000
1000
  authorPrefix = _props$authorPrefix === undefined ? 'authors' : _props$authorPrefix,
1001
- showRelatedArticles = props.showRelatedArticles;
1001
+ showRelatedArticles = props.showRelatedArticles,
1002
+ canonicalTag = props.canonicalTag;
1002
1003
 
1003
1004
 
1004
1005
  var firstArticle = function firstArticle() {
@@ -1019,7 +1020,7 @@ var ArticleQueue = function ArticleQueue(props) {
1019
1020
  });
1020
1021
  var targeting = getTargeting({ article: activeArticle, cpModificationRequired: cpModificationRequired, position: props.position, prevUrl: prevUrl });
1021
1022
 
1022
- if (!main_39) {
1023
+ if (!main_36) {
1023
1024
  lib_3.getGoogletag().then(function (googletag) {
1024
1025
  if (window.googletag && googletag.pubadsReady) {
1025
1026
  var slots = googletag.pubads().getSlots();
@@ -1037,7 +1038,7 @@ var ArticleQueue = function ArticleQueue(props) {
1037
1038
  });
1038
1039
  }
1039
1040
  //Refresh leaderboard ad on mobile
1040
- if (main_39) {
1041
+ if (main_36) {
1041
1042
  var leaderboardSlotId = '';
1042
1043
  lib_3.getGoogletag().then(function (googletag) {
1043
1044
  if (window.googletag && googletag.pubadsReady) {
@@ -1155,7 +1156,9 @@ var ArticleQueue = function ArticleQueue(props) {
1155
1156
  document.querySelector('meta[name="twitter:image"]').setAttribute('content', meta.shareImage);
1156
1157
  document.querySelector('meta[name="twitter:site"]').setAttribute('content', meta.shareVia);
1157
1158
  document.querySelector('meta[name="twitter:description"]').setAttribute('content', meta.shareSummary);
1158
- document.querySelector('link[rel="canonical"]').setAttribute('href', meta.shareUrl);
1159
+ if (canonicalTag) {
1160
+ document.querySelector('link[rel="canonical"]').setAttribute('href', meta.shareUrl);
1161
+ }
1159
1162
  };
1160
1163
 
1161
1164
  var onChangeArticle = function onChangeArticle(path, visibility, meta) {
@@ -1229,7 +1232,8 @@ var Articles = function Articles(props) {
1229
1232
  shareOptions = props.shareOptions,
1230
1233
  WAds = props.WAds,
1231
1234
  regionalPages = props.regionalPages,
1232
- nationalPage = props.nationalPage;
1235
+ nationalPage = props.nationalPage,
1236
+ canonicalTag = props.canonicalTag;
1233
1237
  var taxonomyMapping = article.taxonomyMapping,
1234
1238
  _article$url = article.url;
1235
1239
  _article$url = _article$url === undefined ? {
@@ -1275,7 +1279,7 @@ var Articles = function Articles(props) {
1275
1279
  Ads: WAds,
1276
1280
  regionalPages: regionalPages,
1277
1281
  nationalPage: nationalPage
1278
- }, _defineProperty(_extends2, 'pageview', pageview), _defineProperty(_extends2, 'onVote', function onVote() {}), _defineProperty(_extends2, 'ISIContent', ISIContent), _defineProperty(_extends2, 'videoAccountIDs', videoAccountIDs), _defineProperty(_extends2, 'sponsoredTaxonomies', []), _defineProperty(_extends2, 'cpModificationRequired', cpModificationRequired), _defineProperty(_extends2, 'Settings', Settings), _extends2), props));
1282
+ }, _defineProperty(_extends2, 'pageview', pageview), _defineProperty(_extends2, 'onVote', function onVote() {}), _defineProperty(_extends2, 'ISIContent', ISIContent), _defineProperty(_extends2, 'videoAccountIDs', videoAccountIDs), _defineProperty(_extends2, 'sponsoredTaxonomies', []), _defineProperty(_extends2, 'cpModificationRequired', cpModificationRequired), _defineProperty(_extends2, 'Settings', Settings), _defineProperty(_extends2, 'canonicalTag', canonicalTag), _extends2), props));
1279
1283
  };
1280
1284
 
1281
1285
  var _this$1 = undefined;
@@ -1293,7 +1297,9 @@ var View = function View(props) {
1293
1297
  prevUrl = props.prevUrl,
1294
1298
  pageview = props.pageview,
1295
1299
  _props$showRelatedArt = props.showRelatedArticles,
1296
- showRelatedArticles = _props$showRelatedArt === undefined ? false : _props$showRelatedArt;
1300
+ showRelatedArticles = _props$showRelatedArt === undefined ? false : _props$showRelatedArt,
1301
+ _props$canonicalTag = props.canonicalTag,
1302
+ canonicalTag = _props$canonicalTag === undefined ? true : _props$canonicalTag;
1297
1303
  var _props$article = props.article,
1298
1304
  _props$article$passwo = _props$article.passwordLock,
1299
1305
  passwordLock = _props$article$passwo === undefined ? false : _props$article$passwo,
@@ -1414,7 +1420,7 @@ var View = function View(props) {
1414
1420
  content: shareOptions.shareSummary ? '' + shareOptions.shareSummary + (currentPage > 0 ? ' | Page ' + currentPage : '') : '' + (currentPage > 0 ? ' | Page ' + currentPage : ''),
1415
1421
  key: 'twitter:description'
1416
1422
  }),
1417
- React__default.createElement('link', { rel: 'canonical', href: shareOptions.shareUrl, key: 'canonical' }),
1423
+ canonicalTag && React__default.createElement('link', { rel: 'canonical', href: shareOptions.shareUrl, key: 'canonical' }),
1418
1424
  React__default.createElement(
1419
1425
  'noscript',
1420
1426
  null,
@@ -1422,7 +1428,7 @@ var View = function View(props) {
1422
1428
  props.article.seriesDetail && props.article.seriesDetail.nextUrl && React__default.createElement('link', { rel: 'next', href: props.article.seriesDetail.nextUrl })
1423
1429
  )
1424
1430
  ),
1425
- !needInfiniteScroll ? React__default.createElement(Article, _extends({ infiniteScroll: false, showRelatedArticles: showRelatedArticles }, props)) : React__default.createElement(Articles, _extends({ infiniteScroll: true, showRelatedArticles: showRelatedArticles }, props))
1431
+ !needInfiniteScroll ? React__default.createElement(Article, _extends({ infiniteScroll: false, showRelatedArticles: showRelatedArticles }, props)) : React__default.createElement(Articles, _extends({ infiniteScroll: true, showRelatedArticles: showRelatedArticles, canonicalTag: canonicalTag }, props))
1426
1432
  );
1427
1433
  };
1428
1434
 
@@ -4,9 +4,9 @@ import './core.get-iterator-method-66cf57ee.js';
4
4
  import './web.dom.iterable-5c830d3d.js';
5
5
  import React__default from 'react';
6
6
  import 'prop-types';
7
- import { m as moment } from './moment-12415288.js';
7
+ import { m as moment } from './moment-e2f9b20c.js';
8
8
  import 'react-dom';
9
- import { i as imageUrlBuilder } from './index-51a80699.js';
9
+ import { i as imageUrlBuilder } from './index-3849e3fe.js';
10
10
  import { L as LazyLoad } from './index-5f9f807a.js';
11
11
  import { c as clean_html_1 } from './entities-7cc3bf45.js';
12
12
  import './slicedToArray-a58d7edf.js';
@@ -9,7 +9,7 @@ import './_is-array-ced12663.js';
9
9
  import React__default, { useRef, useState, useEffect } from 'react';
10
10
  import 'prop-types';
11
11
  import 'react-dom';
12
- import { i as imageUrlBuilder } from './index-51a80699.js';
12
+ import { i as imageUrlBuilder } from './index-3849e3fe.js';
13
13
  import { L as LazyLoad } from './index-5f9f807a.js';
14
14
  import { _ as _slicedToArray } from './slicedToArray-a58d7edf.js';
15
15
  import { s as smoothscroll, g as getYoutubeId } from './smoothscroll-4b699764.js';