@mjhls/mjh-framework 1.0.1050-lightbox-v7 → 1.0.1050-pdfGating-v2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +2 -4
  4. package/dist/cjs/AD300x250x600.js +2 -4
  5. package/dist/cjs/AD728x90.js +2 -4
  6. package/dist/cjs/ADFloatingFooter.js +2 -4
  7. package/dist/cjs/ADGutter.js +2 -4
  8. package/dist/cjs/ADSkyscraper.js +2 -4
  9. package/dist/cjs/ADSponsoredResources.js +2 -4
  10. package/dist/cjs/ADWebcast.js +2 -4
  11. package/dist/cjs/ADWelcome.js +2 -4
  12. package/dist/cjs/AdSlot.js +2 -4
  13. package/dist/cjs/AdSlotsProvider.js +2 -4
  14. package/dist/cjs/AlgoliaSearch.js +337 -38
  15. package/dist/cjs/ArticleProgramLandingPage.js +4 -6
  16. package/dist/cjs/ArticleSeriesLandingPage.js +4 -6
  17. package/dist/cjs/ArticleSeriesListing.js +1 -2
  18. package/dist/cjs/Auth.js +1 -2
  19. package/dist/cjs/AuthWrapper.js +6 -96
  20. package/dist/cjs/Beam.js +1 -2
  21. package/dist/cjs/CEDeckSupabase.js +2 -3
  22. package/dist/cjs/CMEDeck.js +2 -4
  23. package/dist/cjs/Column2.js +1 -2
  24. package/dist/cjs/Column3.js +2 -4
  25. package/dist/cjs/ConferenceArticleCard.js +15 -15
  26. package/dist/cjs/ContentCardPaginated.js +3 -5
  27. package/dist/cjs/DeckContent.js +11 -13
  28. package/dist/cjs/DeckQueue.js +1 -2
  29. package/dist/cjs/DeckQueuePaginated.js +2 -4
  30. package/dist/cjs/{Dfp-c313a700.js → Dfp-67646058.js} +1 -2
  31. package/dist/cjs/EventsDeck.js +17 -17
  32. package/dist/cjs/ExternalResources.js +4 -6
  33. package/dist/cjs/GridContent.js +4 -6
  34. package/dist/cjs/GridContentPaginated.js +4 -6
  35. package/dist/cjs/HamMagazine.js +10 -11
  36. package/dist/cjs/HealthCareProfessionalModal.js +1 -1
  37. package/dist/cjs/HorizontalArticleListing.js +4 -6
  38. package/dist/cjs/{ImageSlider-d65bc9c8.js → ImageSlider-984a697b.js} +116 -156
  39. package/dist/cjs/IssueLanding.js +35 -37
  40. package/dist/cjs/KMTracker.js +15 -15
  41. package/dist/cjs/LeftNav.js +2 -4
  42. package/dist/cjs/MasterDeck.js +12 -14
  43. package/dist/cjs/MasterDeckPaginated.js +12 -14
  44. package/dist/cjs/{MediaSeriesCard-9c30d800.js → MediaSeriesCard-d169c597.js} +2 -2
  45. package/dist/cjs/MediaSeriesLanding.js +14 -16
  46. package/dist/cjs/MediaSeriesLandingPaginated.js +14 -16
  47. package/dist/cjs/NavDvm.js +1 -2
  48. package/dist/cjs/NavMagazine.js +11 -12
  49. package/dist/cjs/NavNative.js +10 -11
  50. package/dist/cjs/PartnerDetailListing.js +8 -9
  51. package/dist/cjs/PartnerDetailListingPaginated.js +8 -9
  52. package/dist/cjs/PodcastsLanding.js +7 -9
  53. package/dist/cjs/PtceDeck.js +1 -2
  54. package/dist/cjs/PubSection.js +4 -6
  55. package/dist/cjs/PubToc.js +1 -2
  56. package/dist/cjs/PublicationLanding.js +344 -44
  57. package/dist/cjs/QueueDeckExpanded.js +4 -6
  58. package/dist/cjs/QueueDeckExpandedPaginated.js +4 -6
  59. package/dist/cjs/RelatedContent.js +28 -28
  60. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  61. package/dist/cjs/Segment.js +1 -2
  62. package/dist/cjs/SeriesListingDeck.js +2 -3
  63. package/dist/cjs/{SeriesSlider-c7ed509b.js → SeriesSlider-086a8319.js} +4 -4
  64. package/dist/cjs/SideFooter.js +3 -4
  65. package/dist/cjs/TaxonomyDescription.js +4 -6
  66. package/dist/cjs/TemplateNormal.js +2 -4
  67. package/dist/cjs/{Tooltip-02a841b5.js → Tooltip-96fe6ef6.js} +34 -86
  68. package/dist/cjs/Ustream.js +1 -2
  69. package/dist/cjs/VideoProgramLandingPage.js +4 -6
  70. package/dist/cjs/VideoSeriesCard.js +1 -1
  71. package/dist/cjs/VideoSeriesFilter.js +1 -2
  72. package/dist/cjs/VideoSeriesLandingPage.js +4 -6
  73. package/dist/cjs/VideoSeriesListing.js +1 -2
  74. package/dist/cjs/View.js +8 -10
  75. package/dist/cjs/YoutubeGroup.js +4 -4
  76. package/dist/cjs/{asyncToGenerator-65df6bf8.js → asyncToGenerator-77821af0.js} +56 -8
  77. package/dist/cjs/defineProperty-e0fb52c5.js +73 -0
  78. package/dist/cjs/faundadb.js +1 -2
  79. package/dist/cjs/getPtceActivities.js +1 -2
  80. package/dist/cjs/getRelatedArticle.js +1 -2
  81. package/dist/cjs/getRootDocGroup.js +1 -2
  82. package/dist/cjs/getSerializers.js +4 -6
  83. package/dist/cjs/getTIData.js +1 -2
  84. package/dist/cjs/{getTargeting-45ffbee8.js → getTargeting-5b954783.js} +9 -9
  85. package/dist/cjs/getTargeting.js +1 -1
  86. package/dist/cjs/{index-9ec837cc.js → index-50be6759.js} +25 -9
  87. package/dist/cjs/{index-d2a6ef75.js → index-7435b964.js} +467 -2
  88. package/dist/cjs/{index-d4139113.js → index-e8600243.js} +25 -16
  89. package/dist/cjs/index.js +14 -14
  90. package/dist/cjs/typeof-1358762e.js +33 -0
  91. package/dist/cjs/{urlForFile-5084fc48.js → urlForFile-ef20990d.js} +2 -1
  92. package/dist/esm/AD.js +1 -1
  93. package/dist/esm/AD300x250.js +2 -4
  94. package/dist/esm/AD300x250x600.js +2 -4
  95. package/dist/esm/AD728x90.js +2 -4
  96. package/dist/esm/ADFloatingFooter.js +2 -4
  97. package/dist/esm/ADGutter.js +2 -4
  98. package/dist/esm/ADSkyscraper.js +2 -4
  99. package/dist/esm/ADSponsoredResources.js +2 -4
  100. package/dist/esm/ADWebcast.js +2 -4
  101. package/dist/esm/ADWelcome.js +2 -4
  102. package/dist/esm/AdSlot.js +2 -4
  103. package/dist/esm/AdSlotsProvider.js +2 -4
  104. package/dist/esm/AlgoliaSearch.js +336 -37
  105. package/dist/esm/ArticleProgramLandingPage.js +4 -6
  106. package/dist/esm/ArticleSeriesLandingPage.js +4 -6
  107. package/dist/esm/ArticleSeriesListing.js +1 -2
  108. package/dist/esm/Auth.js +1 -2
  109. package/dist/esm/AuthWrapper.js +3 -93
  110. package/dist/esm/Beam.js +1 -2
  111. package/dist/esm/CEDeckSupabase.js +2 -3
  112. package/dist/esm/CMEDeck.js +2 -4
  113. package/dist/esm/Column2.js +1 -2
  114. package/dist/esm/Column3.js +2 -4
  115. package/dist/esm/ConferenceArticleCard.js +15 -15
  116. package/dist/esm/ContentCardPaginated.js +3 -5
  117. package/dist/esm/DeckContent.js +11 -13
  118. package/dist/esm/DeckQueue.js +1 -2
  119. package/dist/esm/DeckQueuePaginated.js +2 -4
  120. package/dist/esm/{Dfp-102f0beb.js → Dfp-cf85d203.js} +1 -2
  121. package/dist/esm/EventsDeck.js +17 -17
  122. package/dist/esm/ExternalResources.js +4 -6
  123. package/dist/esm/GridContent.js +4 -6
  124. package/dist/esm/GridContentPaginated.js +4 -6
  125. package/dist/esm/HamMagazine.js +10 -11
  126. package/dist/esm/HealthCareProfessionalModal.js +1 -1
  127. package/dist/esm/HorizontalArticleListing.js +4 -6
  128. package/dist/esm/{ImageSlider-da225417.js → ImageSlider-497e9c88.js} +117 -157
  129. package/dist/esm/IssueLanding.js +35 -37
  130. package/dist/esm/KMTracker.js +15 -15
  131. package/dist/esm/LeftNav.js +2 -4
  132. package/dist/esm/MasterDeck.js +12 -14
  133. package/dist/esm/MasterDeckPaginated.js +12 -14
  134. package/dist/esm/{MediaSeriesCard-0830bfb5.js → MediaSeriesCard-db3db926.js} +2 -2
  135. package/dist/esm/MediaSeriesLanding.js +14 -16
  136. package/dist/esm/MediaSeriesLandingPaginated.js +14 -16
  137. package/dist/esm/NavDvm.js +1 -2
  138. package/dist/esm/NavMagazine.js +11 -12
  139. package/dist/esm/NavNative.js +10 -11
  140. package/dist/esm/PartnerDetailListing.js +8 -9
  141. package/dist/esm/PartnerDetailListingPaginated.js +8 -9
  142. package/dist/esm/PodcastsLanding.js +7 -9
  143. package/dist/esm/PtceDeck.js +1 -2
  144. package/dist/esm/PubSection.js +4 -6
  145. package/dist/esm/PubToc.js +1 -2
  146. package/dist/esm/PublicationLanding.js +330 -34
  147. package/dist/esm/QueueDeckExpanded.js +4 -6
  148. package/dist/esm/QueueDeckExpandedPaginated.js +4 -6
  149. package/dist/esm/RelatedContent.js +28 -28
  150. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  151. package/dist/esm/Segment.js +1 -2
  152. package/dist/esm/SeriesListingDeck.js +2 -3
  153. package/dist/esm/{SeriesSlider-b467f00c.js → SeriesSlider-a6b1d617.js} +4 -4
  154. package/dist/esm/SideFooter.js +3 -4
  155. package/dist/esm/TaxonomyDescription.js +4 -6
  156. package/dist/esm/TemplateNormal.js +2 -4
  157. package/dist/esm/{Tooltip-7a093cd4.js → Tooltip-bc98d17e.js} +192 -244
  158. package/dist/esm/Ustream.js +1 -2
  159. package/dist/esm/VideoProgramLandingPage.js +4 -6
  160. package/dist/esm/VideoSeriesCard.js +1 -1
  161. package/dist/esm/VideoSeriesFilter.js +1 -2
  162. package/dist/esm/VideoSeriesLandingPage.js +4 -6
  163. package/dist/esm/VideoSeriesListing.js +1 -2
  164. package/dist/esm/View.js +8 -10
  165. package/dist/esm/YoutubeGroup.js +4 -4
  166. package/dist/esm/{asyncToGenerator-64822ccc.js → asyncToGenerator-958ef5fc.js} +50 -6
  167. package/dist/esm/defineProperty-23a8f8cd.js +68 -0
  168. package/dist/esm/faundadb.js +1 -2
  169. package/dist/esm/getPtceActivities.js +1 -2
  170. package/dist/esm/getRelatedArticle.js +1 -2
  171. package/dist/esm/getRootDocGroup.js +1 -2
  172. package/dist/esm/getSerializers.js +4 -6
  173. package/dist/esm/getTIData.js +1 -2
  174. package/dist/esm/{getTargeting-a569a9cc.js → getTargeting-5a281334.js} +9 -9
  175. package/dist/esm/getTargeting.js +1 -1
  176. package/dist/esm/{index-f0fc23eb.js → index-5cc7b406.js} +466 -1
  177. package/dist/esm/{index-d0cdb127.js → index-60cb5113.js} +25 -16
  178. package/dist/esm/{index-0ce54f8a.js → index-98ca9cec.js} +25 -10
  179. package/dist/esm/index.js +14 -14
  180. package/dist/esm/typeof-2f07d0e8.js +30 -0
  181. package/dist/esm/{urlForFile-f6485737.js → urlForFile-dc111d7f.js} +2 -1
  182. package/package.json +116 -116
  183. package/dist/cjs/_set-species-0c7864a2.js +0 -55
  184. package/dist/cjs/events-1b438fe7.js +0 -469
  185. package/dist/esm/_set-species-2cd9340f.js +0 -50
  186. package/dist/esm/events-6c3a7a63.js +0 -467
  187. /package/dist/cjs/{ADInfeed-89f63b7d.js → ADInfeed-49bdb9e1.js} +0 -0
  188. /package/dist/cjs/{ADlgInfeed-a536168e.js → ADlgInfeed-33be9ab6.js} +0 -0
  189. /package/dist/esm/{ADInfeed-c14e043c.js → ADInfeed-d2229e62.js} +0 -0
  190. /package/dist/esm/{ADlgInfeed-2892de3c.js → ADlgInfeed-e13fb474.js} +0 -0
