@mjhls/mjh-framework 1.0.640 → 1.0.642-iOS-mobile-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 (146) 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 +11 -11
  15. package/dist/cjs/ArticleSeriesListing.js +4 -4
  16. package/dist/cjs/Auth.js +255 -506
  17. package/dist/cjs/{BlockContent-88f69acd.js → BlockContent-80b15fac.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 +7 -7
  22. package/dist/cjs/DeckQueue.js +6 -6
  23. package/dist/cjs/{Dfp-ffaf5981.js → Dfp-7a66946e.js} +1 -1
  24. package/dist/cjs/EventsDeck.js +5 -5
  25. package/dist/cjs/ExternalResources.js +7 -7
  26. package/dist/cjs/Feature.js +3 -3
  27. package/dist/cjs/ForbesHero.js +2 -2
  28. package/dist/cjs/GridContent.js +11 -11
  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 +9 -9
  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 +1211 -14
  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-bf750093.js → SocialSearchComponent-b52e39a7.js} +5 -5
  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/VideoSeriesCard.js +2 -2
  55. package/dist/cjs/VideoSeriesListing.js +3 -3
  56. package/dist/cjs/View.js +15 -15
  57. package/dist/cjs/YahooHero.js +2 -2
  58. package/dist/cjs/YoutubeGroup.js +1 -1
  59. package/dist/cjs/getRelatedArticle.js +354 -5
  60. package/dist/cjs/getSerializers.js +6 -6
  61. package/dist/cjs/{index-2d0a4911.js → index-099d45ae.js} +6 -4
  62. package/dist/cjs/{index-5be2866f.js → index-3294d3bc.js} +1 -1
  63. package/dist/cjs/{index-b5eb3ff8.js → index-39beccb3.js} +18 -18
  64. package/dist/cjs/{index-8c869759.js → index-40bd0e4f.js} +85 -27
  65. package/dist/cjs/index-bd6c9f56.js +211 -0
  66. package/dist/cjs/{index.es-ab3f2690.js → index.es-9110add6.js} +1 -3
  67. package/dist/cjs/index.js +15 -16
  68. package/dist/cjs/{lodash-fc2922d0.js → lodash-7fd85bcf.js} +71 -22
  69. package/dist/cjs/{main-b6c96c8d.js → main-a4cb15bb.js} +36 -67
  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-4f966af0.js → Dfp-64ed29cf.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 +5 -5
  110. package/dist/esm/NavNative.js +2 -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-6d144699.js → SocialSearchComponent-a45b3379.js} +5 -5
  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/VideoSeriesCard.js +2 -2
  125. package/dist/esm/VideoSeriesListing.js +3 -3
  126. package/dist/esm/View.js +15 -15
  127. package/dist/esm/YahooHero.js +2 -2
  128. package/dist/esm/YoutubeGroup.js +1 -1
  129. package/dist/esm/getRelatedArticle.js +354 -5
  130. package/dist/esm/getSerializers.js +6 -6
  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-ccfe8253.js → index-c017d31a.js} +85 -27
  134. package/dist/esm/index-db3bb315.js +207 -0
  135. package/dist/esm/{index-d2f90501.js → index-ef6d5dcf.js} +1 -1
  136. package/dist/esm/{index.es-938a3a58.js → index.es-29c1cef5.js} +1 -3
  137. package/dist/esm/index.js +14 -15
  138. package/dist/esm/{lodash-17fdfebb.js → lodash-ec8c6b48.js} +71 -22
  139. package/dist/esm/{main-0465b2a0.js → main-5d1e4bd3.js} +34 -65
  140. package/dist/esm/{moment-12415288.js → moment-e2f9b20c.js} +1 -1
  141. package/dist/esm/urlFor.js +1 -1
  142. package/package.json +3 -3
  143. /package/dist/cjs/{ADInfeed-350decaa.js → ADInfeed-bdb4dc62.js} +0 -0
  144. /package/dist/cjs/{ADlgInfeed-7d61609b.js → ADlgInfeed-56376f48.js} +0 -0
  145. /package/dist/esm/{ADInfeed-fd7a62b1.js → ADInfeed-34a87706.js} +0 -0
  146. /package/dist/esm/{ADlgInfeed-79c771d6.js → ADlgInfeed-2a864f1d.js} +0 -0
