@mjhls/mjh-framework 1.0.625 → 1.0.626-iOS-chrome-fix-v2

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 (141) 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 +249 -300
  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 +2 -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 +27 -21
  56. package/dist/cjs/YahooHero.js +2 -2
  57. package/dist/cjs/YoutubeGroup.js +1 -1
  58. package/dist/cjs/getSerializers.js +7 -7
  59. package/dist/cjs/{index-77531536.js → index-2cc1225c.js} +10 -10
  60. package/dist/cjs/{index-5be2866f.js → index-3294d3bc.js} +1 -1
  61. package/dist/cjs/{index-b5eb3ff8.js → index-39beccb3.js} +18 -18
  62. package/dist/cjs/{index-f7ee1612.js → index-fa3cec70.js} +6 -4
  63. package/dist/cjs/{index.es-ab3f2690.js → index.es-9110add6.js} +1 -3
  64. package/dist/cjs/index.js +13 -14
  65. package/dist/cjs/{inherits-dca612fa.js → inherits-227da8e1.js} +4 -4
  66. package/dist/cjs/{lodash-fc2922d0.js → lodash-7fd85bcf.js} +71 -22
  67. package/dist/cjs/{main-bc4db521.js → main-a4cb15bb.js} +36 -66
  68. package/dist/cjs/{moment-66a6a284.js → moment-575fe24c.js} +1 -1
  69. package/dist/cjs/urlFor.js +1 -1
  70. package/dist/esm/AD.js +1 -1
  71. package/dist/esm/AD300x250.js +3 -3
  72. package/dist/esm/AD300x250x600.js +3 -3
  73. package/dist/esm/AD728x90.js +4 -4
  74. package/dist/esm/ADFloatingFooter.js +2 -2
  75. package/dist/esm/ADGutter.js +2 -2
  76. package/dist/esm/ADSkyscraper.js +2 -2
  77. package/dist/esm/ADSponsoredResources.js +2 -2
  78. package/dist/esm/ADWebcast.js +2 -2
  79. package/dist/esm/ADWelcome.js +2 -2
  80. package/dist/esm/AdSlot.js +2 -2
  81. package/dist/esm/AdSlotsProvider.js +1 -1
  82. package/dist/esm/ArticleQueue.js +11 -11
  83. package/dist/esm/ArticleSeriesListing.js +4 -4
  84. package/dist/esm/Auth.js +249 -300
  85. package/dist/esm/{BlockContent-a614acdf.js → BlockContent-c409aca5.js} +1 -1
  86. package/dist/esm/CMEDeck.js +5 -5
  87. package/dist/esm/Column3.js +4 -4
  88. package/dist/esm/ConferenceArticleCard.js +2 -2
  89. package/dist/esm/DeckContent.js +7 -7
  90. package/dist/esm/DeckQueue.js +6 -6
  91. package/dist/esm/{Dfp-40c70a33.js → Dfp-380bef62.js} +1 -1
  92. package/dist/esm/EventsDeck.js +5 -5
  93. package/dist/esm/ExternalResources.js +7 -7
  94. package/dist/esm/Feature.js +3 -3
  95. package/dist/esm/ForbesHero.js +2 -2
  96. package/dist/esm/GridContent.js +11 -11
  97. package/dist/esm/GridHero.js +2 -2
  98. package/dist/esm/GroupDeck.js +1 -1
  99. package/dist/esm/HamMagazine.js +4 -4
  100. package/dist/esm/Hero.js +1 -1
  101. package/dist/esm/HorizontalHero.js +2 -2
  102. package/dist/esm/IssueContentDeck.js +2 -2
  103. package/dist/esm/IssueDeck.js +2 -2
  104. package/dist/esm/IssueLanding.js +8 -8
  105. package/dist/esm/LeftNav.js +2 -2
  106. package/dist/esm/MasterDeck.js +9 -9
  107. package/dist/esm/NavMagazine.js +4 -4
  108. package/dist/esm/NavNative.js +2 -2
  109. package/dist/esm/OncliveHero.js +2 -2
  110. package/dist/esm/OncliveLargeHero.js +2 -2
  111. package/dist/esm/PartnerDetailListing.js +1210 -14
  112. package/dist/esm/PublicationDeck.js +2 -2
  113. package/dist/esm/QueueDeckExpanded.js +10 -10
  114. package/dist/esm/RecentNews.js +2 -2
  115. package/dist/esm/RelatedContent.js +2 -2
  116. package/dist/esm/{SocialSearchComponent-00385695.js → SocialSearchComponent-74c5add5.js} +5 -3
  117. package/dist/esm/TaxonomyCard.js +2 -2
  118. package/dist/esm/TemplateNormal.js +3 -3
  119. package/dist/esm/ThumbnailCard.js +1 -1
  120. package/dist/esm/Ustream.js +2 -2
  121. package/dist/esm/VerticalHero.js +2 -2
  122. package/dist/esm/VideoSeriesListing.js +4 -4
  123. package/dist/esm/View.js +26 -20
  124. package/dist/esm/YahooHero.js +2 -2
  125. package/dist/esm/YoutubeGroup.js +1 -1
  126. package/dist/esm/getSerializers.js +6 -6
  127. package/dist/esm/{index-8a3465af.js → index-1df8b68e.js} +9 -9
  128. package/dist/esm/{index-51a80699.js → index-3849e3fe.js} +18 -18
  129. package/dist/esm/{index-93ec3c59.js → index-3f4dd6f2.js} +6 -4
  130. package/dist/esm/{index-d2f90501.js → index-ef6d5dcf.js} +1 -1
  131. package/dist/esm/{index.es-938a3a58.js → index.es-29c1cef5.js} +1 -3
  132. package/dist/esm/index.js +12 -13
  133. package/dist/esm/{lodash-17fdfebb.js → lodash-ec8c6b48.js} +71 -22
  134. package/dist/esm/{main-7255814e.js → main-5d1e4bd3.js} +34 -65
  135. package/dist/esm/{moment-12415288.js → moment-e2f9b20c.js} +1 -1
  136. package/dist/esm/urlFor.js +1 -1
  137. package/package.json +3 -3
  138. /package/dist/cjs/{ADInfeed-ce11d87d.js → ADInfeed-cbdb3a85.js} +0 -0
  139. /package/dist/cjs/{ADlgInfeed-7fc40444.js → ADlgInfeed-abcaf930.js} +0 -0
  140. /package/dist/esm/{ADInfeed-5fb6c05e.js → ADInfeed-cab1e5a5.js} +0 -0
  141. /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';
