@mjhls/mjh-framework 1.0.700 → 1.0.702-beta-v1

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 (152) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +5 -3
  4. package/dist/cjs/AD300x250x600.js +5 -3
  5. package/dist/cjs/AD728x90.js +6 -4
  6. package/dist/cjs/ADFloatingFooter.js +4 -2
  7. package/dist/cjs/ADGutter.js +4 -2
  8. package/dist/cjs/ADSkyscraper.js +4 -2
  9. package/dist/cjs/ADSponsoredResources.js +4 -2
  10. package/dist/cjs/ADWebcast.js +4 -2
  11. package/dist/cjs/ADWelcome.js +4 -2
  12. package/dist/cjs/AdSlot.js +14 -3
  13. package/dist/cjs/AdSlotsProvider.js +2 -2
  14. package/dist/cjs/ArticleCarousel.js +1 -1
  15. package/dist/cjs/ArticleSeriesListing.js +4 -4
  16. package/dist/cjs/Auth.js +455 -306
  17. package/dist/cjs/{BlockContent-88f69acd.js → BlockContent-80b15fac.js} +1 -1
  18. package/dist/cjs/BrowseVideosListing.js +1 -1
  19. package/dist/cjs/CMEDeck.js +5 -5
  20. package/dist/cjs/Column3.js +6 -4
  21. package/dist/cjs/ConferenceArticleCard.js +2 -2
  22. package/dist/cjs/DeckContent.js +7 -7
  23. package/dist/cjs/DeckQueue.js +6 -6
  24. package/dist/cjs/{Dfp-b2bc3b97.js → Dfp-390337bf.js} +1 -1
  25. package/dist/cjs/EventsDeck.js +4 -4
  26. package/dist/cjs/ExternalResources.js +7 -7
  27. package/dist/cjs/Feature.js +3 -3
  28. package/dist/cjs/ForbesHero.js +2 -2
  29. package/dist/cjs/GridContent.js +11 -11
  30. package/dist/cjs/GridHero.js +2 -2
  31. package/dist/cjs/GroupDeck.js +1 -1
  32. package/dist/cjs/HamMagazine.js +4 -4
  33. package/dist/cjs/Hero.js +1 -1
  34. package/dist/cjs/HorizontalHero.js +2 -2
  35. package/dist/cjs/IssueContentDeck.js +2 -2
  36. package/dist/cjs/IssueDeck.js +2 -2
  37. package/dist/cjs/IssueLanding.js +8 -8
  38. package/dist/cjs/LeftNav.js +4 -2
  39. package/dist/cjs/MasterDeck.js +8 -8
  40. package/dist/cjs/NavMagazine.js +4 -4
  41. package/dist/cjs/NavNative.js +3 -3
  42. package/dist/cjs/OncliveHero.js +2 -2
  43. package/dist/cjs/OncliveLargeHero.js +2 -2
  44. package/dist/cjs/PartnerDetailListing.js +10 -10
  45. package/dist/cjs/PublicationDeck.js +2 -2
  46. package/dist/cjs/QueueDeckExpanded.js +10 -10
  47. package/dist/cjs/RecentNews.js +2 -2
  48. package/dist/cjs/RelatedContent.js +2 -2
  49. package/dist/cjs/{SocialSearchComponent-75c51b47.js → SocialSearchComponent-56d49a1a.js} +5 -5
  50. package/dist/cjs/TaxonomyCard.js +2 -2
  51. package/dist/cjs/TemplateNormal.js +5 -3
  52. package/dist/cjs/ThumbnailCard.js +1 -1
  53. package/dist/cjs/Ustream.js +2 -2
  54. package/dist/cjs/VerticalHero.js +2 -2
  55. package/dist/cjs/VideoSeriesCard.js +2 -2
  56. package/dist/cjs/VideoSeriesListing.js +4 -4
  57. package/dist/cjs/View.js +155 -190
  58. package/dist/cjs/YahooHero.js +2 -2
  59. package/dist/cjs/YoutubeGroup.js +1 -1
  60. package/dist/cjs/getQuery.js +2 -2
  61. package/dist/cjs/getRelatedArticle.js +65 -447
  62. package/dist/cjs/getSerializers.js +6 -6
  63. package/dist/cjs/{index-2d0a4911.js → index-099d45ae.js} +6 -4
  64. package/dist/cjs/{index-5be2866f.js → index-3294d3bc.js} +1 -1
  65. package/dist/cjs/{index-b5eb3ff8.js → index-39beccb3.js} +18 -18
  66. package/dist/cjs/{index-ec02006c.js → index-58dae365.js} +12 -12
  67. package/dist/cjs/{index.es-ab3f2690.js → index.es-9110add6.js} +1 -3
  68. package/dist/cjs/index.js +15 -15
  69. package/dist/cjs/{lodash-fc2922d0.js → lodash-7fd85bcf.js} +71 -22
  70. package/dist/cjs/{main-99536bdc.js → main-03ffa84c.js} +36 -67
  71. package/dist/cjs/{moment-66a6a284.js → moment-575fe24c.js} +1 -1
  72. package/dist/cjs/timeDifferenceCalc.js +1 -1
  73. package/dist/cjs/urlFor.js +1 -1
  74. package/dist/esm/AD.js +1 -1
  75. package/dist/esm/AD300x250.js +5 -3
  76. package/dist/esm/AD300x250x600.js +5 -3
  77. package/dist/esm/AD728x90.js +6 -4
  78. package/dist/esm/ADFloatingFooter.js +4 -2
  79. package/dist/esm/ADGutter.js +4 -2
  80. package/dist/esm/ADSkyscraper.js +4 -2
  81. package/dist/esm/ADSponsoredResources.js +4 -2
  82. package/dist/esm/ADWebcast.js +4 -2
  83. package/dist/esm/ADWelcome.js +4 -2
  84. package/dist/esm/AdSlot.js +15 -4
  85. package/dist/esm/AdSlotsProvider.js +2 -2
  86. package/dist/esm/ArticleCarousel.js +1 -1
  87. package/dist/esm/ArticleSeriesListing.js +4 -4
  88. package/dist/esm/Auth.js +450 -301
  89. package/dist/esm/{BlockContent-a614acdf.js → BlockContent-c409aca5.js} +1 -1
  90. package/dist/esm/BrowseVideosListing.js +1 -1
  91. package/dist/esm/CMEDeck.js +5 -5
  92. package/dist/esm/Column3.js +6 -4
  93. package/dist/esm/ConferenceArticleCard.js +2 -2
  94. package/dist/esm/DeckContent.js +7 -7
  95. package/dist/esm/DeckQueue.js +6 -6
  96. package/dist/esm/{Dfp-8a8fca18.js → Dfp-741c01be.js} +1 -1
  97. package/dist/esm/EventsDeck.js +4 -4
  98. package/dist/esm/ExternalResources.js +7 -7
  99. package/dist/esm/Feature.js +3 -3
  100. package/dist/esm/ForbesHero.js +2 -2
  101. package/dist/esm/GridContent.js +11 -11
  102. package/dist/esm/GridHero.js +2 -2
  103. package/dist/esm/GroupDeck.js +1 -1
  104. package/dist/esm/HamMagazine.js +4 -4
  105. package/dist/esm/Hero.js +1 -1
  106. package/dist/esm/HorizontalHero.js +2 -2
  107. package/dist/esm/IssueContentDeck.js +2 -2
  108. package/dist/esm/IssueDeck.js +2 -2
  109. package/dist/esm/IssueLanding.js +8 -8
  110. package/dist/esm/LeftNav.js +4 -2
  111. package/dist/esm/MasterDeck.js +8 -8
  112. package/dist/esm/NavMagazine.js +4 -4
  113. package/dist/esm/NavNative.js +3 -3
  114. package/dist/esm/OncliveHero.js +2 -2
  115. package/dist/esm/OncliveLargeHero.js +2 -2
  116. package/dist/esm/PartnerDetailListing.js +10 -10
  117. package/dist/esm/PublicationDeck.js +2 -2
  118. package/dist/esm/QueueDeckExpanded.js +10 -10
  119. package/dist/esm/RecentNews.js +2 -2
  120. package/dist/esm/RelatedContent.js +2 -2
  121. package/dist/esm/{SocialSearchComponent-5a9c4628.js → SocialSearchComponent-677ed3bd.js} +5 -5
  122. package/dist/esm/TaxonomyCard.js +2 -2
  123. package/dist/esm/TemplateNormal.js +5 -3
  124. package/dist/esm/ThumbnailCard.js +1 -1
  125. package/dist/esm/Ustream.js +2 -2
  126. package/dist/esm/VerticalHero.js +2 -2
  127. package/dist/esm/VideoSeriesCard.js +2 -2
  128. package/dist/esm/VideoSeriesListing.js +4 -4
  129. package/dist/esm/View.js +155 -190
  130. package/dist/esm/YahooHero.js +2 -2
  131. package/dist/esm/YoutubeGroup.js +1 -1
  132. package/dist/esm/getQuery.js +2 -2
  133. package/dist/esm/getRelatedArticle.js +65 -447
  134. package/dist/esm/getSerializers.js +6 -6
  135. package/dist/esm/{index-51a80699.js → index-3849e3fe.js} +18 -18
  136. package/dist/esm/{index-93ec3c59.js → index-3f4dd6f2.js} +6 -4
  137. package/dist/esm/{index-50d0fbc7.js → index-7779a6df.js} +12 -12
  138. package/dist/esm/{index-d2f90501.js → index-ef6d5dcf.js} +1 -1
  139. package/dist/esm/{index.es-938a3a58.js → index.es-29c1cef5.js} +1 -3
  140. package/dist/esm/index.js +14 -14
  141. package/dist/esm/{lodash-17fdfebb.js → lodash-ec8c6b48.js} +71 -22
  142. package/dist/esm/{main-e2627831.js → main-35ff7b4f.js} +34 -65
  143. package/dist/esm/{moment-12415288.js → moment-e2f9b20c.js} +1 -1
  144. package/dist/esm/timeDifferenceCalc.js +1 -1
  145. package/dist/esm/urlFor.js +1 -1
  146. package/package.json +3 -3
  147. package/dist/cjs/index-bd6c9f56.js +0 -211
  148. package/dist/esm/index-db3bb315.js +0 -207
  149. /package/dist/cjs/{ADInfeed-f60d8625.js → ADInfeed-38066a36.js} +0 -0
  150. /package/dist/cjs/{ADlgInfeed-a08f8a4b.js → ADlgInfeed-d95c9027.js} +0 -0
  151. /package/dist/esm/{ADInfeed-c7e745f1.js → ADInfeed-7b1b2fcb.js} +0 -0
  152. /package/dist/esm/{ADlgInfeed-6fedd79b.js → ADlgInfeed-2afe92e6.js} +0 -0