@@ -4,20 +4,20 @@ 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-9ddef7b3.js';
5
5
  import { _ as _typeof$1 } from './typeof-fea75829.js';
6
6
  import React__default, { useState, useEffect, useRef } from 'react';
7
- import { l as lib_3 } from './index-93ec3c59.js';
7
+ import { l as lib_3 } from './index-3f4dd6f2.js';
8
8
  import PropTypes from 'prop-types';
9
9
  import Row from 'react-bootstrap/Row';
10
10
  import Col from 'react-bootstrap/Col';
11
- import { m as moment } from './moment-12415288.js';
11
+ import { m as moment } from './moment-e2f9b20c.js';
12
12
  import Router, { useRouter } from 'next/router';
13
- import { i as imageUrlBuilder } from './index-51a80699.js';
13
+ import { i as imageUrlBuilder } from './index-3849e3fe.js';
14
14
  import { L as LazyLoad } from './index-5f9f807a.js';
15
- import { b as main_16, c as main_38, m as main_39 } from './main-0465b2a0.js';
15
+ import { b as main_16, c as main_35, m as main_36 } from './main-5d1e4bd3.js';
16
16
  import { h as html_decode_1 } from './entities-7cc3bf45.js';
17
17
  import { _ as _slicedToArray } from './slicedToArray-5fb01661.js';
18
18
  import { B as Beam, S as Segment } from './beam-c4d8f8f6.js';
19
19
  import DFPAdSlot from './AdSlot.js';
20
- import { B as BlockContent } from './BlockContent-a614acdf.js';
20
+ import { B as BlockContent } from './BlockContent-c409aca5.js';
21
21
  import { g as getYoutubeId } from './smoothscroll-4b699764.js';
22
22
  import GroupDeck from './GroupDeck.js';
23
23
  import { Carousel, Table, Figure as Figure$1, Button, ProgressBar, Card, Row as Row$1, Col as Col$1 } from 'react-bootstrap';
@@ -7497,7 +7497,7 @@ var Poll = function Poll(_ref) {
7497
7497
  );
7498
7498
  };
7499
7499
 
7500
- var numberOfPaginations = main_38 ? 4 : 10;
7500
+ var numberOfPaginations = main_35 ? 4 : 10;
7501
7501
 