@@ -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';
@@ -13,18 +13,18 @@ import './web.dom.iterable-5c830d3d.js';
13
13
  import './typeof-f11fd438.js';
14
14
  import './_is-array-ced12663.js';
15
15
  import 'react';
16
- import './index-93ec3c59.js';
16
+ import './index-3f4dd6f2.js';
17
17
  import 'prop-types';
18
18
  import 'react-bootstrap/Row';
19
19
  import 'react-bootstrap/Col';
20
- import './moment-12415288.js';
20
+ import './moment-e2f9b20c.js';
21
21
  import 'next/router';
22
22
  import './isSymbol-47f5ff3b.js';
23
23
  import './debounce-a0d9abca.js';
24
24
  import 'react-dom';
25
- import './index-51a80699.js';
25
+ import './index-3849e3fe.js';
26
26
  import './index-5f9f807a.js';
27
- import './main-7255814e.js';
27
+ import './main-5d1e4bd3.js';
28
28
  import './entities-7cc3bf45.js';
29
29
  import './stringify-feadff37.js';
30
30
  import './slicedToArray-a58d7edf.js';
@@ -32,12 +32,12 @@ import './asyncToGenerator-d25aac66.js';
32
32
  import './_set-species-75f77d40.js';
33
33
  import './beam-c40d77ae.js';
34
34
  import './AdSlot.js';
35
- import './BlockContent-a614acdf.js';
35
+ import './BlockContent-c409aca5.js';
36
36
  import './smoothscroll-4b699764.js';
37
37
  import './GroupDeck.js';
38
38
  import 'react-bootstrap';
39
39
  import 'react-bootstrap/Button';
40
- export { g as default } from './index-8a3465af.js';
40
+ export { g as default } from './index-1df8b68e.js';
41
41
  import './util-7700fc59.js';
42
42
  import './brightcove-react-player-loader.es-83f53e4e.js';
43
43
  import 'react-bootstrap/Pagination';
@@ -3,20 +3,20 @@ import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-2
3
3
  import { _ as _extends } from './extends-229166d5.js';
4
4
  import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-a15d91fe.js';
5
5
  import React__default, { useState, useEffect, useRef } from 'react';
6
- import { l as lib_3 } from './index-93ec3c59.js';
6
+ import { l as lib_3 } from './index-3f4dd6f2.js';
7
7
  import PropTypes from 'prop-types';
