@mjhls/mjh-framework 1.0.993-logtest → 1.0.993-topelement-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 (158) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +2 -1
  4. package/dist/cjs/AD300x250x600.js +2 -1
  5. package/dist/cjs/AD728x90.js +2 -1
  6. package/dist/cjs/ADFloatingFooter.js +2 -1
  7. package/dist/cjs/ADGutter.js +2 -1
  8. package/dist/cjs/ADSkyscraper.js +2 -1
  9. package/dist/cjs/ADSponsoredResources.js +2 -1
  10. package/dist/cjs/ADWebcast.js +2 -1
  11. package/dist/cjs/ADWelcome.js +2 -1
  12. package/dist/cjs/AdSlot.js +2 -1
  13. package/dist/cjs/AdSlotsProvider.js +5 -5
  14. package/dist/cjs/AlgoliaSearch.js +276 -738
  15. package/dist/cjs/ArticleProgramLandingPage.js +5 -4
  16. package/dist/cjs/ArticleSeriesLandingPage.js +4 -3
  17. package/dist/cjs/ArticleSeriesListing.js +2 -1
  18. package/dist/cjs/Auth.js +22830 -26
  19. package/dist/cjs/AuthWrapper.js +36 -16
  20. package/dist/cjs/CMEDeck.js +2 -1
  21. package/dist/cjs/Column3.js +2 -1
  22. package/dist/cjs/ConferenceArticleCard.js +15 -15
  23. package/dist/cjs/ContentCardPaginated.js +3 -2
  24. package/dist/cjs/DeckContent.js +11 -10
  25. package/dist/cjs/DeckQueue.js +2 -1
  26. package/dist/cjs/DeckQueuePaginated.js +2 -1
  27. package/dist/cjs/{Dfp-67646058.js → Dfp-c313a700.js} +2 -1
  28. package/dist/cjs/EventsDeck.js +17 -17
  29. package/dist/cjs/ExternalResources.js +5 -4
  30. package/dist/cjs/GridContent.js +4 -3
  31. package/dist/cjs/GridContentPaginated.js +4 -3
  32. package/dist/cjs/HamMagazine.js +9 -9
  33. package/dist/cjs/Header.js +1 -1
  34. package/dist/cjs/HealthCareProfessionalModal.js +1 -1
  35. package/dist/cjs/HorizontalArticleListing.js +5 -4
  36. package/dist/cjs/{ImageSlider-1ec0408b.js → ImageSlider-ca708da8.js} +1100 -1
  37. package/dist/cjs/IssueLanding.js +36 -35
  38. package/dist/cjs/KMTracker.js +15 -15
  39. package/dist/cjs/LeftNav.js +2 -1
  40. package/dist/cjs/MasterDeck.js +12 -11
  41. package/dist/cjs/MasterDeckPaginated.js +12 -11
  42. package/dist/cjs/{MediaSeriesCard-2645b00a.js → MediaSeriesCard-f6db8f70.js} +218 -227
  43. package/dist/cjs/MediaSeriesLanding.js +14 -13
  44. package/dist/cjs/MediaSeriesLandingPaginated.js +14 -13
  45. package/dist/cjs/NavMagazine.js +10 -10
  46. package/dist/cjs/NavNative.js +9 -9
  47. package/dist/cjs/PartnerDetailListing.js +10 -9
  48. package/dist/cjs/PartnerDetailListingPaginated.js +10 -9
  49. package/dist/cjs/PubSection.js +4 -3
  50. package/dist/cjs/PublicationLanding.js +26 -26
  51. package/dist/cjs/QueueDeckExpanded.js +4 -3
  52. package/dist/cjs/QueueDeckExpandedPaginated.js +4 -3
  53. package/dist/cjs/RelatedContent.js +28 -28
  54. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  55. package/dist/cjs/Schema.js +2 -1
  56. package/dist/cjs/SeriesListingDeck.js +3 -2
  57. package/dist/cjs/{SeriesSlider-18fc6e71.js → SeriesSlider-f5248377.js} +4 -4
  58. package/dist/cjs/SideFooter.js +2 -2
  59. package/dist/cjs/TaxonomyDescription.js +5 -4
  60. package/dist/cjs/TemplateNormal.js +2 -1
  61. package/dist/cjs/VideoProgramLandingPage.js +5 -4
  62. package/dist/cjs/VideoSeriesCard.js +1 -1
  63. package/dist/cjs/VideoSeriesLandingPage.js +4 -3
  64. package/dist/cjs/VideoSeriesListing.js +2 -1
  65. package/dist/cjs/View.js +9 -8
  66. package/dist/cjs/YoutubeGroup.js +4 -4
  67. package/dist/cjs/defineProperty-ad65f5f0.js +110 -0
  68. package/dist/{esm/util-8ed16d48.js → cjs/empty-559717f3.js} +146 -1
  69. package/dist/cjs/events-1b438fe7.js +469 -0
  70. package/dist/cjs/getSerializers.js +5 -4
  71. package/dist/cjs/{getTargeting-ba942d9a.js → getTargeting-4439c99d.js} +9 -9
  72. package/dist/cjs/getTargeting.js +1 -1
  73. package/dist/cjs/index-0cf4c9fc.js +904 -0
  74. package/dist/cjs/{index-b95410f0.js → index-9ec837cc.js} +35 -0
  75. package/dist/cjs/{index-669d70bd.js → index-b10d6863.js} +12 -15
  76. package/dist/cjs/{index-7435b964.js → index-d2a6ef75.js} +2 -467
  77. package/dist/cjs/index.js +12 -14
  78. package/dist/esm/AD.js +1 -1
  79. package/dist/esm/AD300x250.js +2 -1
  80. package/dist/esm/AD300x250x600.js +2 -1
  81. package/dist/esm/AD728x90.js +2 -1
  82. package/dist/esm/ADFloatingFooter.js +2 -1
  83. package/dist/esm/ADGutter.js +2 -1
  84. package/dist/esm/ADSkyscraper.js +2 -1
  85. package/dist/esm/ADSponsoredResources.js +2 -1
  86. package/dist/esm/ADWebcast.js +2 -1
  87. package/dist/esm/ADWelcome.js +2 -1
  88. package/dist/esm/AdSlot.js +2 -1
  89. package/dist/esm/AdSlotsProvider.js +3 -2
  90. package/dist/esm/AlgoliaSearch.js +12 -474
  91. package/dist/esm/ArticleProgramLandingPage.js +5 -4
  92. package/dist/esm/ArticleSeriesLandingPage.js +4 -3
  93. package/dist/esm/ArticleSeriesListing.js +2 -1
  94. package/dist/esm/Auth.js +22825 -18
  95. package/dist/esm/AuthWrapper.js +36 -16
  96. package/dist/esm/CMEDeck.js +2 -1
  97. package/dist/esm/Column3.js +2 -1
  98. package/dist/esm/ConferenceArticleCard.js +15 -15
  99. package/dist/esm/ContentCardPaginated.js +3 -2
  100. package/dist/esm/DeckContent.js +11 -10
  101. package/dist/esm/DeckQueue.js +2 -1
  102. package/dist/esm/DeckQueuePaginated.js +2 -1
  103. package/dist/esm/{Dfp-cf85d203.js → Dfp-102f0beb.js} +2 -1
  104. package/dist/esm/EventsDeck.js +17 -17
  105. package/dist/esm/ExternalResources.js +5 -4
  106. package/dist/esm/GridContent.js +4 -3
  107. package/dist/esm/GridContentPaginated.js +4 -3
  108. package/dist/esm/HamMagazine.js +9 -9
  109. package/dist/esm/Header.js +1 -1
  110. package/dist/esm/HealthCareProfessionalModal.js +1 -1
  111. package/dist/esm/HorizontalArticleListing.js +5 -4
  112. package/dist/esm/{ImageSlider-83913c4c.js → ImageSlider-fada4f0c.js} +1101 -3
  113. package/dist/esm/IssueLanding.js +36 -35
  114. package/dist/esm/KMTracker.js +15 -15
  115. package/dist/esm/LeftNav.js +2 -1
  116. package/dist/esm/MasterDeck.js +12 -11
  117. package/dist/esm/MasterDeckPaginated.js +12 -11
  118. package/dist/esm/{MediaSeriesCard-2a9ff7f3.js → MediaSeriesCard-96ac8ed4.js} +218 -227
  119. package/dist/esm/MediaSeriesLanding.js +14 -13
  120. package/dist/esm/MediaSeriesLandingPaginated.js +14 -13
  121. package/dist/esm/NavMagazine.js +10 -10
  122. package/dist/esm/NavNative.js +9 -9
  123. package/dist/esm/PartnerDetailListing.js +9 -8
  124. package/dist/esm/PartnerDetailListingPaginated.js +9 -8
  125. package/dist/esm/PubSection.js +4 -3
  126. package/dist/esm/PublicationLanding.js +26 -26
  127. package/dist/esm/QueueDeckExpanded.js +4 -3
  128. package/dist/esm/QueueDeckExpandedPaginated.js +4 -3
  129. package/dist/esm/RelatedContent.js +28 -28
  130. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  131. package/dist/esm/Schema.js +2 -1
  132. package/dist/esm/SeriesListingDeck.js +3 -2
  133. package/dist/esm/{SeriesSlider-5728e349.js → SeriesSlider-4875823e.js} +4 -4
  134. package/dist/esm/SideFooter.js +2 -2
  135. package/dist/esm/TaxonomyDescription.js +5 -4
  136. package/dist/esm/TemplateNormal.js +2 -1
  137. package/dist/esm/VideoProgramLandingPage.js +5 -4
  138. package/dist/esm/VideoSeriesCard.js +1 -1
  139. package/dist/esm/VideoSeriesLandingPage.js +4 -3
  140. package/dist/esm/VideoSeriesListing.js +2 -1
  141. package/dist/esm/View.js +9 -8
  142. package/dist/esm/YoutubeGroup.js +4 -4
  143. package/dist/esm/defineProperty-50094484.js +101 -0
  144. package/dist/{cjs/util-93a37fd0.js → esm/empty-a8042e3c.js} +135 -3
  145. package/dist/esm/events-6c3a7a63.js +467 -0
  146. package/dist/esm/getSerializers.js +5 -4
  147. package/dist/esm/{getTargeting-9bd28724.js → getTargeting-c6884f34.js} +9 -9
  148. package/dist/esm/getTargeting.js +1 -1
  149. package/dist/esm/{index-4d0371dc.js → index-076baa11.js} +5 -7
  150. package/dist/esm/{index-174b5baf.js → index-0ce54f8a.js} +34 -1
  151. package/dist/esm/index-e7075467.js +897 -0
  152. package/dist/esm/{index-5cc7b406.js → index-f0fc23eb.js} +1 -466
  153. package/dist/esm/index.js +12 -14
  154. package/package.json +114 -114
  155. /package/dist/cjs/{ADInfeed-ef933a08.js → ADInfeed-f316b66a.js} +0 -0
  156. /package/dist/cjs/{ADlgInfeed-0e931f24.js → ADlgInfeed-2003306e.js} +0 -0
  157. /package/dist/esm/{ADInfeed-f946441a.js → ADInfeed-777bb0b3.js} +0 -0
  158. /package/dist/esm/{ADlgInfeed-012e6f16.js → ADlgInfeed-e7fd1bb6.js} +0 -0