@@ -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
  };
@@ -821,13 +821,15 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
821
821
  });
822
822
 
823
823
  if (_this5.lazyLoadIsEnabled()) {
824
+ var args = [];
825
+
824
826
  var config = _this5.getLazyLoadConfig();
825
827
 
826
- if (config) {
827
- pubadsService.enableLazyLoad(config);
828
- } else {
829
- pubadsService.enableLazyLoad();
828
+ if (config !== null) {
829
+ args.push(config);
830
830
  }
831
+
832
+ pubadsService.enableLazyLoad.call(args);
831
833
  }
832
834
 
833
835
  if (_this5.singleRequestIsEnabled()) {
@@ -4,21 +4,21 @@ import { _ as _extends } from './extends-cc5da797.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-7ee3e0c1.js';
5
5
  import { _ as _typeof$1 } from './typeof-08f2c380.js';
6
6
  import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } 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, d as main_38, m as main_39 } from './main-e2627831.js';
15
+ import { b as main_16, d as main_35, m as main_36 } from './main-35ff7b4f.js';
16
16
  import { h as html_decode_1 } from './entities-7cc3bf45.js';
17
17
  import { _ as _slicedToArray } from './slicedToArray-7021e5df.js';
18
18
  import Segment from './Segment.js';
19
19
  import Beam from './Beam.js';