8
8
  import Row from 'react-bootstrap/Row';
9
9
  import Col from 'react-bootstrap/Col';
10
- import { m as moment } from './moment-12415288.js';
10
+ import { m as moment } from './moment-e2f9b20c.js';
11
11
  import Router, { useRouter } from 'next/router';
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 main_16, c as main_38, m as main_39 } from './main-7255814e.js';
14
+ import { b as main_16, c as main_35, m as main_36 } from './main-5d1e4bd3.js';
15
15
  import { h as html_decode_1 } from './entities-7cc3bf45.js';
16
16
  import { _ as _slicedToArray } from './slicedToArray-a58d7edf.js';
17
17
  import { B as Beam, S as Segment } from './beam-c40d77ae.js';
18
18
  import DFPAdSlot from './AdSlot.js';
19
- import { B as BlockContent } from './BlockContent-a614acdf.js';
19
+ import { B as BlockContent } from './BlockContent-c409aca5.js';
20
20
  import { g as getYoutubeId } from './smoothscroll-4b699764.js';
21
21
  import GroupDeck from './GroupDeck.js';
22
22
  import { Carousel, Table, Figure as Figure$1, Button, ProgressBar, Card, Row as Row$1, Col as Col$1 } from 'react-bootstrap';
@@ -7480,7 +7480,7 @@ var Poll = function Poll(_ref) {
7480
7480
  );
7481
7481
  };
7482
7482
 
7483
- var numberOfPaginations = main_38 ? 4 : 10;
7483
+ var numberOfPaginations = main_35 ? 4 : 10;
7484
7484
 