@@ -1,8 +1,473 @@
1
1
  import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
2
- import { E as EventEmitter } from './events-6c3a7a63.js';
3
2
  import React__default from 'react';
4
3
  import PropTypes from 'prop-types';
5
4
 
5
+ var domain;
6
+
7
+ // This constructor is used to store event handlers. Instantiating this is
8
+ // faster than explicitly calling `Object.create(null)` to get a "clean" empty
9
+ // object (tested with v8 v4.9).
10
+ function EventHandlers() {}
11
+ EventHandlers.prototype = Object.create(null);
12
+
13
+ function EventEmitter() {
14
+ EventEmitter.init.call(this);
15
+ }
16
+
17
+ // nodejs oddity
18
+ // require('events') === require('events').EventEmitter
19
+ EventEmitter.EventEmitter = EventEmitter;
20
+
21
+ EventEmitter.usingDomains = false;
22
+
23
+ EventEmitter.prototype.domain = undefined;
24
+ EventEmitter.prototype._events = undefined;
25
+ EventEmitter.prototype._maxListeners = undefined;
26
+
27
+ // By default EventEmitters will print a warning if more than 10 listeners are
28
+ // added to it. This is a useful default which helps finding memory leaks.
29
+ EventEmitter.defaultMaxListeners = 10;
30
+
31
+ EventEmitter.init = function() {
32
+ this.domain = null;
33
+ if (EventEmitter.usingDomains) {
34
+ // if there is an active domain, then attach to it.
35
+ if (domain.active ) ;
36
+ }
37
+
38
+ if (!this._events || this._events === Object.getPrototypeOf(this)._events) {
39
+ this._events = new EventHandlers();
40
+ this._eventsCount = 0;
41
+ }
42
+
43
+ this._maxListeners = this._maxListeners || undefined;
44
+ };
45
+
46
+ // Obviously not all Emitters should be limited to 10. This function allows
47
+ // that to be increased. Set to zero for unlimited.
48
+ EventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {
49
+ if (typeof n !== 'number' || n < 0 || isNaN(n))
50
+ throw new TypeError('"n" argument must be a positive number');
51
+ this._maxListeners = n;
52
+ return this;
53
+ };
54
+
55
+ function $getMaxListeners(that) {
56
+ if (that._maxListeners === undefined)
57
+ return EventEmitter.defaultMaxListeners;
58
+ return that._maxListeners;
59
+ }
60
+
61
+ EventEmitter.prototype.getMaxListeners = function getMaxListeners() {
62
+ return $getMaxListeners(this);
63
+ };
64
+
65
+ // These standalone emit* functions are used to optimize calling of event
66
+ // handlers for fast cases because emit() itself often has a variable number of
67
+ // arguments and can be deoptimized because of that. These functions always have
68
+ // the same number of arguments and thus do not get deoptimized, so the code
69
+ // inside them can execute faster.
70
+ function emitNone(handler, isFn, self) {
71
+ if (isFn)
72
+ handler.call(self);
73
+ else {
74
+ var len = handler.length;
75
+ var listeners = arrayClone(handler, len);
76
+ for (var i = 0; i < len; ++i)
77
+ listeners[i].call(self);
78
+ }
79
+ }
80
+ function emitOne(handler, isFn, self, arg1) {
81
+ if (isFn)
82
+ handler.call(self, arg1);
83
+ else {
84
+ var len = handler.length;
85
+ var listeners = arrayClone(handler, len);
86
+ for (var i = 0; i < len; ++i)
87
+ listeners[i].call(self, arg1);
88
+ }
89
+ }
90
+ function emitTwo(handler, isFn, self, arg1, arg2) {
91
+ if (isFn)
92
+ handler.call(self, arg1, arg2);
93
+ else {
94
+ var len = handler.length;
95
+ var listeners = arrayClone(handler, len);
96
+ for (var i = 0; i < len; ++i)
97
+ listeners[i].call(self, arg1, arg2);
98
+ }
99
+ }
100
+ function emitThree(handler, isFn, self, arg1, arg2, arg3) {
101
+ if (isFn)
102
+ handler.call(self, arg1, arg2, arg3);
103
+ else {
104
+ var len = handler.length;
105
+ var listeners = arrayClone(handler, len);
106
+ for (var i = 0; i < len; ++i)
107
+ listeners[i].call(self, arg1, arg2, arg3);
108
+ }
109
+ }
110
+
111
+ function emitMany(handler, isFn, self, args) {
112
+ if (isFn)
113
+ handler.apply(self, args);
114
+ else {
115
+ var len = handler.length;
116
+ var listeners = arrayClone(handler, len);
117
+ for (var i = 0; i < len; ++i)
118
+ listeners[i].apply(self, args);
119
+ }
120
+ }
121
+
122
+ EventEmitter.prototype.emit = function emit(type) {
123
+ var er, handler, len, args, i, events, domain;
124
+ var doError = (type === 'error');
125
+
126
+ events = this._events;
127
+ if (events)
128
+ doError = (doError && events.error == null);
129
+ else if (!doError)
130
+ return false;
131
+
132
+ domain = this.domain;
133
+
134
+ // If there is no 'error' event listener then throw.
135
+ if (doError) {
136
+ er = arguments[1];
137
+ if (domain) {
138
+ if (!er)
139
+ er = new Error('Uncaught, unspecified "error" event');
140
+ er.domainEmitter = this;
141
+ er.domain = domain;
142
+ er.domainThrown = false;
143
+ domain.emit('error', er);
144
+ } else if (er instanceof Error) {
145
+ throw er; // Unhandled 'error' event
146
+ } else {
147
+ // At least give some kind of context to the user
148
+ var err = new Error('Uncaught, unspecified "error" event. (' + er + ')');
149
+ err.context = er;
150
+ throw err;
151
+ }
152
+ return false;
153
+ }
154
+
155
+ handler = events[type];
156
+
157
+ if (!handler)
158
+ return false;
159
+
160
+ var isFn = typeof handler === 'function';
161
+ len = arguments.length;
162
+ switch (len) {
163
+ // fast cases
164
+ case 1:
165
+ emitNone(handler, isFn, this);
166
+ break;
167
+ case 2:
168
+ emitOne(handler, isFn, this, arguments[1]);
169
+ break;
170
+ case 3:
171
+ emitTwo(handler, isFn, this, arguments[1], arguments[2]);
172
+ break;
173
+ case 4:
174
+ emitThree(handler, isFn, this, arguments[1], arguments[2], arguments[3]);
175
+ break;
176
+ // slower
177
+ default:
178
+ args = new Array(len - 1);
179
+ for (i = 1; i < len; i++)
180
+ args[i - 1] = arguments[i];
181
+ emitMany(handler, isFn, this, args);
182
+ }
183
+
184
+ return true;
185
+ };
186
+
187
+ function _addListener(target, type, listener, prepend) {
188
+ var m;
189
+ var events;
190
+ var existing;
191
+
192
+ if (typeof listener !== 'function')
193
+ throw new TypeError('"listener" argument must be a function');
194
+
195
+ events = target._events;
196
+ if (!events) {
197
+ events = target._events = new EventHandlers();
198
+ target._eventsCount = 0;
199
+ } else {
200
+ // To avoid recursion in the case that type === "newListener"! Before
201
+ // adding it to the listeners, first emit "newListener".
202
+ if (events.newListener) {
203
+ target.emit('newListener', type,
204
+ listener.listener ? listener.listener : listener);
205
+
206
+ // Re-assign `events` because a newListener handler could have caused the
207
+ // this._events to be assigned to a new object
208
+ events = target._events;
209
+ }
210
+ existing = events[type];
211
+ }
212
+
213
+ if (!existing) {
214
+ // Optimize the case of one listener. Don't need the extra array object.
215
+ existing = events[type] = listener;
216
+ ++target._eventsCount;
217
+ } else {
218
+ if (typeof existing === 'function') {
219
+ // Adding the second element, need to change to array.
220
+ existing = events[type] = prepend ? [listener, existing] :
221
+ [existing, listener];
222
+ } else {
223
+ // If we've already got an array, just append.
224
+ if (prepend) {
225
+ existing.unshift(listener);
226
+ } else {
227
+ existing.push(listener);
228
+ }
229
+ }
230
+
231
+ // Check for listener leak
232
+ if (!existing.warned) {
233
+ m = $getMaxListeners(target);
234
+ if (m && m > 0 && existing.length > m) {
235
+ existing.warned = true;
236
+ var w = new Error('Possible EventEmitter memory leak detected. ' +
237
+ existing.length + ' ' + type + ' listeners added. ' +
238
+ 'Use emitter.setMaxListeners() to increase limit');
239
+ w.name = 'MaxListenersExceededWarning';
240
+ w.emitter = target;
241
+ w.type = type;
242
+ w.count = existing.length;
243
+ emitWarning(w);
244
+ }
245
+ }
246
+ }
247
+
248
+ return target;
249
+ }
250
+ function emitWarning(e) {
251
+ typeof console.warn === 'function' ? console.warn(e) : console.log(e);
252
+ }
253
+ EventEmitter.prototype.addListener = function addListener(type, listener) {
254
+ return _addListener(this, type, listener, false);
255
+ };
256
+
257
+ EventEmitter.prototype.on = EventEmitter.prototype.addListener;
258
+
259
+ EventEmitter.prototype.prependListener =
260
+ function prependListener(type, listener) {
261
+ return _addListener(this, type, listener, true);
262
+ };
263
+
264
+ function _onceWrap(target, type, listener) {
265
+ var fired = false;
266
+ function g() {
267
+ target.removeListener(type, g);
268
+ if (!fired) {
269
+ fired = true;
270
+ listener.apply(target, arguments);
271
+ }
272
+ }
273
+ g.listener = listener;
274
+ return g;
275
+ }
276
+
277
+ EventEmitter.prototype.once = function once(type, listener) {
278
+ if (typeof listener !== 'function')
279
+ throw new TypeError('"listener" argument must be a function');
280
+ this.on(type, _onceWrap(this, type, listener));
281
+ return this;
282
+ };
283
+
284
+ EventEmitter.prototype.prependOnceListener =
285
+ function prependOnceListener(type, listener) {
286
+ if (typeof listener !== 'function')
287
+ throw new TypeError('"listener" argument must be a function');
288
+ this.prependListener(type, _onceWrap(this, type, listener));
289
+ return this;
290
+ };
291
+
292
+ // emits a 'removeListener' event iff the listener was removed
293
+ EventEmitter.prototype.removeListener =
294
+ function removeListener(type, listener) {
295
+ var list, events, position, i, originalListener;
296
+
297
+ if (typeof listener !== 'function')
298
+ throw new TypeError('"listener" argument must be a function');
299
+
300
+ events = this._events;
301
+ if (!events)
302
+ return this;
303
+
304
+ list = events[type];
305
+ if (!list)
306
+ return this;
307
+
308
+ if (list === listener || (list.listener && list.listener === listener)) {
309
+ if (--this._eventsCount === 0)
310
+ this._events = new EventHandlers();
311
+ else {
312
+ delete events[type];
313
+ if (events.removeListener)
314
+ this.emit('removeListener', type, list.listener || listener);
315
+ }
316
+ } else if (typeof list !== 'function') {
317
+ position = -1;
318
+
319
+ for (i = list.length; i-- > 0;) {
320
+ if (list[i] === listener ||
321
+ (list[i].listener && list[i].listener === listener)) {
322
+ originalListener = list[i].listener;
323
+ position = i;
324
+ break;
325
+ }
326
+ }
327
+
328
+ if (position < 0)
329
+ return this;
330
+
331
+ if (list.length === 1) {
332
+ list[0] = undefined;
333
+ if (--this._eventsCount === 0) {
334
+ this._events = new EventHandlers();
335
+ return this;
336
+ } else {
337
+ delete events[type];
338
+ }
339
+ } else {
340
+ spliceOne(list, position);
341
+ }
342
+
343
+ if (events.removeListener)
344
+ this.emit('removeListener', type, originalListener || listener);
345
+ }
346
+
347
+ return this;
348
+ };
349
+
350
+ EventEmitter.prototype.removeAllListeners =
351
+ function removeAllListeners(type) {
352
+ var listeners, events;
353
+
354
+ events = this._events;
355
+ if (!events)
356
+ return this;
357
+
358
+ // not listening for removeListener, no need to emit
359
+ if (!events.removeListener) {
360
+ if (arguments.length === 0) {
361
+ this._events = new EventHandlers();
362
+ this._eventsCount = 0;
363
+ } else if (events[type]) {
364
+ if (--this._eventsCount === 0)
365
+ this._events = new EventHandlers();
366
+ else
367
+ delete events[type];
368
+ }
369
+ return this;
370
+ }
371
+
372
+ // emit removeListener for all listeners on all events
373
+ if (arguments.length === 0) {
374
+ var keys = Object.keys(events);
375
+ for (var i = 0, key; i < keys.length; ++i) {
376
+ key = keys[i];
377
+ if (key === 'removeListener') continue;
378
+ this.removeAllListeners(key);
379
+ }
380
+ this.removeAllListeners('removeListener');
381
+ this._events = new EventHandlers();
382
+ this._eventsCount = 0;
383
+ return this;
384
+ }
385
+
386
+ listeners = events[type];
387
+
388
+ if (typeof listeners === 'function') {
389
+ this.removeListener(type, listeners);
390
+ } else if (listeners) {
391
+ // LIFO order
392
+ do {
393
+ this.removeListener(type, listeners[listeners.length - 1]);
394
+ } while (listeners[0]);
395
+ }
396
+
397
+ return this;
398
+ };
399
+
400
+ EventEmitter.prototype.listeners = function listeners(type) {
401
+ var evlistener;
402
+ var ret;
403
+ var events = this._events;
404
+
405
+ if (!events)
406
+ ret = [];
407
+ else {
408
+ evlistener = events[type];
409
+ if (!evlistener)
410
+ ret = [];
411
+ else if (typeof evlistener === 'function')
412
+ ret = [evlistener.listener || evlistener];
413
+ else
414
+ ret = unwrapListeners(evlistener);
415
+ }
416
+
417
+ return ret;
418
+ };
419
+
420
+ EventEmitter.listenerCount = function(emitter, type) {
421
+ if (typeof emitter.listenerCount === 'function') {
422
+ return emitter.listenerCount(type);
423
+ } else {
424
+ return listenerCount.call(emitter, type);
425
+ }
426
+ };
427
+
428
+ EventEmitter.prototype.listenerCount = listenerCount;
429
+ function listenerCount(type) {
430
+ var events = this._events;
431
+
432
+ if (events) {
433
+ var evlistener = events[type];
434
+
435
+ if (typeof evlistener === 'function') {
436
+ return 1;
437
+ } else if (evlistener) {
438
+ return evlistener.length;
439
+ }
440
+ }
441
+
442
+ return 0;
443
+ }
444
+
445
+ EventEmitter.prototype.eventNames = function eventNames() {
446
+ return this._eventsCount > 0 ? Reflect.ownKeys(this._events) : [];
447
+ };
448
+
449
+ // About 1.5x faster than the two-arg version of Array#splice().
450
+ function spliceOne(list, index) {
451
+ for (var i = index, k = i + 1, n = list.length; k < n; i += 1, k += 1)
452
+ list[i] = list[k];
453
+ list.pop();
454
+ }
455
+
456
+ function arrayClone(arr, i) {
457
+ var copy = new Array(i);
458
+ while (i--)
459
+ copy[i] = arr[i];
460
+ return copy;
461
+ }
462
+
463
+ function unwrapListeners(arr) {
464
+ var ret = new Array(arr.length);
465
+ for (var i = 0; i < ret.length; ++i) {
466
+ ret[i] = arr[i].listener || arr[i];
467
+ }
468
+ return ret;
469
+ }
470
+
6
471
  var utils = createCommonjsModule(function (module, exports) {
7
472
 
8
473
  Object.defineProperty(exports, "__esModule", {
@@ -2,7 +2,7 @@ import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallba
2
2
  import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-6ebcbfea.js';
3
3
  import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button as Button$1, ProgressBar } from 'react-bootstrap';
4
4
  import urlFor from './urlFor.js';
5
- import { l as lib_3 } from './index-f0fc23eb.js';
5
+ import { l as lib_3 } from './index-5cc7b406.js';
6
6
  import Router, { useRouter } from 'next/router';
7
7
  import { g as getYoutubeId } from './index-c7e2ac95.js';
8
8
  import PropTypes from 'prop-types';
@@ -13,9 +13,9 @@ import Segment from './Segment.js';
13
13
  import { f as main_18, b as main_42, m as main_43 } from './main-754d4992.js';
14
14
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
15
15
  import { _ as _extends, b as _extends$1 } from './extends-1559c147.js';
16
- import { u as urlForFile } from './urlForFile-f6485737.js';
16
+ import { u as urlForFile } from './urlForFile-dc111d7f.js';
17
17
  import { L as LazyLoad } from './index-755f2cc2.js';
18
- import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-64822ccc.js';
18
+ import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
19
19
  import { _ as _typeof$1 } from './typeof-657f25da.js';
20
20
  import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-57a70a56.js';
21
21
  import { _ as _JSON$stringify } from './stringify-2b084bee.js';
@@ -1629,11 +1629,13 @@ function shouldUpdateVideo(prevProps, props) {
1629
1629
 
1630
1630
  function filterResetOptions(opts) {
1631
1631
  return _objectSpread(_objectSpread({}, opts), {}, {
1632
- playerVars: _objectSpread({
1632
+ height: 0,
1633
+ width: 0,
1634
+ playerVars: _objectSpread(_objectSpread({}, opts.playerVars), {}, {
1633
1635
  autoplay: 0,
1634
1636
  start: 0,
1635
1637
  end: 0
1636
- }, opts.playerVars)
1638
+ })
1637
1639
  });
1638
1640
  }
1639
1641
  /**
@@ -1648,7 +1650,7 @@ function filterResetOptions(opts) {
1648
1650
 
1649
1651
 
1650
1652
  function shouldResetPlayer(prevProps, props) {
1651
- return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
1653
+ return prevProps.videoId !== props.videoId || !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
1652
1654
  }
1653
1655
  /**
1654
1656
  * Check whether a props change should result in an id or className update.
@@ -1659,7 +1661,7 @@ function shouldResetPlayer(prevProps, props) {
1659
1661
 
1660
1662
 
1661
1663
  function shouldUpdatePlayer(prevProps, props) {
1662
- return prevProps.id !== props.id || prevProps.className !== props.className;
1664
+ return prevProps.id !== props.id || prevProps.className !== props.className || prevProps.opts.width !== props.opts.width || prevProps.opts.height !== props.opts.height || prevProps.title !== props.title;
1663
1665
  }
1664
1666
 
1665
1667
  var YouTube = /*#__PURE__*/function (_React$Component) {
@@ -1746,6 +1748,9 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
1746
1748
  _this.internalPlayer.getIframe().then(function (iframe) {
1747
1749
  if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
1748
1750
  if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
1751
+ if (_this.props.opts && _this.props.opts.width) iframe.setAttribute('width', _this.props.opts.width);else iframe.removeAttribute('width');
1752
+ if (_this.props.opts && _this.props.opts.height) iframe.setAttribute('height', _this.props.opts.height);else iframe.removeAttribute('height');
1753
+ if (typeof _this.props.title === 'string') iframe.setAttribute('title', _this.props.title);else iframe.setAttribute('title', 'YouTube video player');
1749
1754
  });
1750
1755
  });
1751
1756
 
@@ -1844,7 +1849,8 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
1844
1849
  }, /*#__PURE__*/React__default.createElement("div", {
1845
1850
  id: this.props.id,
1846
1851
  className: this.props.className,
1847
- ref: this.refContainer
1852
+ ref: this.refContainer,
1853
+ loading: this.props.loading
1848
1854
  }));
1849
1855
  }