@@ -3,7 +3,9 @@ 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 { c as classnames } from './index-174b5baf.js';
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';
7
9
  import { DropdownButton } from 'react-bootstrap';
8
10
  import urlFor from './urlFor.js';
9
11
  import { m as moment } from './moment-bc12cb97.js';
@@ -20,39 +22,6 @@ import './slicedToArray-6ebcbfea.js';
20
22
  import './index-3f5c03b2.js';
21
23
  import 'react-dom';
22
24
 
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
-
56
25
  function _objectWithoutProperties(source, excluded) {
57
26
  if (source == null) return {};
58
27
  var target = _objectWithoutPropertiesLoose$1(source, excluded);
@@ -72,106 +41,6 @@ function _objectWithoutProperties(source, excluded) {
72
41
  return target;
73
42
  }
74
43
 
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
-
175
44
  /* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
176
45
 
177
46
  var hasElementType = typeof Element !== 'undefined';
@@ -859,7 +728,7 @@ function parseAlgoliaHit(_ref2) {
859
728
  });
860
729
  }
861
730
 
862
- var version$1 = '6.18.0';
731
+ var version$1 = '6.17.0';
863
732
 
864
733
  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); }; }
865
734
 
@@ -870,7 +739,6 @@ var withKeysPropType = function withKeysPropType(keys) {
870
739
  var prop = props[propName];
871
740
 
872
741
  if (prop) {
873
- // eslint-disable-next-line no-restricted-syntax
874
742
  for (var _i = 0, _Object$keys = Object.keys(prop); _i < _Object$keys.length; _i++) {
875
743
  var key = _Object$keys[_i];
876
744
 
@@ -4473,309 +4341,6 @@ function getHierarchicalRefinement(state, attributeName, name, resultsFacets) {
4473
4341
 
4474
4342
  var SearchResults_1 = SearchResults;
4475
4343
 
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
-
4779
4344
  function inherits(ctor, superCtor) {
4780
4345
  ctor.prototype = Object.create(superCtor.prototype, {
4781
4346
  constructor: {
@@ -4805,7 +4370,7 @@ function DerivedHelper(mainHelper, fn) {
4805
4370
  this.lastResults = null;
4806
4371
  }
4807
4372
 
4808
- inherits_1(DerivedHelper, events);
4373
+ inherits_1(DerivedHelper, EventEmitter.EventEmitter);
4809
4374
 
4810
4375
  /**
4811
4376
  * Detach this helper from the main helper
@@ -5141,7 +4706,7 @@ var requestBuilder = {
5141
4706
 
5142
4707
  var requestBuilder_1 = requestBuilder;
5143
4708
 
5144
- var version = '3.7.0';
4709
+ var version = '3.6.2';
5145
4710
 
5146
4711
  /**
5147
4712
  * Event triggered when a parameter is set or updated
@@ -5262,7 +4827,7 @@ function AlgoliaSearchHelper(client, index, options) {
5262
4827
  this._currentNbQueries = 0;
5263
4828
  }
5264
4829
 
5265
- inherits_1(AlgoliaSearchHelper, events);
4830
+ inherits_1(AlgoliaSearchHelper, EventEmitter.EventEmitter);
5266
4831
 
5267
4832
  /**
5268
4833
  * Start the search with the parameters set in the state. When the
@@ -6793,19 +6358,15 @@ ConfigureRelatedItems.propTypes = {
6793
6358
  };
6794
6359
  connectConfigureRelatedItems(ConfigureRelatedItems);
6795
6360
 
6796
- var MAX_WILDCARD_FACETS = 20;
6797
6361
  var connectDynamicWidgets = createConnectorWithContext({
6798
6362
  displayName: 'AlgoliaDynamicWidgets',
6799
6363
  defaultProps: {
6800
6364
  transformItems: function transformItems(items) {
6801
6365
  return items;
6802
- },
6803
- maxValuesPerFacet: 20
6366
+ }
6804
6367
  },
6805
6368
  propTypes: {
6806
- transformItems: PropTypes.func,
6807
- facets: PropTypes.arrayOf(PropTypes.string),
6808
- maxValuesPerFacet: PropTypes.number
6369
+ transformItems: PropTypes.func
6809
6370
  },
6810
6371
  getProvidedProps: function getProvidedProps(props, _searchState, searchResults) {
6811
6372
  var results = getResults(searchResults, {
@@ -6813,10 +6374,6 @@ var connectDynamicWidgets = createConnectorWithContext({
6813
6374
  multiIndexContext: props.indexContextValue
6814
6375
  });
6815
6376
 
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
-
6820
6377
  if (!results) {
6821
6378
  return {
6822
6379
  attributesToRender: []
@@ -6824,30 +6381,11 @@ var connectDynamicWidgets = createConnectorWithContext({
6824
6381
  }
6825
6382
 
6826
6383
  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
-
6841
6384
  return {
6842
- attributesToRender: attributesToRender
6385
+ attributesToRender: props.transformItems(facetOrder, {
6386
+ results: results
6387
+ })
6843
6388
  };
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
- }));
6851
6389
  }
6852
6390
  });
6853
6391
 
@@ -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-4d0371dc.js';
6
+ import { g as getSerializers } from './index-076baa11.js';
7
7
  import ArticleSeriesListing from './ArticleSeriesListing.js';
8
8
  import './_commonjsHelpers-0c4b6f40.js';
9
9
  import './core.get-iterator-method-ea258bb1.js';
@@ -15,10 +15,11 @@ import 'prop-types';
15
15
  import './index-3f5c03b2.js';
16
16
  import 'react-bootstrap';
17
17
  import './urlFor.js';
18
- import './index-5cc7b406.js';
18
+ import './index-f0fc23eb.js';
19
+ import './events-6c3a7a63.js';
19
20
  import 'next/router';
20
21
  import './index-c7e2ac95.js';
21
- import './util-8ed16d48.js';
22
+ import './empty-a8042e3c.js';
22
23
  import './Beam.js';
23
24
  import './stringify-2b084bee.js';
24
25
  import './Segment.js';
@@ -32,7 +33,7 @@ import './brightcove-react-player-loader.es-57a70a56.js';
32
33
  import 'react-bootstrap/Modal';
33
34
  import 'react-bootstrap/Button';
34
35
  import 'react-bootstrap/Form';
35
- import 'react-ga';
36
+ import './index-e7075467.js';
36
37
  import './GroupDeck.js';
37
38
  import './smoothscroll-fa4e3f8c.js';
38
39
  import './moment-bc12cb97.js';
@@ -14,7 +14,8 @@ 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-5cc7b406.js';
17
+ import './index-f0fc23eb.js';
18
+ import './events-6c3a7a63.js';
18
19
  import 'prop-types';
19
20
  import 'react-bootstrap/Container';
20
21
  import 'react-bootstrap/Row';
@@ -31,13 +32,13 @@ import './visibility-sensor-72fd8f8b.js';
31
32
  import 'react-dom';
32
33
  import './slicedToArray-6ebcbfea.js';
33
34
  import './index-3f5c03b2.js';
34
- import './ADlgInfeed-012e6f16.js';
35
+ import './ADlgInfeed-e7fd1bb6.js';
35
36
  import './AdSlot.js';
36
37
  import './Beam.js';
37
38
  import './stringify-2b084bee.js';
38
39
  import './Segment.js';
39
40
  import './main-9f6806ea.js';
40
- import './ADInfeed-f946441a.js';
41
+ import './ADInfeed-777bb0b3.js';
41
42
 
42
43
  var _this = undefined;
43
44
 
@@ -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-5cc7b406.js';
4
+ import { l as lib_3 } from './index-f0fc23eb.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,6 +19,7 @@ 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';
22
23
  import 'prop-types';
23
24
  import 'react-dom';
24
25
  import './iconBase-ccc56b97.js';