7485
7485
  var Quiz = function Quiz(_ref) {
7486
7486
  var quizzes = _ref.quizzes,
@@ -7593,7 +7593,7 @@ var Quiz = function Quiz(_ref) {
7593
7593
  var renderPagination = function renderPagination() {
7594
7594
  return React__default.createElement(
7595
7595
  Pagination,
7596
- { className: 'p-0 m-0', size: main_38 && 'sm' },
7596
+ { className: 'p-0 m-0', size: main_35 && 'sm' },
7597
7597
  React__default.createElement(Pagination.First, { onClick: function onClick() {
7598
7598
  return changePage('first');
7599
7599
  }, disabled: currentPage === 1 }),
@@ -8175,7 +8175,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8175
8175
  //const activeArticle = path
8176
8176
  //let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
8177
8177
 
8178
- if (!main_39) {
8178
+ if (!main_36) {
8179
8179
  lib_3.getGoogletag().then(function (googletag) {
8180
8180
  if (window.googletag && googletag.pubadsReady) {
8181
8181
  lib_3.refresh();
@@ -8183,7 +8183,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8183
8183
  });
8184
8184
  }
8185
8185
  //Refresh leaderboard ad on mobile
8186
- if (main_39) {
8186
+ if (main_36) {
8187
8187
  var leaderboardSlotId = '';
8188
8188
  lib_3.getGoogletag().then(function (googletag) {
8189
8189
  if (window.googletag && googletag.pubadsReady) {
@@ -58,35 +58,35 @@ function parseSource(source) {
58
58
  if (typeof source === 'string' && isUrl(source)) {
59
59
  // Someone passed an existing image url?
60
60
  image = {
61
- asset: { _ref: urlToId(source) },
61
+ asset: { _ref: urlToId(source) }
62
62
  };
63
63
  }
64
64
  else if (typeof source === 'string') {
65
65
  // Just an asset id
66
66
  image = {
67
- asset: { _ref: source },
67
+ asset: { _ref: source }
68
68
  };
69
69
  }
70
70
  else if (isRef(source)) {
71
71
  // We just got passed an asset directly
72
72
  image = {
73
- asset: source,
73
+ asset: source
74
74
  };
75
75
  }
76
76
  else if (isAsset(source)) {
77
77
  // If we were passed an image asset document
78
78
  image = {
79
79
  asset: {
80
- _ref: source._id || '',
81
- },
80
+ _ref: source._id || ''
81
+ }
82
82
  };
83
83
  }
84
84
  else if (isAssetStub(source)) {
85
85
  // If we were passed a partial asset (`url`, but no `_id`)
86
86
  image = {
87
87
  asset: {
88
- _ref: urlToId(source.asset.url),
89
- },
88
+ _ref: urlToId(source.asset.url)
89
+ }
90
90
  };
91
91
  }
92
92
  else if (typeof source.asset === 'object') {
@@ -127,7 +127,7 @@ function applyDefaults(image) {
127
127
  left: 0,
128
128
  top: 0,
129
129
  bottom: 0,
130
- right: 0,
130
+ right: 0
131
131
  };
132
132
  }
133
133
  if (!result.hotspot) {
@@ -135,7 +135,7 @@ function applyDefaults(image) {
135
135
  x: 0.5,
136
136
  y: 0.5,
137
137
  height: 1.0,
138
- width: 1.0,
138
+ width: 1.0
139
139
  };
140
140
  }
141
141
  return result;
@@ -182,7 +182,7 @@ exports.SPEC_NAME_TO_URL_NAME_MAPPINGS = [
182
182
  ['crop', 'crop'],
183
183
  ['saturation', 'sat'],
184
184
  ['auto', 'auto'],
185
- ['dpr', 'dpr'],
185
+ ['dpr', 'dpr']
186
186
  ];
187
187
  function urlForImage(options) {
188
188
  var spec = __assign({}, (options || {}));
@@ -201,7 +201,7 @@ function urlForImage(options) {
201
201
  left: cropLeft,
202
202
  top: cropTop,
203
203
  width: Math.round(asset.width - image.crop.right * asset.width - cropLeft),
204
- height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop),
204
+ height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop)
205
205
  };
206
206
  // Compute hot spot rect in terms of pixel coordinates
207
207
  var hotSpotVerticalRadius = (image.hotspot.height * asset.height) / 2;
@@ -212,7 +212,7 @@ function urlForImage(options) {
212
212
  left: hotSpotCenterX - hotSpotHorizontalRadius,
213
213
  top: hotSpotCenterY - hotSpotVerticalRadius,
214
214
  right: hotSpotCenterX + hotSpotHorizontalRadius,
215
- bottom: hotSpotCenterY + hotSpotVerticalRadius,
215
+ bottom: hotSpotCenterY + hotSpotVerticalRadius
216
216
  };
217
217
  // If irrelevant, or if we are requested to: don't perform crop/fit based on
218
218
  // the crop/hotspot.
@@ -294,7 +294,7 @@ function fit(source, spec) {
294
294
  left: Math.round(left),
295
295
  top: Math.round(top_2),
296
296
  width: Math.round(width),
297
- height: Math.round(height),
297
+ height: Math.round(height)
298
298
  };
299
299
  }
300
300
  else {
@@ -316,13 +316,13 @@ function fit(source, spec) {
316
316
  left: Math.max(0, Math.floor(left)),
317
317
  top: Math.max(0, Math.floor(top_3)),
318
318
  width: Math.round(width),
319
- height: Math.round(height),
319
+ height: Math.round(height)
320
320
  };
321
321
  }
322
322
  return {
323
323
  width: imgWidth,
324
324
  height: imgHeight,
325
- rect: cropRect,
325
+ rect: cropRect
326
326
  };
327
327
  }
328
328
 
@@ -380,7 +380,7 @@ function urlBuilder(options) {
380
380
  return new ImageUrlBuilder(null, {
381
381
  baseUrl: apiHost.replace(/^https:\/\/api\./, 'https://cdn.'),
382
382
  projectId: projectId,
383
- dataset: dataset,
383
+ dataset: dataset
384
384
  });
385
385
  }
386
386
  // Or just accept the options as given
@@ -393,7 +393,7 @@ var ImageUrlBuilder = /** @class */ (function () {
393
393
  ? __assign(__assign({}, (parent.options || {})), (options || {})) : __assign({}, (options || {})); // Copy options
394
394
  }
395
395
  ImageUrlBuilder.prototype.withOptions = function (options) {
396
- var baseUrl = options.baseUrl || this.options.baseUrl;
396
+ var baseUrl = options.baseUrl || '';
397
397
  var newOptions = { baseUrl: baseUrl };
398
398
  for (var key in options) {
399
399
  if (options.hasOwnProperty(key)) {
@@ -521,7 +521,7 @@ var ImageUrlBuilder = /** @class */ (function () {
521
521
  ImageUrlBuilder.prototype.url = function () {
522
522
  return urlForImage_1$1.default(this.options);
523
523
  };
524
- // Alias for url()
524
+ // Synonym for url()
525
525
  ImageUrlBuilder.prototype.toString = function () {
526
526
  return this.url();
527
527
  };