7502
7502
  var Quiz = function Quiz(_ref) {
7503
7503
  var quizzes = _ref.quizzes,
@@ -7610,7 +7610,7 @@ var Quiz = function Quiz(_ref) {
7610
7610
  var renderPagination = function renderPagination() {
7611
7611
  return React__default.createElement(
7612
7612
  Pagination,
7613
- { className: 'p-0 m-0', size: main_38 && 'sm' },
7613
+ { className: 'p-0 m-0', size: main_35 && 'sm' },
7614
7614
  React__default.createElement(Pagination.First, { onClick: function onClick() {
7615
7615
  return changePage('first');
7616
7616
  }, disabled: currentPage === 1 }),
@@ -8030,10 +8030,10 @@ var ArticleSeries = function ArticleSeries(_ref) {
8030
8030
  var refArray = useRef([]);
8031
8031
  var adRefArray = useRef([]);
8032
8032
 
8033
- var _useState = useState(100),
8034
- _useState2 = _slicedToArray(_useState, 2),
8035
- NavoffsetTop = _useState2[0],
8036
- setNavoffsetTop = _useState2[1];
8033
+ var _ref2 = main_36 ? useState(100) : useState(-25),
8034
+ _ref3 = _slicedToArray(_ref2, 2),
8035
+ NavoffsetTop = _ref3[0],
8036
+ setNavoffsetTop = _ref3[1];
8037
8037
 
8038
8038
  var PrevNextCards = function PrevNextCards(show, articleNum) {
8039
8039
  var articles = [];
@@ -8089,15 +8089,15 @@ var ArticleSeries = function ArticleSeries(_ref) {
8089
8089
  });
8090
8090
  };
8091
8091
 
8092
- var _ref2 = router.asPath.split('?')[1] ? useState(router.asPath.split('=')[1]) : useState(null),
8093
- _ref3 = _slicedToArray(_ref2, 2),
8094
- selectedArticle = _ref3[0],
8095
- setSelectedArticle = _ref3[1];
8092
+ var _ref4 = router.asPath.split('?')[1] ? useState(router.asPath.split('=')[1]) : useState(null),
8093
+ _ref5 = _slicedToArray(_ref4, 2),
8094
+ selectedArticle = _ref5[0],
8095
+ setSelectedArticle = _ref5[1];
8096
8096
 
8097
- var _useState3 = useState(false),
8098
- _useState4 = _slicedToArray(_useState3, 2),
8099
- firstLoad = _useState4[0],
8100
- setFirstLoad = _useState4[1];
8097
+ var _useState = useState(false),
8098
+ _useState2 = _slicedToArray(_useState, 2),
8099
+ firstLoad = _useState2[0],
8100
+ setFirstLoad = _useState2[1];
8101
8101
 
8102
8102
  var articleCardClickHandler = function articleCardClickHandler(e) {
8103
8103
  e.preventDefault();
@@ -8108,7 +8108,9 @@ var ArticleSeries = function ArticleSeries(_ref) {
8108
8108
 
8109
8109
  useEffect(function () {
8110
8110
  try {
8111
- setNavoffsetTop(document.getElementById('navbar-ham').offsetHeight - 15);
8111
+ if (main_36) {
8112
+ setNavoffsetTop(document.getElementById('navbar-ham').offsetHeight - 15);
8113
+ }
8112
8114
  } catch (e) {}
8113
8115
  }, []);
8114
8116
 
@@ -8186,8 +8188,10 @@ var ArticleSeries = function ArticleSeries(_ref) {
8186
8188
 
8187
8189
  useEffect(function () {
8188
8190
  if (!firstLoad) {
8189
- if (main_39) {
8191
+ if (main_36) {
8190
8192
  grabLoadedAds();
8193
+ } else {
8194
+ scrollToArticle();
8191
8195
  }
8192
8196
  }
8193
8197
  }, []);
@@ -8208,7 +8212,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8208
8212
  //const activeArticle = path
8209
8213
  //let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
8210
8214
 
8211
- if (!main_39) {
8215
+ if (!main_36) {
8212
8216
  lib_3.getGoogletag().then(function (googletag) {
8213
8217
  if (window.googletag && googletag.pubadsReady) {
8214
8218
  lib_3.refresh();
@@ -8216,7 +8220,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8216
8220
  });
8217
8221
  }
8218
8222
  //Refresh leaderboard ad on mobile
8219
- if (main_39) {
8223
+ if (main_36) {
8220
8224
  var leaderboardSlotId = '';
8221
8225
  lib_3.getGoogletag().then(function (googletag) {
8222
8226
  if (window.googletag && googletag.pubadsReady) {
@@ -8248,7 +8252,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8248
8252
  React__default.createElement(
8249
8253
  'div',
8250
8254
  { className: 'ad-box', style: { textAlign: 'center' } },
8251
- main_39 && Ads.map(function (ad, index) {
8255
+ main_36 && Ads.map(function (ad, index) {
8252
8256
  if (index === 0) {
8253
8257
  return React__default.createElement(
8254
8258
  'div',
@@ -8346,7 +8350,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8346
8350
  React__default.createElement(
8347
8351
  'div',
8348
8352
  { className: 'ad-box', style: { textAlign: 'center' } },
8349
- main_39 && nodes.articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
8353
+ main_36 && nodes.articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
8350
8354
  if (innerIndex === 0) {
8351
8355
  return React__default.createElement(
8352
8356
  'div',
@@ -8541,11 +8545,38 @@ var urlFor$4 = function urlFor(source, client) {
8541
8545
  return builder.image(source).auto('format');
8542
8546
  };
8543
8547
 
8548
+ function useOutsideAlerter$1(ref, container, setOpenImg, setOpenImgSrc) {
8549
+ useEffect(function () {
8550
+ function handleClickOutside(event) {
8551
+ if (ref.current && !ref.current.contains(event.target) && container.current && container.current.className.includes('open')) {
8552
+ setOpenImgSrc('');
8553
+ setOpenImg(false);
8554
+ }
8555
+ }
8556
+ document.addEventListener('mousedown', handleClickOutside);
8557
+ return function () {
8558
+ document.removeEventListener('mousedown', handleClickOutside);
8559
+ };
8560
+ }, [ref]);
8561
+ }
8562
+
8544
8563
  var MultiFigure = function MultiFigure(props) {
8545
8564
  var images = props.node.images,
8546
8565
  client = props.client;
8547
8566
 
8567
+ var _useState = useState(false),
8568
+ _useState2 = _slicedToArray(_useState, 2),
8569
+ openImg = _useState2[0],
8570
+ setOpenImg = _useState2[1];
8548
8571
 
8572
+ var _useState3 = useState(''),
8573
+ _useState4 = _slicedToArray(_useState3, 2),
8574
+ openImgSrc = _useState4[0],
8575
+ setOpenImgSrc = _useState4[1];
8576
+
8577
+ var lightboxImage = useRef(null);
8578
+ var lightboxContainer = useRef(null);
8579
+ useOutsideAlerter$1(lightboxImage, lightboxContainer, setOpenImg, setOpenImgSrc);
8549
8580
  if (images && images.length > 0) {
8550
8581
  return React__default.createElement(
8551
8582
  'div',
@@ -8557,7 +8588,7 @@ var MultiFigure = function MultiFigure(props) {
8557
8588
  return React__default.createElement(
8558
8589
  Col$1,
8559
8590
  { xs: 12, md: 12 / images.length, key: index },
8560
- React__default.createElement(
8591
+ image.link ? React__default.createElement(
8561
8592
  'a',
8562
8593
  _extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
8563
8594
  React__default.createElement(
@@ -8574,14 +8605,41 @@ var MultiFigure = function MultiFigure(props) {
8574
8605
  image.caption
8575
8606
  )
8576
8607
  )
8608
+ ) : React__default.createElement(
8609
+ 'div',
8610
+ { className: 'multi-figure-image-container' },
8611
+ React__default.createElement(
8612
+ LazyLoad,
8613
+ { once: true },
8614
+ React__default.createElement('img', {
8615
+ 'images-count': images.length,
8616
+ className: 'multi-figure-image',
8617
+ src: urlFor$4(image.asset, client).url(),
8618
+ alt: image.alt,
8619
+ onClick: function onClick() {
8620
+ setOpenImgSrc(urlFor$4(image, client).url());
8621
+ setOpenImg(true);
8622
+ }
8623
+ })
8624
+ ),
8625
+ image.caption && React__default.createElement(
8626
+ 'span',
8627
+ { className: 'multi-figure-caption' },
8628
+ image.caption
8629
+ )
8577
8630
  )
8578
8631
  );
8579
8632
  })
8580
8633
  ),
8634
+ React__default.createElement(
8635
+ 'div',
8636
+ { ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
8637
+ React__default.createElement('img', { ref: lightboxImage, src: openImgSrc })
8638
+ ),
8581
8639
  React__default.createElement(
8582
8640
  'style',
8583
8641
  { jsx: 'true' },
8584
- '\n .multi-figure-container {\n margin-bottom: 1rem;\n }\n .multi-figure-image {\n width: 100%;\n height: auto;\n object-fit: cover;\n }\n .multi-figure-image-container {\n padding-right: 0.5rem;\n }\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-figure-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-figure-image[images-count=\'4\'] {\n height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n height: 200px;\n }\n .multi-figure-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-figure-image[images-count=\'4\'] {\n height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n height: 300px;\n }\n }\n\n .multi-figure-caption {\n font-size: 90%;\n color: #6c757d;\n }\n '
8642
+ '\n .multi-figure-container {\n margin-bottom: 1rem;\n }\n .multi-figure-image {\n width: 100%;\n height: auto;\n object-fit: cover;\n }\n .multi-figure-image-container {\n padding-right: 0.5rem;\n }\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-figure-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-figure-image[images-count=\'4\'] {\n height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n height: 200px;\n }\n .multi-figure-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-figure-image[images-count=\'4\'] {\n height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n height: 300px;\n }\n }\n\n .multi-figure-caption {\n font-size: 90%;\n color: #6c757d;\n }\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
8585
8643
  )
8586
8644
  );
8587
8645
  }
@@ -0,0 +1,207 @@
1
+ /*!
2
+ * cookie
3
+ * Copyright(c) 2012-2014 Roman Shtylman
4
+ * Copyright(c) 2015 Douglas Christopher Wilson
5
+ * MIT Licensed
6
+ */
7
+
8
+ /**
9
+ * Module exports.
10
+ * @public
11
+ */
12
+
13
+ var parse_1 = parse;
14
+ var serialize_1 = serialize;
15
+
16
+ /**
17
+ * Module variables.
18
+ * @private
19
+ */
20
+
21
+ var decode = decodeURIComponent;
22
+ var encode = encodeURIComponent;
23
+ var pairSplitRegExp = /; */;
24
+
25
+ /**
26
+ * RegExp to match field-content in RFC 7230 sec 3.2
27
+ *
28
+ * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
29
+ * field-vchar = VCHAR / obs-text
30
+ * obs-text = %x80-FF
31
+ */
32
+
33
+ var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
34
+
35
+ /**
36
+ * Parse a cookie header.
37
+ *
38
+ * Parse the given cookie header string into an object
39
+ * The object has the various cookies as keys(names) => values
40
+ *
41
+ * @param {string} str
42
+ * @param {object} [options]
43
+ * @return {object}
44
+ * @public
45
+ */
46
+
47
+ function parse(str, options) {
48
+ if (typeof str !== 'string') {
49
+ throw new TypeError('argument str must be a string');
50
+ }
51
+
52
+ var obj = {};
53
+ var opt = options || {};
54
+ var pairs = str.split(pairSplitRegExp);
55
+ var dec = opt.decode || decode;
56
+
57
+ for (var i = 0; i < pairs.length; i++) {
58
+ var pair = pairs[i];
59
+ var eq_idx = pair.indexOf('=');
60
+
61
+ // skip things that don't look like key=value
62
+ if (eq_idx < 0) {
63
+ continue;
64
+ }
65
+
66
+ var key = pair.substr(0, eq_idx).trim();
67
+ var val = pair.substr(++eq_idx, pair.length).trim();
68
+
69
+ // quoted values
70
+ if ('"' == val[0]) {
71
+ val = val.slice(1, -1);
72
+ }
73
+
74
+ // only assign once
75
+ if (undefined == obj[key]) {
76
+ obj[key] = tryDecode(val, dec);
77
+ }
78
+ }
79
+
80
+ return obj;
81
+ }
82
+
83
+ /**
84
+ * Serialize data into a cookie header.
85
+ *
86
+ * Serialize the a name value pair into a cookie string suitable for
87
+ * http headers. An optional options object specified cookie parameters.
88
+ *
89
+ * serialize('foo', 'bar', { httpOnly: true })
90
+ * => "foo=bar; httpOnly"
91
+ *
92
+ * @param {string} name
93
+ * @param {string} val
94
+ * @param {object} [options]
95
+ * @return {string}
96
+ * @public
97
+ */
98
+
99
+ function serialize(name, val, options) {
100
+ var opt = options || {};
101
+ var enc = opt.encode || encode;
102
+
103
+ if (typeof enc !== 'function') {
104
+ throw new TypeError('option encode is invalid');
105
+ }
106
+
107
+ if (!fieldContentRegExp.test(name)) {
108
+ throw new TypeError('argument name is invalid');
109
+ }
110
+
111
+ var value = enc(val);
112
+
113
+ if (value && !fieldContentRegExp.test(value)) {
114
+ throw new TypeError('argument val is invalid');
115
+ }
116
+
117
+ var str = name + '=' + value;
118
+
119
+ if (null != opt.maxAge) {
120
+ var maxAge = opt.maxAge - 0;
121
+
122
+ if (isNaN(maxAge) || !isFinite(maxAge)) {
123
+ throw new TypeError('option maxAge is invalid')
124
+ }
125
+
126
+ str += '; Max-Age=' + Math.floor(maxAge);
127
+ }
128
+
129
+ if (opt.domain) {
130
+ if (!fieldContentRegExp.test(opt.domain)) {
131
+ throw new TypeError('option domain is invalid');
132
+ }
133
+
134
+ str += '; Domain=' + opt.domain;
135
+ }
136
+
137
+ if (opt.path) {
138
+ if (!fieldContentRegExp.test(opt.path)) {
139
+ throw new TypeError('option path is invalid');
140
+ }
141
+
142
+ str += '; Path=' + opt.path;
143
+ }
144
+
145
+ if (opt.expires) {
146
+ if (typeof opt.expires.toUTCString !== 'function') {
147
+ throw new TypeError('option expires is invalid');
148
+ }
149
+
150
+ str += '; Expires=' + opt.expires.toUTCString();
151
+ }
152
+
153
+ if (opt.httpOnly) {
154
+ str += '; HttpOnly';
155
+ }
156
+
157
+ if (opt.secure) {
158
+ str += '; Secure';
159
+ }
160
+
161
+ if (opt.sameSite) {
162
+ var sameSite = typeof opt.sameSite === 'string'
163
+ ? opt.sameSite.toLowerCase() : opt.sameSite;
164
+
165
+ switch (sameSite) {
166
+ case true:
167
+ str += '; SameSite=Strict';
168
+ break;
169
+ case 'lax':
170
+ str += '; SameSite=Lax';
171
+ break;
172
+ case 'strict':
173
+ str += '; SameSite=Strict';
174
+ break;
175
+ case 'none':
176
+ str += '; SameSite=None';
177
+ break;
178
+ default:
179
+ throw new TypeError('option sameSite is invalid');
180
+ }
181
+ }
182
+
183
+ return str;
184
+ }
185
+
186
+ /**
187
+ * Try decoding a string using a decoding function.
188
+ *
189
+ * @param {string} str
190
+ * @param {function} decode
191
+ * @private
192
+ */
193
+
194
+ function tryDecode(str, decode) {
195
+ try {
196
+ return decode(str);
197
+ } catch (e) {
198
+ return str;
199
+ }
200
+ }
201
+
202
+ var cookie = {
203
+ parse: parse_1,
204
+ serialize: serialize_1
205
+ };
206
+
207
+ export { cookie as c, parse_1 as p, serialize_1 as s };
@@ -1,5 +1,5 @@
1
1
  import { c as createCommonjsModule, a as commonjsGlobal, g as getCjsExportFromNamespace } from './_commonjsHelpers-0c4b6f40.js';
2
- import { m as moment } from './moment-12415288.js';
2
+ import { m as moment } from './moment-e2f9b20c.js';
3
3
 
4
4
  var momentTimezone = createCommonjsModule(function (module) {
5
5
  //! moment-timezone.js
@@ -263,9 +263,6 @@ var InfiniteScroll = /** @class */ (function (_super) {
263
263
  _this.dragging = false;
264
264
  if (_this.state.pullToRefreshThresholdBreached) {
265
265
  _this.props.refreshFunction && _this.props.refreshFunction();
266
- _this.setState({
267
- pullToRefreshThresholdBreached: false,
268
- });
269
266
  }
270
267
  requestAnimationFrame(function () {
271
268
  // this._infScroll
@@ -372,6 +369,7 @@ var InfiniteScroll = /** @class */ (function (_super) {
372
369
  // update state when new data was sent in
373
370
  this.setState({
374
371
  showLoader: false,
372
+ pullToRefreshThresholdBreached: false,
375
373
  });
376
374
  };
377
375
  InfiniteScroll.prototype.isElementAtBottom = function (target, scrollThreshold) {
package/dist/esm/index.js CHANGED
@@ -14,22 +14,22 @@ import './web.dom.iterable-03c5ba1c.js';
14
14
  import './typeof-fea75829.js';
15
15
  import './_is-array-ced12663.js';
16
16
  import 'react';
17
- import './index-93ec3c59.js';
17
+ import './index-3f4dd6f2.js';
18
18
  import 'prop-types';
19
19
  import 'react-bootstrap/Container';
20
20
  import 'react-bootstrap/Row';
21
21
  import 'react-bootstrap/Col';
22
22
  import 'react-bootstrap/Card';
23
- import './moment-12415288.js';
23
+ import './moment-e2f9b20c.js';
24
24
  import 'next/router';
25
25
  import './isSymbol-47f5ff3b.js';
26
26
  import './debounce-a0d9abca.js';
27
- import './index.es-938a3a58.js';
27
+ import './index.es-29c1cef5.js';
28
28
  import 'react-dom';
29
29
  import './visibility-sensor-0baa4eea.js';
30
- import './index-51a80699.js';
30
+ import './index-3849e3fe.js';
31
31
  import './index-5f9f807a.js';
32
- import './main-0465b2a0.js';
32
+ import './main-5d1e4bd3.js';
33
33
  import './entities-7cc3bf45.js';
34
34
  import './stringify-feadff37.js';
35
35
  import './slicedToArray-5fb01661.js';
@@ -37,10 +37,10 @@ import './asyncToGenerator-271a52f3.js';
37
37
  import './_set-species-41cbf140.js';
38
38
  export { B as Beam, S as Segment } from './beam-c4d8f8f6.js';
39
39
  export { default as AdSlot } from './AdSlot.js';
40
- import './ADInfeed-fd7a62b1.js';
40
+ import './ADInfeed-34a87706.js';
41
41
  export { default as DeckContent } from './DeckContent.js';
42
- import './lodash-17fdfebb.js';
43
- import './ADlgInfeed-79c771d6.js';
42
+ import './lodash-ec8c6b48.js';
43
+ import './ADlgInfeed-2a864f1d.js';
44
44
  import './_arrayMap-818441dd.js';
45
45
  import './get-58d2f7cc.js';
46
46
  export { default as AD } from './AD.js';
@@ -49,7 +49,7 @@ export { default as GridContent } from './GridContent.js';
49
49
  export { default as DeckQueue } from './DeckQueue.js';
50
50
  import 'react-bootstrap/Media';
51
51
  export { default as ThumbnailCard } from './ThumbnailCard.js';
52
- import './BlockContent-a614acdf.js';
52
+ import './BlockContent-c409aca5.js';
53
53
  import './react-social-icons-a7d5c5c7.js';
54
54
  export { default as TaxonomyCard } from './TaxonomyCard.js';
55
55
  export { default as RolesDeck } from './RolesDeck.js';
@@ -69,11 +69,11 @@ export { default as IssueDeck } from './IssueDeck.js';
69
69
  import 'react-bootstrap/Badge';
70
70
  export { default as IssueContentDeck } from './IssueContentDeck.js';
71
71
  import 'react-bootstrap/Spinner';
72
- import './index-d2f90501.js';
72
+ import './index-ef6d5dcf.js';
73
73
  import './js.cookie-6874175c.js';
74
74
  export { default as EventsDeck } from './EventsDeck.js';
75
75
  export { default as CMEDeck } from './CMEDeck.js';
76
- export { g as getSerializers } from './index-ccfe8253.js';
76
+ export { g as getSerializers } from './index-c017d31a.js';
77
77
  import './util-7700fc59.js';
78
78
  import './brightcove-react-player-loader.es-83f53e4e.js';
79
79
  import 'react-bootstrap/Pagination';
@@ -106,7 +106,7 @@ import './index.esm-73e847d2.js';
106
106
  export { default as SocialIcons } from './SocialIcons.js';
107
107
  import 'react-bootstrap/Form';
108
108
  import 'react-bootstrap/FormControl';
109
- import './SocialSearchComponent-6d144699.js';
109
+ import './SocialSearchComponent-a45b3379.js';
110
110
  export { default as NavMagazine } from './NavMagazine.js';
111
111
  export { NavNative } from './NavNative.js';
112
112
  export { default as Search } from './Search.js';
@@ -155,9 +155,9 @@ export { default as ConferenceArticleCard } from './ConferenceArticleCard.js';
155
155
  export { default as KMTracker } from './KMTracker.js';
156
156
  export { default as getSeriesDetail } from './getSeriesDetail.js';
157
157
  export { default as SetCookie } from './SetCookie.js';
158
- import 'nookies';
159
- export { default as getQuery } from './getQuery.js';
158
+ import './index-db3bb315.js';
160
159
  export { default as getRelatedArticle } from './getRelatedArticle.js';
160
+ export { default as getQuery } from './getQuery.js';
161
161
  export { default as Auth } from './Auth.js';
162
162
  import 'swr';
163
163
  import 'passport-local';
@@ -166,5 +166,4 @@ export { g as getTargeting } from './getTargeting-3cc3f97d.js';
166
166
  export { default as View } from './View.js';
167
167
  export { default as urlFor } from './urlFor.js';
168
168
  import './style-inject.es-1f59c1d0.js';
169
- import 'react-twitter-embed';
170
169
  export { default as PartnerDetailListing } from './PartnerDetailListing.js';