@mjhls/mjh-framework 1.0.993-topelement-v5 → 1.0.993

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 (156) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +1 -2
  4. package/dist/cjs/AD300x250x600.js +1 -2
  5. package/dist/cjs/AD728x90.js +1 -2
  6. package/dist/cjs/ADFloatingFooter.js +1 -2
  7. package/dist/cjs/ADGutter.js +1 -2
  8. package/dist/cjs/ADSkyscraper.js +1 -2
  9. package/dist/cjs/ADSponsoredResources.js +1 -2
  10. package/dist/cjs/ADWebcast.js +1 -2
  11. package/dist/cjs/ADWelcome.js +1 -2
  12. package/dist/cjs/AdSlot.js +1 -2
  13. package/dist/cjs/AdSlotsProvider.js +5 -5
  14. package/dist/cjs/AlgoliaSearch.js +738 -276
  15. package/dist/cjs/ArticleProgramLandingPage.js +4 -5
  16. package/dist/cjs/ArticleSeriesLandingPage.js +3 -4
  17. package/dist/cjs/ArticleSeriesListing.js +1 -2
  18. package/dist/cjs/Auth.js +26 -22830
  19. package/dist/cjs/AuthWrapper.js +16 -36
  20. package/dist/cjs/CMEDeck.js +1 -2
  21. package/dist/cjs/Column3.js +1 -2
  22. package/dist/cjs/ConferenceArticleCard.js +15 -15
  23. package/dist/cjs/ContentCardPaginated.js +2 -3
  24. package/dist/cjs/DeckContent.js +10 -11
  25. package/dist/cjs/DeckQueue.js +1 -2
  26. package/dist/cjs/DeckQueuePaginated.js +1 -2
  27. package/dist/cjs/{Dfp-c313a700.js → Dfp-67646058.js} +1 -2
  28. package/dist/cjs/EventsDeck.js +17 -17
  29. package/dist/cjs/ExternalResources.js +4 -5
  30. package/dist/cjs/GridContent.js +3 -4
  31. package/dist/cjs/GridContentPaginated.js +3 -4
  32. package/dist/cjs/HamMagazine.js +9 -9
  33. package/dist/cjs/HealthCareProfessionalModal.js +1 -1
  34. package/dist/cjs/HorizontalArticleListing.js +4 -5
  35. package/dist/cjs/{ImageSlider-ca708da8.js → ImageSlider-1ec0408b.js} +1 -1100
  36. package/dist/cjs/IssueLanding.js +35 -36
  37. package/dist/cjs/KMTracker.js +15 -15
  38. package/dist/cjs/LeftNav.js +1 -2
  39. package/dist/cjs/MasterDeck.js +11 -12
  40. package/dist/cjs/MasterDeckPaginated.js +11 -12
  41. package/dist/cjs/{MediaSeriesCard-f6db8f70.js → MediaSeriesCard-2645b00a.js} +227 -218
  42. package/dist/cjs/MediaSeriesLanding.js +13 -14
  43. package/dist/cjs/MediaSeriesLandingPaginated.js +13 -14
  44. package/dist/cjs/NavMagazine.js +10 -10
  45. package/dist/cjs/NavNative.js +9 -9
  46. package/dist/cjs/PartnerDetailListing.js +9 -10
  47. package/dist/cjs/PartnerDetailListingPaginated.js +9 -10
  48. package/dist/cjs/PubSection.js +3 -4
  49. package/dist/cjs/PublicationLanding.js +26 -26
  50. package/dist/cjs/QueueDeckExpanded.js +3 -4
  51. package/dist/cjs/QueueDeckExpandedPaginated.js +3 -4
  52. package/dist/cjs/RelatedContent.js +28 -28
  53. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  54. package/dist/cjs/Schema.js +1 -1
  55. package/dist/cjs/SeriesListingDeck.js +2 -3
  56. package/dist/cjs/{SeriesSlider-f5248377.js → SeriesSlider-18fc6e71.js} +4 -4
  57. package/dist/cjs/SideFooter.js +2 -2
  58. package/dist/cjs/TaxonomyDescription.js +4 -5
  59. package/dist/cjs/TemplateNormal.js +1 -2
  60. package/dist/cjs/VideoProgramLandingPage.js +4 -5
  61. package/dist/cjs/VideoSeriesCard.js +1 -1
  62. package/dist/cjs/VideoSeriesLandingPage.js +3 -4
  63. package/dist/cjs/VideoSeriesListing.js +1 -2
  64. package/dist/cjs/View.js +8 -9
  65. package/dist/cjs/YoutubeGroup.js +4 -4
  66. package/dist/cjs/getSerializers.js +4 -5
  67. package/dist/cjs/{getTargeting-4439c99d.js → getTargeting-ba942d9a.js} +9 -9
  68. package/dist/cjs/getTargeting.js +1 -1
  69. package/dist/cjs/{index-b10d6863.js → index-669d70bd.js} +15 -12
  70. package/dist/cjs/{index-d2a6ef75.js → index-7435b964.js} +467 -2
  71. package/dist/cjs/{index-9ec837cc.js → index-b95410f0.js} +0 -35
  72. package/dist/cjs/index.js +14 -12
  73. package/dist/{esm/empty-a8042e3c.js → cjs/util-93a37fd0.js} +3 -135
  74. package/dist/esm/AD.js +1 -1
  75. package/dist/esm/AD300x250.js +1 -2
  76. package/dist/esm/AD300x250x600.js +1 -2
  77. package/dist/esm/AD728x90.js +1 -2
  78. package/dist/esm/ADFloatingFooter.js +1 -2
  79. package/dist/esm/ADGutter.js +1 -2
  80. package/dist/esm/ADSkyscraper.js +1 -2
  81. package/dist/esm/ADSponsoredResources.js +1 -2
  82. package/dist/esm/ADWebcast.js +1 -2
  83. package/dist/esm/ADWelcome.js +1 -2
  84. package/dist/esm/AdSlot.js +1 -2
  85. package/dist/esm/AdSlotsProvider.js +2 -3
  86. package/dist/esm/AlgoliaSearch.js +474 -12
  87. package/dist/esm/ArticleProgramLandingPage.js +4 -5
  88. package/dist/esm/ArticleSeriesLandingPage.js +3 -4
  89. package/dist/esm/ArticleSeriesListing.js +1 -2
  90. package/dist/esm/Auth.js +18 -22825
  91. package/dist/esm/AuthWrapper.js +16 -36
  92. package/dist/esm/CMEDeck.js +1 -2
  93. package/dist/esm/Column3.js +1 -2
  94. package/dist/esm/ConferenceArticleCard.js +15 -15
  95. package/dist/esm/ContentCardPaginated.js +2 -3
  96. package/dist/esm/DeckContent.js +10 -11
  97. package/dist/esm/DeckQueue.js +1 -2
  98. package/dist/esm/DeckQueuePaginated.js +1 -2
  99. package/dist/esm/{Dfp-102f0beb.js → Dfp-cf85d203.js} +1 -2
  100. package/dist/esm/EventsDeck.js +17 -17
  101. package/dist/esm/ExternalResources.js +4 -5
  102. package/dist/esm/GridContent.js +3 -4
  103. package/dist/esm/GridContentPaginated.js +3 -4
  104. package/dist/esm/HamMagazine.js +9 -9
  105. package/dist/esm/HealthCareProfessionalModal.js +1 -1
  106. package/dist/esm/HorizontalArticleListing.js +4 -5
  107. package/dist/esm/{ImageSlider-fada4f0c.js → ImageSlider-83913c4c.js} +3 -1101
  108. package/dist/esm/IssueLanding.js +35 -36
  109. package/dist/esm/KMTracker.js +15 -15
  110. package/dist/esm/LeftNav.js +1 -2
  111. package/dist/esm/MasterDeck.js +11 -12
  112. package/dist/esm/MasterDeckPaginated.js +11 -12
  113. package/dist/esm/{MediaSeriesCard-96ac8ed4.js → MediaSeriesCard-2a9ff7f3.js} +227 -218
  114. package/dist/esm/MediaSeriesLanding.js +13 -14
  115. package/dist/esm/MediaSeriesLandingPaginated.js +13 -14
  116. package/dist/esm/NavMagazine.js +10 -10
  117. package/dist/esm/NavNative.js +9 -9
  118. package/dist/esm/PartnerDetailListing.js +8 -9
  119. package/dist/esm/PartnerDetailListingPaginated.js +8 -9
  120. package/dist/esm/PubSection.js +3 -4
  121. package/dist/esm/PublicationLanding.js +26 -26
  122. package/dist/esm/QueueDeckExpanded.js +3 -4
  123. package/dist/esm/QueueDeckExpandedPaginated.js +3 -4
  124. package/dist/esm/RelatedContent.js +28 -28
  125. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  126. package/dist/esm/Schema.js +1 -1
  127. package/dist/esm/SeriesListingDeck.js +2 -3
  128. package/dist/esm/{SeriesSlider-4875823e.js → SeriesSlider-5728e349.js} +4 -4
  129. package/dist/esm/SideFooter.js +2 -2
  130. package/dist/esm/TaxonomyDescription.js +4 -5
  131. package/dist/esm/TemplateNormal.js +1 -2
  132. package/dist/esm/VideoProgramLandingPage.js +4 -5
  133. package/dist/esm/VideoSeriesCard.js +1 -1
  134. package/dist/esm/VideoSeriesLandingPage.js +3 -4
  135. package/dist/esm/VideoSeriesListing.js +1 -2
  136. package/dist/esm/View.js +8 -9
  137. package/dist/esm/YoutubeGroup.js +4 -4
  138. package/dist/esm/getSerializers.js +4 -5
  139. package/dist/esm/{getTargeting-c6884f34.js → getTargeting-9bd28724.js} +9 -9
  140. package/dist/esm/getTargeting.js +1 -1
  141. package/dist/esm/{index-0ce54f8a.js → index-174b5baf.js} +1 -34
  142. package/dist/esm/{index-076baa11.js → index-4d0371dc.js} +7 -5
  143. package/dist/esm/{index-f0fc23eb.js → index-5cc7b406.js} +466 -1
  144. package/dist/esm/index.js +14 -12
  145. package/dist/{cjs/empty-559717f3.js → esm/util-8ed16d48.js} +1 -146
  146. package/package.json +114 -114
  147. package/dist/cjs/defineProperty-ad65f5f0.js +0 -110
  148. package/dist/cjs/events-1b438fe7.js +0 -469
  149. package/dist/cjs/index-0cf4c9fc.js +0 -904
  150. package/dist/esm/defineProperty-50094484.js +0 -101
  151. package/dist/esm/events-6c3a7a63.js +0 -467
  152. package/dist/esm/index-e7075467.js +0 -897
  153. /package/dist/cjs/{ADInfeed-f316b66a.js → ADInfeed-ef933a08.js} +0 -0
  154. /package/dist/cjs/{ADlgInfeed-2003306e.js → ADlgInfeed-0e931f24.js} +0 -0
  155. /package/dist/esm/{ADInfeed-777bb0b3.js → ADInfeed-f946441a.js} +0 -0
  156. /package/dist/esm/{ADlgInfeed-e7fd1bb6.js → ADlgInfeed-012e6f16.js} +0 -0