20
20
  import DFPAdSlot from './AdSlot.js';
21
- import { B as BlockContent } from './BlockContent-a614acdf.js';
21
+ import { B as BlockContent } from './BlockContent-c409aca5.js';
22
22
  import { g as getYoutubeId } from './smoothscroll-4b699764.js';
23
23
  import GroupDeck from './GroupDeck.js';
24
24
  import { Carousel, Table, Figure as Figure$1, Button, ProgressBar, Card, Row as Row$1, Col as Col$1 } from 'react-bootstrap';
@@ -7509,7 +7509,7 @@ var Poll = function Poll(_ref) {
7509
7509
  );
7510
7510
  };
7511
7511
 
7512
- var numberOfPaginations = main_38 ? 4 : 10;
7512
+ var numberOfPaginations = main_35 ? 4 : 10;
7513
7513
 
7514
7514
  var Quiz = function Quiz(_ref) {
7515
7515
  var quizzes = _ref.quizzes,
@@ -7622,7 +7622,7 @@ var Quiz = function Quiz(_ref) {
7622
7622
  var renderPagination = function renderPagination() {
7623
7623
  return React__default.createElement(
7624
7624
  Pagination,
7625
- { className: 'p-0 m-0', size: main_38 && 'sm' },
7625
+ { className: 'p-0 m-0', size: main_35 && 'sm' },
7626
7626
  React__default.createElement(Pagination.First, { onClick: function onClick() {
7627
7627
  return changePage('first');
7628
7628
  }, disabled: currentPage === 1 }),
@@ -8291,7 +8291,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8291
8291
  //console.log('useLayoutEffect')
8292
8292
  if (!firstLoad) {
8293
8293
  setUpArrowClicked(false);
8294
- if (main_39) {
8294
+ if (main_36) {
8295
8295
  grabLoadedAds();
8296
8296
  } else {
8297
8297
  scrollToArticle();
@@ -8315,7 +8315,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8315
8315
  //let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
8316
8316
  if (pageview) pageview(path);
8317
8317
 
8318
- if (!main_39) {
8318
+ if (!main_36) {
8319
8319
  lib_3.getGoogletag().then(function (googletag) {
8320
8320
  if (window.googletag && googletag.pubadsReady) {
8321
8321
  lib_3.refresh();
@@ -8323,7 +8323,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8323
8323
  });
8324
8324
  }
8325
8325
  //Refresh leaderboard ad on mobile
8326
- if (main_39) {
8326
+ if (main_36) {
8327
8327
  var leaderboardSlotId = '';
8328
8328
  lib_3.getGoogletag().then(function (googletag) {
8329
8329
  if (window.googletag && googletag.pubadsReady) {
@@ -8392,7 +8392,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8392
8392
  React__default.createElement(
8393
8393
  'div',
8394
8394
  { className: 'ad-box', style: { textAlign: 'center' } },
8395
- main_39 && Ads.map(function (ad, index) {
8395
+ main_36 && Ads.map(function (ad, index) {
8396
8396
  if (index === 0) {
8397
8397
  return React__default.createElement(
8398
8398
  'div',
@@ -8514,7 +8514,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8514
8514
  React__default.createElement(
8515
8515
  'div',
8516
8516
  { className: 'ad-box', style: { textAlign: 'center' } },
8517
- main_39 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
8517
+ main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
8518
8518
  if (innerIndex === 0) {
8519
8519
  return React__default.createElement(
8520
8520
  'div',
@@ -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-8956f9a5.js';
14
14
  import './typeof-08f2c380.js';
15
15
  import './_is-array-49698029.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-807e927e.js';
26
26
  import './debounce-1a993acf.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-e2627831.js';
32
+ import './main-35ff7b4f.js';
33
33
  import './entities-7cc3bf45.js';
34
34
  import './stringify-008c8802.js';
35
35
  import './slicedToArray-7021e5df.js';
@@ -38,10 +38,10 @@ import './_set-species-cede29f8.js';
38
38
  export { default as Segment } from './Segment.js';
39
39
  export { default as Beam } from './Beam.js';
40
40
  export { default as AdSlot } from './AdSlot.js';
41
- import './ADInfeed-c7e745f1.js';
41
+ import './ADInfeed-7b1b2fcb.js';
42
42
  export { default as DeckContent } from './DeckContent.js';
43
- import './lodash-17fdfebb.js';
44
- import './ADlgInfeed-6fedd79b.js';
43
+ import './lodash-ec8c6b48.js';
44
+ import './ADlgInfeed-2afe92e6.js';
45
45
  import './getContentCategory-15dcc413.js';
46
46
  import './get-5ee14cda.js';
47
47
  export { default as AD } from './AD.js';
@@ -50,7 +50,7 @@ export { default as GridContent } from './GridContent.js';
50
50
  export { default as DeckQueue } from './DeckQueue.js';
51
51
  import 'react-bootstrap/Media';
52
52
  export { default as ThumbnailCard } from './ThumbnailCard.js';
53
- import './BlockContent-a614acdf.js';
53
+ import './BlockContent-c409aca5.js';
54
54
  import './react-social-icons-a7d5c5c7.js';
55
55
  export { default as TaxonomyCard } from './TaxonomyCard.js';
56
56
  export { default as RolesDeck } from './RolesDeck.js';
@@ -76,10 +76,10 @@ import './defineProperty-b798470d.js';
76
76
  export { default as EventsDeck } from './EventsDeck.js';
77
77
  import 'react-bootstrap/Spinner';
78
78
  import 'react-bootstrap/Form';
79
- import './index-d2f90501.js';
79
+ import './index-ef6d5dcf.js';
80
80
  import './js.cookie-6874175c.js';
81
81
  export { default as CMEDeck } from './CMEDeck.js';
82
- export { g as getSerializers } from './index-50d0fbc7.js';
82
+ export { g as getSerializers } from './index-7779a6df.js';
83
83
  import './util-7700fc59.js';
84
84
  import './brightcove-react-player-loader.es-83f53e4e.js';
85
85
  import 'react-bootstrap/Pagination';
@@ -111,7 +111,7 @@ import './NavFooter-e27bd93b.js';
111
111
  import './index.esm-fd746768.js';
112
112
  export { default as SocialIcons } from './SocialIcons.js';
113
113
  import 'react-bootstrap/FormControl';
114
- import './SocialSearchComponent-5a9c4628.js';
114
+ import './SocialSearchComponent-677ed3bd.js';
115
115
  export { default as NavMagazine } from './NavMagazine.js';
116
116
  export { NavNative } from './NavNative.js';
117
117
  export { default as Search } from './Search.js';
@@ -158,9 +158,9 @@ export { default as ConferenceArticleCard } from './ConferenceArticleCard.js';
158
158
  export { default as KMTracker } from './KMTracker.js';
159
159
  export { default as getSeriesDetail } from './getSeriesDetail.js';
160
160
  export { default as SetCookie } from './SetCookie.js';
161
- import './index-db3bb315.js';
162
- export { default as getRelatedArticle } from './getRelatedArticle.js';
161
+ import 'nookies';
163
162
  export { default as getQuery } from './getQuery.js';
163
+ export { default as getRelatedArticle } from './getRelatedArticle.js';
164
164
  export { default as Auth } from './Auth.js';
165
165
  import 'swr';
166
166
  import 'passport-local';
@@ -7,7 +7,7 @@ var lodash = createCommonjsModule(function (module, exports) {
7
7
  var undefined$1;
8
8
 
9
9
  /** Used as the semantic version number. */
10
- var VERSION = '4.17.15';
10
+ var VERSION = '4.17.20';
11
11
 
12
12
  /** Used as the size to enable large array optimizations. */
13
13
  var LARGE_ARRAY_SIZE = 200;
@@ -3714,8 +3714,21 @@ var lodash = createCommonjsModule(function (module, exports) {
3714
3714
  * @returns {Array} Returns the new sorted array.
3715
3715
  */
3716
3716
  function baseOrderBy(collection, iteratees, orders) {
3717
+ if (iteratees.length) {
3718
+ iteratees = arrayMap(iteratees, function(iteratee) {
3719
+ if (isArray(iteratee)) {
3720
+ return function(value) {
3721
+ return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);
3722
+ }
3723
+ }
3724
+ return iteratee;
3725
+ });
3726
+ } else {
3727
+ iteratees = [identity];
3728
+ }
3729
+
3717
3730
  var index = -1;
3718
- iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(getIteratee()));
3731
+ iteratees = arrayMap(iteratees, baseUnary(getIteratee()));
3719
3732
 
3720
3733
  var result = baseMap(collection, function(value, key, collection) {
3721
3734
  var criteria = arrayMap(iteratees, function(iteratee) {
@@ -3972,6 +3985,10 @@ var lodash = createCommonjsModule(function (module, exports) {
3972
3985
  var key = toKey(path[index]),
3973
3986
  newValue = value;
3974
3987
 
3988
+ if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
3989
+ return object;
3990
+ }
3991
+
3975
3992
  if (index != lastIndex) {
3976
3993
  var objValue = nested[key];
3977
3994
  newValue = customizer ? customizer(objValue, key, nested) : undefined$1;
@@ -4124,11 +4141,14 @@ var lodash = createCommonjsModule(function (module, exports) {
4124
4141
  * into `array`.
4125
4142
  */
4126
4143
  function baseSortedIndexBy(array, value, iteratee, retHighest) {
4127
- value = iteratee(value);
4128
-
4129
4144
  var low = 0,
4130
- high = array == null ? 0 : array.length,
4131
- valIsNaN = value !== value,
4145
+ high = array == null ? 0 : array.length;
4146
+ if (high === 0) {
4147
+ return 0;
4148
+ }
4149
+
4150
+ value = iteratee(value);
4151
+ var valIsNaN = value !== value,
4132
4152
  valIsNull = value === null,
4133
4153
  valIsSymbol = isSymbol(value),
4134
4154
  valIsUndefined = value === undefined$1;
@@ -5613,10 +5633,11 @@ var lodash = createCommonjsModule(function (module, exports) {
5613
5633
  if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
5614
5634
  return false;
5615
5635
  }
5616
- // Assume cyclic values are equal.
5617
- var stacked = stack.get(array);
5618
- if (stacked && stack.get(other)) {
5619
- return stacked == other;
5636
+ // Check that cyclic values are equal.
5637
+ var arrStacked = stack.get(array);
5638
+ var othStacked = stack.get(other);
5639
+ if (arrStacked && othStacked) {
5640
+ return arrStacked == other && othStacked == array;
5620
5641
  }
5621
5642
  var index = -1,
5622
5643
  result = true,
@@ -5778,10 +5799,11 @@ var lodash = createCommonjsModule(function (module, exports) {
5778
5799
  return false;
5779
5800
  }
5780
5801
  }
5781
- // Assume cyclic values are equal.
5782
- var stacked = stack.get(object);
5783
- if (stacked && stack.get(other)) {
5784
- return stacked == other;
5802
+ // Check that cyclic values are equal.
5803
+ var objStacked = stack.get(object);
5804
+ var othStacked = stack.get(other);
5805
+ if (objStacked && othStacked) {
5806
+ return objStacked == other && othStacked == object;
5785
5807
  }
5786
5808
  var result = true;
5787
5809
  stack.set(object, other);
@@ -9162,6 +9184,10 @@ var lodash = createCommonjsModule(function (module, exports) {
9162
9184
  * // The `_.property` iteratee shorthand.
9163
9185
  * _.filter(users, 'active');
9164
9186
  * // => objects for ['barney']
9187
+ *
9188
+ * // Combining several predicates using `_.overEvery` or `_.overSome`.
9189
+ * _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));
9190
+ * // => objects for ['fred', 'barney']
9165
9191
  */
9166
9192
  function filter(collection, predicate) {
9167
9193
  var func = isArray(collection) ? arrayFilter : baseFilter;
@@ -9911,15 +9937,15 @@ var lodash = createCommonjsModule(function (module, exports) {
9911
9937
  * var users = [
9912
9938
  * { 'user': 'fred', 'age': 48 },
9913
9939
  * { 'user': 'barney', 'age': 36 },
9914
- * { 'user': 'fred', 'age': 40 },
9940
+ * { 'user': 'fred', 'age': 30 },
9915
9941
  * { 'user': 'barney', 'age': 34 }
9916
9942
  * ];
9917
9943
  *
9918
9944
  * _.sortBy(users, [function(o) { return o.user; }]);
9919
- * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
9945
+ * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]
9920
9946
  *
9921
9947
  * _.sortBy(users, ['user', 'age']);
9922
- * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]
9948
+ * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]
9923
9949
  */
9924
9950
  var sortBy = baseRest(function(collection, iteratees) {
9925
9951
  if (collection == null) {
@@ -14794,11 +14820,11 @@ var lodash = createCommonjsModule(function (module, exports) {
14794
14820
 
14795
14821
  // Use a sourceURL for easier debugging.
14796
14822
  // The sourceURL gets injected into the source that's eval-ed, so be careful
14797
- // with lookup (in case of e.g. prototype pollution), and strip newlines if any.
14798
- // A newline wouldn't be a valid sourceURL anyway, and it'd enable code injection.
14823
+ // to normalize all kinds of whitespace, so e.g. newlines (and unicode versions of it) can't sneak in
14824
+ // and escape the comment, thus injecting code that gets evaled.
14799
14825
  var sourceURL = '//# sourceURL=' +
14800
14826
  (hasOwnProperty.call(options, 'sourceURL')
14801
- ? (options.sourceURL + '').replace(/[\r\n]/g, ' ')
14827
+ ? (options.sourceURL + '').replace(/\s/g, ' ')
14802
14828
  : ('lodash.templateSources[' + (++templateCounter) + ']')
14803
14829
  ) + '\n';
14804
14830
 
@@ -14831,8 +14857,6 @@ var lodash = createCommonjsModule(function (module, exports) {
14831
14857
 
14832
14858
  // If `variable` is not specified wrap a with-statement around the generated
14833
14859
  // code to add the data object to the top of the scope chain.
14834
- // Like with sourceURL, we take care to not check the option's prototype,
14835
- // as this configuration is a code injection vector.
14836
14860
  var variable = hasOwnProperty.call(options, 'variable') && options.variable;
14837
14861
  if (!variable) {
14838
14862
  source = 'with (obj) {\n' + source + '\n}\n';
@@ -15539,6 +15563,9 @@ var lodash = createCommonjsModule(function (module, exports) {
15539
15563
  * values against any array or object value, respectively. See `_.isEqual`
15540
15564
  * for a list of supported value comparisons.
15541
15565
  *
15566
+ * **Note:** Multiple values can be checked by combining several matchers
15567
+ * using `_.overSome`
15568
+ *
15542
15569
  * @static
15543
15570
  * @memberOf _
15544
15571
  * @since 3.0.0
@@ -15554,6 +15581,10 @@ var lodash = createCommonjsModule(function (module, exports) {
15554
15581
  *
15555
15582
  * _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));
15556
15583
  * // => [{ 'a': 4, 'b': 5, 'c': 6 }]
15584
+ *
15585
+ * // Checking for several possible values
15586
+ * _.filter(objects, _.overSome([_.matches({ 'a': 1 }), _.matches({ 'a': 4 })]));
15587
+ * // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]
15557
15588
  */
15558
15589
  function matches(source) {
15559
15590
  return baseMatches(baseClone(source, CLONE_DEEP_FLAG));
@@ -15568,6 +15599,9 @@ var lodash = createCommonjsModule(function (module, exports) {
15568
15599
  * `srcValue` values against any array or object value, respectively. See
15569
15600
  * `_.isEqual` for a list of supported value comparisons.
15570
15601
  *
15602
+ * **Note:** Multiple values can be checked by combining several matchers
15603
+ * using `_.overSome`
15604
+ *
15571
15605
  * @static
15572
15606
  * @memberOf _
15573
15607
  * @since 3.2.0
@@ -15584,6 +15618,10 @@ var lodash = createCommonjsModule(function (module, exports) {
15584
15618
  *
15585
15619
  * _.find(objects, _.matchesProperty('a', 4));
15586
15620
  * // => { 'a': 4, 'b': 5, 'c': 6 }
15621
+ *
15622
+ * // Checking for several possible values
15623
+ * _.filter(objects, _.overSome([_.matchesProperty('a', 1), _.matchesProperty('a', 4)]));
15624
+ * // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]
15587
15625
  */
15588
15626
  function matchesProperty(path, srcValue) {
15589
15627
  return baseMatchesProperty(path, baseClone(srcValue, CLONE_DEEP_FLAG));
@@ -15807,6 +15845,10 @@ var lodash = createCommonjsModule(function (module, exports) {
15807
15845
  * Creates a function that checks if **all** of the `predicates` return
15808
15846
  * truthy when invoked with the arguments it receives.
15809
15847
  *
15848
+ * Following shorthands are possible for providing predicates.
15849
+ * Pass an `Object` and it will be used as an parameter for `_.matches` to create the predicate.
15850
+ * Pass an `Array` of parameters for `_.matchesProperty` and the predicate will be created using them.
15851
+ *
15810
15852
  * @static
15811
15853
  * @memberOf _
15812
15854
  * @since 4.0.0
@@ -15833,6 +15875,10 @@ var lodash = createCommonjsModule(function (module, exports) {
15833
15875
  * Creates a function that checks if **any** of the `predicates` return
15834
15876
  * truthy when invoked with the arguments it receives.
15835
15877
  *
15878
+ * Following shorthands are possible for providing predicates.
15879
+ * Pass an `Object` and it will be used as an parameter for `_.matches` to create the predicate.
15880
+ * Pass an `Array` of parameters for `_.matchesProperty` and the predicate will be created using them.
15881
+ *
15836
15882
  * @static
15837
15883
  * @memberOf _
15838
15884
  * @since 4.0.0
@@ -15852,6 +15898,9 @@ var lodash = createCommonjsModule(function (module, exports) {
15852
15898
  *
15853
15899
  * func(NaN);
15854
15900
  * // => false
15901
+ *
15902
+ * var matchesFunc = _.overSome([{ 'a': 1 }, { 'a': 2 }])
15903
+ * var matchesPropertyFunc = _.overSome([['a', 1], ['a', 2]])
15855
15904
  */
15856
15905
  var overSome = createOver(arraySome);
15857
15906