1850
1856
  }]);
@@ -1869,6 +1875,10 @@ YouTube.propTypes = {
1869
1875
  className: PropTypes.string,
1870
1876
  // custom class name for player container element
1871
1877
  containerClassName: PropTypes.string,
1878
+ // custom title for the iFrame, see https://www.w3.org/TR/WCAG20-TECHS/H64.html
1879
+ title: PropTypes.string,
1880
+ // custom loading for player element
1881
+ loading: PropTypes.oneOf(['lazy', 'eager', 'auto']),
1872
1882
  // https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
1873
1883
  opts: PropTypes.objectOf(PropTypes.any),
1874
1884
  // event subscriptions
@@ -1885,6 +1895,7 @@ YouTube.defaultProps = {
1885
1895
  videoId: null,
1886
1896
  id: null,
1887
1897
  className: null,
1898
+ loading: null,
1888
1899
  opts: {},
1889
1900
  containerClassName: '',
1890
1901
  onReady: function onReady() {},
@@ -1894,7 +1905,8 @@ YouTube.defaultProps = {
1894
1905
  onEnd: function onEnd() {},
1895
1906
  onStateChange: function onStateChange() {},
1896
1907
  onPlaybackRateChange: function onPlaybackRateChange() {},
1897
- onPlaybackQualityChange: function onPlaybackQualityChange() {}
1908
+ onPlaybackQualityChange: function onPlaybackQualityChange() {},
1909
+ title: null
1898
1910
  };
1899
1911
 
1900
1912
  var YouTubePlayer = function YouTubePlayer(_ref) {
@@ -9450,11 +9462,11 @@ var ArticleSeries = function ArticleSeries(_ref) {
9450
9462
  var LightBox = function LightBox(_ref) {
9451
9463
  var showLightbox = _ref.showLightbox,
9452
9464
  lightboxImgSrc = _ref.lightboxImgSrc,
9453
- closeLightbox = _ref.closeLightbox,
9454
- disableLightBox = _ref.disableLightBox;
9465
+ closeLightbox = _ref.closeLightbox;
9455
9466
 
9456
9467
  var lightboxImage = useRef(null);
9457
9468
  var lightboxContainer = useRef(null);
9469
+
9458
9470
  var handleClickOutside = useCallback(function (event) {
9459
9471
  if (lightboxImage.current && !lightboxImage.current.contains(event.target) && lightboxContainer.current && lightboxContainer.current.className.includes('open')) {
9460
9472
  closeLightbox();
@@ -9470,7 +9482,7 @@ var LightBox = function LightBox(_ref) {
9470
9482
 
9471
9483
  return React__default.createElement(
9472
9484
  'div',
9473
- { ref: lightboxContainer, className: 'lightbox-target ' + (!disableLightBox && showLightbox ? 'open' : 'close') },
9485
+ { ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
9474
9486
  React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
9475
9487
  React__default.createElement(
9476
9488
  'style',
@@ -9543,8 +9555,7 @@ var FigureComponent = function FigureComponent(props) {
9543
9555
  _node$class_name = node.class_name,
9544
9556
  class_name = _node$class_name === undefined ? 'd-block' : _node$class_name,
9545
9557
  _node$disableTextWrap = node.disableTextWrap,
9546
- disableTextWrap = _node$disableTextWrap === undefined ? false : _node$disableTextWrap,
9547
- disableLightBox = node.disableLightBox;
9558
+ disableTextWrap = _node$disableTextWrap === undefined ? false : _node$disableTextWrap;
9548
9559
  var _node$widthP = node.widthP,
9549
9560
  widthP = _node$widthP === undefined ? 'auto' : _node$widthP;
9550
9561
 
@@ -9700,7 +9711,6 @@ var FigureComponent = function FigureComponent(props) {
9700
9711
  React__default.createElement(LightBox, {
9701
9712
  showLightbox: showLightbox,
9702
9713
  lightboxImgSrc: lightboxImgSrc,
9703
- disableLightBox: disableLightBox,
9704
9714
  closeLightbox: function closeLightbox() {
9705
9715
  setLightboxImgSrc('');
9706
9716
  setShowLightbox(false);
@@ -9723,7 +9733,6 @@ var FigureComponent = function FigureComponent(props) {
9723
9733
  React__default.createElement(LightBox, {
9724
9734
  showLightbox: showLightbox,
9725
9735
  lightboxImgSrc: lightboxImgSrc,
9726
- disableLightBox: disableLightBox,
9727
9736
  closeLightbox: function closeLightbox() {
9728
9737
  setLightboxImgSrc('');
9729
9738
  setShowLightbox(false);
@@ -33,9 +33,18 @@ function _objectWithoutPropertiesLoose(source, excluded) {
33
33
  return target;
34
34
  }
35
35
 
36
+ function _setPrototypeOf(o, p) {
37
+ _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
38
+ o.__proto__ = p;
39
+ return o;
40
+ };
41
+
42
+ return _setPrototypeOf(o, p);
43
+ }
44
+
36
45
  var classnames = createCommonjsModule(function (module) {
37
46
  /*!
38
- Copyright (c) 2017 Jed Watson.
47
+ Copyright (c) 2018 Jed Watson.
39
48
  Licensed under the MIT License (MIT), see
40
49
  http://jedwatson.github.io/classnames
41
50
  */
@@ -45,7 +54,7 @@ var classnames = createCommonjsModule(function (module) {
45
54
 
46
55
  var hasOwn = {}.hasOwnProperty;
47
56
 
48
- function classNames () {
57
+ function classNames() {
49
58
  var classes = [];
50
59
 
51
60
  for (var i = 0; i < arguments.length; i++) {
@@ -56,16 +65,22 @@ var classnames = createCommonjsModule(function (module) {
56
65
 
57
66
  if (argType === 'string' || argType === 'number') {
58
67
  classes.push(arg);
59
- } else if (Array.isArray(arg) && arg.length) {
60
- var inner = classNames.apply(null, arg);
61
- if (inner) {
62
- classes.push(inner);
68
+ } else if (Array.isArray(arg)) {
69
+ if (arg.length) {
70
+ var inner = classNames.apply(null, arg);
71
+ if (inner) {
72
+ classes.push(inner);
73
+ }
63
74
  }
64
75
  } else if (argType === 'object') {
65
- for (var key in arg) {
66
- if (hasOwn.call(arg, key) && arg[key]) {
67
- classes.push(key);
76
+ if (arg.toString === Object.prototype.toString) {
77
+ for (var key in arg) {
78
+ if (hasOwn.call(arg, key) && arg[key]) {
79
+ classes.push(key);
80
+ }
68
81
  }
82
+ } else {
83
+ classes.push(arg.toString());
69
84
  }
70
85
  }
71
86
  }
@@ -82,4 +97,4 @@ var classnames = createCommonjsModule(function (module) {
82
97
  }());
83
98
  });
84
99
 
85
- export { _objectWithoutPropertiesLoose as _, _extends as a, classnames as c };
100
+ export { _objectWithoutPropertiesLoose as _, _setPrototypeOf as a, _extends as b, classnames as c };