@@ -3,9 +3,7 @@ import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorRetu
3
3
  import { _ as _typeof$1 } from './typeof-e9fc0c5d.js';
4
4
  import React__default, { createContext, Component, Fragment, Children, version as version$2 } from 'react';
5
5
  import PropTypes from 'prop-types';
6
- import { _ as _defineProperty, a as _typeof, b as _inherits, c as _getPrototypeOf, d as _possibleConstructorReturn, e as _classCallCheck, f as _assertThisInitialized, g as _createClass } from './defineProperty-50094484.js';
7
- import { _ as _objectWithoutPropertiesLoose$1, a as _extends, c as classnames } from './index-0ce54f8a.js';
8
- import { E as EventEmitter } from './events-6c3a7a63.js';
6
+ import { c as classnames } from './index-174b5baf.js';
9
7
  import { DropdownButton } from 'react-bootstrap';
10
8
  import urlFor from './urlFor.js';
11
9
  import { m as moment } from './moment-bc12cb97.js';
@@ -22,6 +20,39 @@ import './slicedToArray-6ebcbfea.js';
22
20
  import './index-3f5c03b2.js';
23
21
  import 'react-dom';
24
22
 
23
+ function _extends() {
24
+ _extends = Object.assign || function (target) {
25
+ for (var i = 1; i < arguments.length; i++) {
26
+ var source = arguments[i];
27
+
28
+ for (var key in source) {
29
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
30
+ target[key] = source[key];
31
+ }
32
+ }
33
+ }
34
+
35
+ return target;
36
+ };
37
+
38
+ return _extends.apply(this, arguments);
39
+ }
40
+
41
+ function _objectWithoutPropertiesLoose$1(source, excluded) {
42
+ if (source == null) return {};
43
+ var target = {};
44
+ var sourceKeys = Object.keys(source);
45
+ var key, i;
46
+
47
+ for (i = 0; i < sourceKeys.length; i++) {
48
+ key = sourceKeys[i];
49
+ if (excluded.indexOf(key) >= 0) continue;
50
+ target[key] = source[key];
51
+ }
52
+
53
+ return target;
54
+ }
55
+
25
56
  function _objectWithoutProperties(source, excluded) {
26
57
  if (source == null) return {};
27
58
  var target = _objectWithoutPropertiesLoose$1(source, excluded);
@@ -41,6 +72,106 @@ function _objectWithoutProperties(source, excluded) {
41
72
  return target;
42
73
  }
43
74
 
75
+ function _classCallCheck(instance, Constructor) {
76
+ if (!(instance instanceof Constructor)) {
77
+ throw new TypeError("Cannot call a class as a function");
78
+ }
79
+ }
80
+
81
+ function _defineProperties(target, props) {
82
+ for (var i = 0; i < props.length; i++) {
83
+ var descriptor = props[i];
84
+ descriptor.enumerable = descriptor.enumerable || false;
85
+ descriptor.configurable = true;
86
+ if ("value" in descriptor) descriptor.writable = true;
87
+ Object.defineProperty(target, descriptor.key, descriptor);
88
+ }
89
+ }
90
+
91
+ function _createClass(Constructor, protoProps, staticProps) {
92
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
93
+ if (staticProps) _defineProperties(Constructor, staticProps);
94
+ return Constructor;
95
+ }
96
+
97
+ function _assertThisInitialized(self) {
98
+ if (self === void 0) {
99
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
100
+ }
101
+
102
+ return self;
103
+ }
104
+
105
+ function _setPrototypeOf(o, p) {
106
+ _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
107
+ o.__proto__ = p;
108
+ return o;
109
+ };
110
+
111
+ return _setPrototypeOf(o, p);
112
+ }
113
+
114
+ function _inherits(subClass, superClass) {
115
+ if (typeof superClass !== "function" && superClass !== null) {
116
+ throw new TypeError("Super expression must either be null or a function");
117
+ }
118
+
119
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
120
+ constructor: {
121
+ value: subClass,
122
+ writable: true,
123
+ configurable: true
124
+ }
125
+ });
126
+ if (superClass) _setPrototypeOf(subClass, superClass);
127
+ }
128
+
129
+ function _typeof(obj) {
130
+ "@babel/helpers - typeof";
131
+
132
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
133
+ _typeof = function _typeof(obj) {
134
+ return typeof obj;
135
+ };
136
+ } else {
137
+ _typeof = function _typeof(obj) {
138
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
139
+ };
140
+ }
141
+
142
+ return _typeof(obj);
143
+ }
144
+
145
+ function _possibleConstructorReturn(self, call) {
146
+ if (call && (_typeof(call) === "object" || typeof call === "function")) {
147
+ return call;
148
+ }
149
+
150
+ return _assertThisInitialized(self);
151
+ }
152
+
153
+ function _getPrototypeOf(o) {
154
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
155
+ return o.__proto__ || Object.getPrototypeOf(o);
156
+ };
157
+ return _getPrototypeOf(o);
158
+ }
159
+
160
+ function _defineProperty(obj, key, value) {
161
+ if (key in obj) {
162
+ Object.defineProperty(obj, key, {
163
+ value: value,
164
+ enumerable: true,
165
+ configurable: true,
166
+ writable: true
167
+ });
168
+ } else {
169
+ obj[key] = value;
170
+ }
171
+
172
+ return obj;
173
+ }
174
+
44
175
  /* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
45
176
 
46
177
  var hasElementType = typeof Element !== 'undefined';
@@ -728,7 +859,7 @@ function parseAlgoliaHit(_ref2) {
728
859
  });
729
860
  }
730
861
 
731
- var version$1 = '6.17.0';
862
+ var version$1 = '6.18.0';
732
863
 
733
864
  function _createSuper$p(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$p(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
734
865
 
@@ -739,6 +870,7 @@ var withKeysPropType = function withKeysPropType(keys) {
739
870
  var prop = props[propName];
740
871
 
741
872
  if (prop) {
873
+ // eslint-disable-next-line no-restricted-syntax
742
874
  for (var _i = 0, _Object$keys = Object.keys(prop); _i < _Object$keys.length; _i++) {
743
875
  var key = _Object$keys[_i];
744
876
 
@@ -4341,6 +4473,309 @@ function getHierarchicalRefinement(state, attributeName, name, resultsFacets) {
4341
4473
 
4342
4474
  var SearchResults_1 = SearchResults;
4343
4475
 
4476
+ // Copyright Joyent, Inc. and other Node contributors.
4477
+ //
4478
+ // Permission is hereby granted, free of charge, to any person obtaining a
4479
+ // copy of this software and associated documentation files (the
4480
+ // "Software"), to deal in the Software without restriction, including
4481
+ // without limitation the rights to use, copy, modify, merge, publish,
4482
+ // distribute, sublicense, and/or sell copies of the Software, and to permit
4483
+ // persons to whom the Software is furnished to do so, subject to the
4484
+ // following conditions:
4485
+ //
4486
+ // The above copyright notice and this permission notice shall be included
4487
+ // in all copies or substantial portions of the Software.
4488
+ //
4489
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
4490
+ // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
4491
+ // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
4492
+ // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
4493
+ // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
4494
+ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
4495
+ // USE OR OTHER DEALINGS IN THE SOFTWARE.
4496
+
4497
+ function EventEmitter() {
4498
+ this._events = this._events || {};
4499
+ this._maxListeners = this._maxListeners || undefined;
4500
+ }
4501
+ var events = EventEmitter;
4502
+
4503
+ // Backwards-compat with node 0.10.x
4504
+ // EventEmitter.EventEmitter = EventEmitter;
4505
+
4506
+ EventEmitter.prototype._events = undefined;
4507
+ EventEmitter.prototype._maxListeners = undefined;
4508
+
4509
+ // By default EventEmitters will print a warning if more than 10 listeners are
4510
+ // added to it. This is a useful default which helps finding memory leaks.
4511
+ EventEmitter.defaultMaxListeners = 10;
4512
+
4513
+ // Obviously not all Emitters should be limited to 10. This function allows
4514
+ // that to be increased. Set to zero for unlimited.
4515
+ EventEmitter.prototype.setMaxListeners = function(n) {
4516
+ if (!isNumber(n) || n < 0 || isNaN(n))
4517
+ throw TypeError('n must be a positive number');
4518
+ this._maxListeners = n;
4519
+ return this;
4520
+ };
4521
+
4522
+ EventEmitter.prototype.emit = function(type) {
4523
+ var er, handler, len, args, i, listeners;
4524
+
4525
+ if (!this._events)
4526
+ this._events = {};
4527
+
4528
+ // If there is no 'error' event listener then throw.
4529
+ if (type === 'error') {
4530
+ if (!this._events.error ||
4531
+ (isObject(this._events.error) && !this._events.error.length)) {
4532
+ er = arguments[1];
4533
+ if (er instanceof Error) {
4534
+ throw er; // Unhandled 'error' event
4535
+ } else {
4536
+ // At least give some kind of context to the user
4537
+ var err = new Error('Uncaught, unspecified "error" event. (' + er + ')');
4538
+ err.context = er;
4539
+ throw err;
4540
+ }
4541
+ }
4542
+ }
4543
+
4544
+ handler = this._events[type];
4545
+
4546
+ if (isUndefined(handler))
4547
+ return false;
4548
+
4549
+ if (isFunction(handler)) {
4550
+ switch (arguments.length) {
4551
+ // fast cases
4552
+ case 1:
4553
+ handler.call(this);
4554
+ break;
4555
+ case 2:
4556
+ handler.call(this, arguments[1]);
4557
+ break;
4558
+ case 3:
4559
+ handler.call(this, arguments[1], arguments[2]);
4560
+ break;
4561
+ // slower
4562
+ default:
4563
+ args = Array.prototype.slice.call(arguments, 1);
4564
+ handler.apply(this, args);
4565
+ }
4566
+ } else if (isObject(handler)) {
4567
+ args = Array.prototype.slice.call(arguments, 1);
4568
+ listeners = handler.slice();
4569
+ len = listeners.length;
4570
+ for (i = 0; i < len; i++)
4571
+ listeners[i].apply(this, args);
4572
+ }
4573
+
4574
+ return true;
4575
+ };
4576
+
4577
+ EventEmitter.prototype.addListener = function(type, listener) {
4578
+ var m;
4579
+
4580
+ if (!isFunction(listener))
4581
+ throw TypeError('listener must be a function');
4582
+
4583
+ if (!this._events)
4584
+ this._events = {};
4585
+
4586
+ // To avoid recursion in the case that type === "newListener"! Before
4587
+ // adding it to the listeners, first emit "newListener".
4588
+ if (this._events.newListener)
4589
+ this.emit('newListener', type,
4590
+ isFunction(listener.listener) ?
4591
+ listener.listener : listener);
4592
+
4593
+ if (!this._events[type])
4594
+ // Optimize the case of one listener. Don't need the extra array object.
4595
+ this._events[type] = listener;
4596
+ else if (isObject(this._events[type]))
4597
+ // If we've already got an array, just append.
4598
+ this._events[type].push(listener);
4599
+ else
4600
+ // Adding the second element, need to change to array.
4601
+ this._events[type] = [this._events[type], listener];
4602
+
4603
+ // Check for listener leak
4604
+ if (isObject(this._events[type]) && !this._events[type].warned) {
4605
+ if (!isUndefined(this._maxListeners)) {
4606
+ m = this._maxListeners;
4607
+ } else {
4608
+ m = EventEmitter.defaultMaxListeners;
4609
+ }
4610
+
4611
+ if (m && m > 0 && this._events[type].length > m) {
4612
+ this._events[type].warned = true;
4613
+ console.error('(node) warning: possible EventEmitter memory ' +
4614
+ 'leak detected. %d listeners added. ' +
4615
+ 'Use emitter.setMaxListeners() to increase limit.',
4616
+ this._events[type].length);
4617
+ if (typeof console.trace === 'function') {
4618
+ // not supported in IE 10
4619
+ console.trace();
4620
+ }
4621
+ }
4622
+ }
4623
+
4624
+ return this;
4625
+ };
4626
+
4627
+ EventEmitter.prototype.on = EventEmitter.prototype.addListener;
4628
+
4629
+ EventEmitter.prototype.once = function(type, listener) {
4630
+ if (!isFunction(listener))
4631
+ throw TypeError('listener must be a function');
4632
+
4633
+ var fired = false;
4634
+
4635
+ function g() {
4636
+ this.removeListener(type, g);
4637
+
4638
+ if (!fired) {
4639
+ fired = true;
4640
+ listener.apply(this, arguments);
4641
+ }
4642
+ }
4643
+
4644
+ g.listener = listener;
4645
+ this.on(type, g);
4646
+
4647
+ return this;
4648
+ };
4649
+
4650
+ // emits a 'removeListener' event iff the listener was removed
4651
+ EventEmitter.prototype.removeListener = function(type, listener) {
4652
+ var list, position, length, i;
4653
+
4654
+ if (!isFunction(listener))
4655
+ throw TypeError('listener must be a function');
4656
+
4657
+ if (!this._events || !this._events[type])
4658
+ return this;
4659
+
4660
+ list = this._events[type];
4661
+ length = list.length;
4662
+ position = -1;
4663
+
4664
+ if (list === listener ||
4665
+ (isFunction(list.listener) && list.listener === listener)) {
4666
+ delete this._events[type];
4667
+ if (this._events.removeListener)
4668
+ this.emit('removeListener', type, listener);
4669
+
4670
+ } else if (isObject(list)) {
4671
+ for (i = length; i-- > 0;) {
4672
+ if (list[i] === listener ||
4673
+ (list[i].listener && list[i].listener === listener)) {
4674
+ position = i;
4675
+ break;
4676
+ }
4677
+ }
4678
+
4679
+ if (position < 0)
4680
+ return this;
4681
+
4682
+ if (list.length === 1) {
4683
+ list.length = 0;
4684
+ delete this._events[type];
4685
+ } else {
4686
+ list.splice(position, 1);
4687
+ }
4688
+
4689
+ if (this._events.removeListener)
4690
+ this.emit('removeListener', type, listener);
4691
+ }
4692
+
4693
+ return this;
4694
+ };
4695
+
4696
+ EventEmitter.prototype.removeAllListeners = function(type) {
4697
+ var key, listeners;
4698
+
4699
+ if (!this._events)
4700
+ return this;
4701
+
4702
+ // not listening for removeListener, no need to emit
4703
+ if (!this._events.removeListener) {
4704
+ if (arguments.length === 0)
4705
+ this._events = {};
4706
+ else if (this._events[type])
4707
+ delete this._events[type];
4708
+ return this;
4709
+ }
4710
+
4711
+ // emit removeListener for all listeners on all events
4712
+ if (arguments.length === 0) {
4713
+ for (key in this._events) {
4714
+ if (key === 'removeListener') continue;
4715
+ this.removeAllListeners(key);
4716
+ }
4717
+ this.removeAllListeners('removeListener');
4718
+ this._events = {};
4719
+ return this;
4720
+ }
4721
+
4722
+ listeners = this._events[type];
4723
+
4724
+ if (isFunction(listeners)) {
4725
+ this.removeListener(type, listeners);
4726
+ } else if (listeners) {
4727
+ // LIFO order
4728
+ while (listeners.length)
4729
+ this.removeListener(type, listeners[listeners.length - 1]);
4730
+ }
4731
+ delete this._events[type];
4732
+
4733
+ return this;
4734
+ };
4735
+
4736
+ EventEmitter.prototype.listeners = function(type) {
4737
+ var ret;
4738
+ if (!this._events || !this._events[type])
4739
+ ret = [];
4740
+ else if (isFunction(this._events[type]))
4741
+ ret = [this._events[type]];
4742
+ else
4743
+ ret = this._events[type].slice();
4744
+ return ret;
4745
+ };
4746
+
4747
+ EventEmitter.prototype.listenerCount = function(type) {
4748
+ if (this._events) {
4749
+ var evlistener = this._events[type];
4750
+
4751
+ if (isFunction(evlistener))
4752
+ return 1;
4753
+ else if (evlistener)
4754
+ return evlistener.length;
4755
+ }
4756
+ return 0;
4757
+ };
4758
+
4759
+ EventEmitter.listenerCount = function(emitter, type) {
4760
+ return emitter.listenerCount(type);
4761
+ };
4762
+
4763
+ function isFunction(arg) {
4764
+ return typeof arg === 'function';
4765
+ }
4766
+
4767
+ function isNumber(arg) {
4768
+ return typeof arg === 'number';
4769
+ }
4770
+
4771
+ function isObject(arg) {
4772
+ return typeof arg === 'object' && arg !== null;
4773
+ }
4774
+
4775
+ function isUndefined(arg) {
4776
+ return arg === void 0;
4777
+ }
4778
+
4344
4779
  function inherits(ctor, superCtor) {
4345
4780
  ctor.prototype = Object.create(superCtor.prototype, {
4346
4781
  constructor: {
@@ -4370,7 +4805,7 @@ function DerivedHelper(mainHelper, fn) {
4370
4805
  this.lastResults = null;
4371
4806
  }
4372
4807
 
4373
- inherits_1(DerivedHelper, EventEmitter.EventEmitter);
4808
+ inherits_1(DerivedHelper, events);
4374
4809
 
4375
4810
  /**
4376
4811
  * Detach this helper from the main helper
@@ -4706,7 +5141,7 @@ var requestBuilder = {
4706
5141
 
4707
5142
  var requestBuilder_1 = requestBuilder;
4708
5143
 
4709
- var version = '3.6.2';
5144
+ var version = '3.7.0';
4710
5145
 
4711
5146
  /**
4712
5147
  * Event triggered when a parameter is set or updated
@@ -4827,7 +5262,7 @@ function AlgoliaSearchHelper(client, index, options) {
4827
5262
  this._currentNbQueries = 0;
4828
5263
  }
4829
5264
 
4830
- inherits_1(AlgoliaSearchHelper, EventEmitter.EventEmitter);
5265
+ inherits_1(AlgoliaSearchHelper, events);
4831
5266
 
4832
5267
  /**
4833
5268
  * Start the search with the parameters set in the state. When the
@@ -6358,15 +6793,19 @@ ConfigureRelatedItems.propTypes = {
6358
6793
  };
6359
6794
  connectConfigureRelatedItems(ConfigureRelatedItems);
6360
6795
 
6796
+ var MAX_WILDCARD_FACETS = 20;
6361
6797
  var connectDynamicWidgets = createConnectorWithContext({
6362
6798
  displayName: 'AlgoliaDynamicWidgets',
6363
6799
  defaultProps: {
6364
6800
  transformItems: function transformItems(items) {
6365
6801
  return items;
6366
- }
6802
+ },
6803
+ maxValuesPerFacet: 20
6367
6804
  },
6368
6805
  propTypes: {
6369
- transformItems: PropTypes.func
6806
+ transformItems: PropTypes.func,
6807
+ facets: PropTypes.arrayOf(PropTypes.string),
6808
+ maxValuesPerFacet: PropTypes.number
6370
6809
  },
6371
6810
  getProvidedProps: function getProvidedProps(props, _searchState, searchResults) {
6372
6811
  var results = getResults(searchResults, {
@@ -6374,6 +6813,10 @@ var connectDynamicWidgets = createConnectorWithContext({
6374
6813
  multiIndexContext: props.indexContextValue
6375
6814
  });
6376
6815
 
6816
+ if (props.facets && !(Array.isArray(props.facets) && props.facets.length <= 1 && (props.facets[0] === '*' || props.facets[0] === undefined))) {
6817
+ throw new Error("The `facets` prop only accepts [] or [\"*\"], you passed ".concat(JSON.stringify(props.facets)));
6818
+ }
6819
+
6377
6820
  if (!results) {
6378
6821
  return {
6379
6822
  attributesToRender: []
@@ -6381,11 +6824,30 @@ var connectDynamicWidgets = createConnectorWithContext({
6381
6824
  }
6382
6825
 
6383
6826
  var facetOrder = results.renderingContent && results.renderingContent.facetOrdering && results.renderingContent.facetOrdering.facets && results.renderingContent.facetOrdering.facets.order || [];
6827
+ var attributesToRender = props.transformItems(facetOrder, {
6828
+ results: results
6829
+ });
6830
+
6831
+ if (attributesToRender.length > MAX_WILDCARD_FACETS && !props.facets) {
6832
+ // eslint-disable-next-line no-console
6833
+ console.warn("More than ".concat(MAX_WILDCARD_FACETS, " facets are requested to be displayed without explicitly setting which facets to retrieve. This could have a performance impact. Set \"facets\" to [] to do two smaller network requests, or explicitly to ['*'] to avoid this warning."));
6834
+ }
6835
+
6836
+ if (props.maxValuesPerFacet < results._state.maxValuesPerFacet) {
6837
+ // eslint-disable-next-line no-console
6838
+ console.warn("The maxValuesPerFacet set by dynamic widgets (".concat(props.maxValuesPerFacet, ") is smaller than one of the limits set by a widget (").concat(results._state.maxValuesPerFacet, "). This causes a mismatch in query parameters and thus an extra network request when that widget is mounted."));
6839
+ }
6840
+
6384
6841
  return {
6385
- attributesToRender: props.transformItems(facetOrder, {
6386
- results: results
6387
- })
6842
+ attributesToRender: attributesToRender
6388
6843
  };
6844
+ },
6845
+ getSearchParameters: function getSearchParameters(searchParameters, props) {
6846
+ return (props.facets || ['*']).reduce(function (acc, curr) {
6847
+ return acc.addFacet(curr);
6848
+ }, searchParameters.setQueryParameters({
6849
+ maxValuesPerFacet: Math.max(props.maxValuesPerFacet || 0, searchParameters.maxValuesPerFacet || 0)
6850
+ }));
6389
6851
  }
6390
6852
  });
6391
6853
 
@@ -3,7 +3,7 @@ import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
3
3
  import { _ as _extends } from './extends-6d8e3924.js';
4
4
  import React__default from 'react';
5
5
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
6
- import { g as getSerializers } from './index-076baa11.js';
6
+ import { g as getSerializers } from './index-4d0371dc.js';
7
7
  import ArticleSeriesListing from './ArticleSeriesListing.js';
8
8
  import './_commonjsHelpers-0c4b6f40.js';
9
9
  import './core.get-iterator-method-ea258bb1.js';
@@ -15,11 +15,10 @@ import 'prop-types';
15
15
  import './index-3f5c03b2.js';
16
16
  import 'react-bootstrap';
17
17
  import './urlFor.js';
18
- import './index-f0fc23eb.js';
19
- import './events-6c3a7a63.js';
18
+ import './index-5cc7b406.js';
20
19
  import 'next/router';
21
20
  import './index-c7e2ac95.js';
22
- import './empty-a8042e3c.js';
21
+ import './util-8ed16d48.js';
23
22
  import './Beam.js';
24
23
  import './stringify-2b084bee.js';
25
24
  import './Segment.js';
@@ -33,7 +32,7 @@ import './brightcove-react-player-loader.es-57a70a56.js';
33
32
  import 'react-bootstrap/Modal';
34
33
  import 'react-bootstrap/Button';
35
34
  import 'react-bootstrap/Form';
36
- import './index-e7075467.js';
35
+ import 'react-ga';
37
36
  import './GroupDeck.js';
38
37
  import './smoothscroll-fa4e3f8c.js';
39
38
  import './moment-bc12cb97.js';
@@ -14,8 +14,7 @@ import './_object-sap-7cee6f84.js';
14
14
  import './define-property-5f1bda73.js';
15
15
  import './typeof-e9fc0c5d.js';
16
16
  import './_is-array-8d21b9e3.js';
17
- import './index-f0fc23eb.js';
18
- import './events-6c3a7a63.js';
17
+ import './index-5cc7b406.js';
19
18
  import 'prop-types';
20
19
  import 'react-bootstrap/Container';
21
20
  import 'react-bootstrap/Row';
@@ -32,13 +31,13 @@ import './visibility-sensor-72fd8f8b.js';
32
31
  import 'react-dom';
33
32
  import './slicedToArray-6ebcbfea.js';
34
33
  import './index-3f5c03b2.js';
35
- import './ADlgInfeed-e7fd1bb6.js';
34
+ import './ADlgInfeed-012e6f16.js';
36
35
  import './AdSlot.js';
37
36
  import './Beam.js';
38
37
  import './stringify-2b084bee.js';
39
38
  import './Segment.js';
40
39
  import './main-9f6806ea.js';
41
- import './ADInfeed-777bb0b3.js';
40
+ import './ADInfeed-f946441a.js';
42
41
 
43
42
  var _this = undefined;
44
43
 
@@ -1,7 +1,7 @@
1
1
  import { _ as _extends } from './extends-6d8e3924.js';
2
2
  import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-a6ba2ec4.js';
3
3
  import React__default from 'react';
4
- import { l as lib_3 } from './index-f0fc23eb.js';
4
+ import { l as lib_3 } from './index-5cc7b406.js';
5
5
  import Container from 'react-bootstrap/Container';
6
6
  import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
7
7
  import { I as IoIosArrowForward } from './index.esm-eb1e8e80.js';
@@ -19,7 +19,6 @@ import './typeof-e9fc0c5d.js';
19
19
  import './web.dom.iterable-ab4dea5c.js';
20
20
  import './_is-array-8d21b9e3.js';
21
21
  import './_library-528f1934.js';
22
- import './events-6c3a7a63.js';
23
22
  import 'prop-types';
24
23
  import 'react-dom';
25
24
  import './iconBase-ccc56b97.js';