@mjhls/mjh-framework 1.0.977 → 1.0.979-ris-update-v1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/README.md +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 +1 -2
  14. package/dist/cjs/AlgoliaSearch.js +17 -14164
  15. package/dist/cjs/ArticleProgramLandingPage.js +2 -3
  16. package/dist/cjs/ArticleSeriesLandingPage.js +3 -4
  17. package/dist/cjs/ArticleSeriesListing.js +1 -2
  18. package/dist/cjs/AuthWrapper.js +29 -3
  19. package/dist/cjs/CMEDeck.js +1 -2
  20. package/dist/cjs/Column3.js +1 -2
  21. package/dist/cjs/ConferenceArticleCard.js +15 -15
  22. package/dist/cjs/ContentCardPaginated.js +3 -5
  23. package/dist/cjs/DeckContent.js +10 -11
  24. package/dist/cjs/DeckQueue.js +1 -2
  25. package/dist/cjs/DeckQueuePaginated.js +2 -4
  26. package/dist/cjs/{Dfp-9be904d5.js → Dfp-94f8ccdf.js} +1 -2
  27. package/dist/cjs/EventsDeck.js +17 -17
  28. package/dist/cjs/ExternalResources.js +2 -3
  29. package/dist/cjs/GridContent.js +3 -4
  30. package/dist/cjs/GridContentPaginated.js +4 -6
  31. package/dist/cjs/HamMagazine.js +9 -9
  32. package/dist/cjs/HealthCareProfessionalModal.js +1 -1
  33. package/dist/cjs/HorizontalArticleListing.js +2 -3
  34. package/dist/cjs/IssueLanding.js +33 -34
  35. package/dist/cjs/KMTracker.js +15 -15
  36. package/dist/cjs/LeftNav.js +1 -2
  37. package/dist/cjs/MasterDeck.js +11 -12
  38. package/dist/cjs/MasterDeckPaginated.js +12 -14
  39. package/dist/cjs/{MediaSeriesCard-5bf9813e.js → MediaSeriesCard-1a62916a.js} +384 -288
  40. package/dist/cjs/MediaSeriesLanding.js +10 -12
  41. package/dist/cjs/MediaSeriesLandingPaginated.js +11 -14
  42. package/dist/cjs/NavMagazine.js +10 -10
  43. package/dist/cjs/NavNative.js +9 -9
  44. package/dist/cjs/Pagination-2a3d0103.js +97 -0
  45. package/dist/cjs/PartnerDetailListing.js +4 -5
  46. package/dist/cjs/PartnerDetailListingPaginated.js +5 -7
  47. package/dist/cjs/PubSection.js +3 -4
  48. package/dist/cjs/PublicationLanding.js +26 -26
  49. package/dist/cjs/QueueDeckExpanded.js +3 -4
  50. package/dist/cjs/QueueDeckExpandedPaginated.js +4 -6
  51. package/dist/cjs/RelatedContent.js +28 -28
  52. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  53. package/dist/cjs/SeriesListingDeck.js +2 -3
  54. package/dist/cjs/{SeriesSlider-594b19eb.js → SeriesSlider-74546d19.js} +4 -4
  55. package/dist/cjs/SideFooter.js +2 -2
  56. package/dist/cjs/TaxonomyDescription.js +2 -3
  57. package/dist/cjs/TemplateNormal.js +1 -2
  58. package/dist/cjs/VideoProgramLandingPage.js +2 -3
  59. package/dist/cjs/VideoSeriesCard.js +1 -1
  60. package/dist/cjs/VideoSeriesLandingPage.js +3 -4
  61. package/dist/cjs/VideoSeriesListing.js +1 -2
  62. package/dist/cjs/View.js +168 -74
  63. package/dist/cjs/YoutubeGroup.js +4 -4
  64. package/dist/cjs/getQuery.js +3 -3
  65. package/dist/cjs/getSerializers.js +6 -7
  66. package/dist/cjs/{getTargeting-3c5754ac.js → getTargeting-dab97fe1.js} +9 -9
  67. package/dist/cjs/getTargeting.js +1 -1
  68. package/dist/cjs/{index-fc2f1ca2.js → index-0e4427c8.js} +467 -2
  69. package/dist/cjs/{index-eb1c583d.js → index-bb00ade7.js} +73 -30
  70. package/dist/cjs/index.js +7 -10
  71. package/dist/esm/AD.js +1 -1
  72. package/dist/esm/AD300x250.js +1 -2
  73. package/dist/esm/AD300x250x600.js +1 -2
  74. package/dist/esm/AD728x90.js +1 -2
  75. package/dist/esm/ADFloatingFooter.js +1 -2
  76. package/dist/esm/ADGutter.js +1 -2
  77. package/dist/esm/ADSkyscraper.js +1 -2
  78. package/dist/esm/ADSponsoredResources.js +1 -2
  79. package/dist/esm/ADWebcast.js +1 -2
  80. package/dist/esm/ADWelcome.js +1 -2
  81. package/dist/esm/AdSlot.js +1 -2
  82. package/dist/esm/AdSlotsProvider.js +1 -2
  83. package/dist/esm/AlgoliaSearch.js +11 -14158
  84. package/dist/esm/ArticleProgramLandingPage.js +2 -3
  85. package/dist/esm/ArticleSeriesLandingPage.js +3 -4
  86. package/dist/esm/ArticleSeriesListing.js +1 -2
  87. package/dist/esm/AuthWrapper.js +28 -2
  88. package/dist/esm/CMEDeck.js +1 -2
  89. package/dist/esm/Column3.js +1 -2
  90. package/dist/esm/ConferenceArticleCard.js +15 -15
  91. package/dist/esm/ContentCardPaginated.js +3 -5
  92. package/dist/esm/DeckContent.js +10 -11
  93. package/dist/esm/DeckQueue.js +1 -2
  94. package/dist/esm/DeckQueuePaginated.js +2 -4
  95. package/dist/esm/{Dfp-102f0beb.js → Dfp-cf85d203.js} +1 -2
  96. package/dist/esm/EventsDeck.js +17 -17
  97. package/dist/esm/ExternalResources.js +2 -3
  98. package/dist/esm/GridContent.js +3 -4
  99. package/dist/esm/GridContentPaginated.js +4 -6
  100. package/dist/esm/HamMagazine.js +9 -9
  101. package/dist/esm/HealthCareProfessionalModal.js +1 -1
  102. package/dist/esm/HorizontalArticleListing.js +2 -3
  103. package/dist/esm/IssueLanding.js +33 -34
  104. package/dist/esm/KMTracker.js +15 -15
  105. package/dist/esm/LeftNav.js +1 -2
  106. package/dist/esm/MasterDeck.js +11 -12
  107. package/dist/esm/MasterDeckPaginated.js +12 -14
  108. package/dist/esm/{MediaSeriesCard-305a9cb3.js → MediaSeriesCard-146e08c8.js} +99 -3
  109. package/dist/esm/MediaSeriesLanding.js +10 -12
  110. package/dist/esm/MediaSeriesLandingPaginated.js +11 -14
  111. package/dist/esm/NavMagazine.js +10 -10
  112. package/dist/esm/NavNative.js +9 -9
  113. package/dist/esm/Pagination-dc30727b.js +90 -0
  114. package/dist/esm/PartnerDetailListing.js +4 -5
  115. package/dist/esm/PartnerDetailListingPaginated.js +5 -7
  116. package/dist/esm/PubSection.js +3 -4
  117. package/dist/esm/PublicationLanding.js +26 -26
  118. package/dist/esm/QueueDeckExpanded.js +3 -4
  119. package/dist/esm/QueueDeckExpandedPaginated.js +4 -6
  120. package/dist/esm/RelatedContent.js +28 -28
  121. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  122. package/dist/esm/SeriesListingDeck.js +2 -3
  123. package/dist/esm/{SeriesSlider-f771e20d.js → SeriesSlider-e495571f.js} +4 -4
  124. package/dist/esm/SideFooter.js +2 -2
  125. package/dist/esm/TaxonomyDescription.js +2 -3
  126. package/dist/esm/TemplateNormal.js +1 -2
  127. package/dist/esm/VideoProgramLandingPage.js +2 -3
  128. package/dist/esm/VideoSeriesCard.js +1 -1
  129. package/dist/esm/VideoSeriesLandingPage.js +3 -4
  130. package/dist/esm/VideoSeriesListing.js +1 -2
  131. package/dist/esm/View.js +168 -73
  132. package/dist/esm/YoutubeGroup.js +4 -4
  133. package/dist/esm/getQuery.js +3 -3
  134. package/dist/esm/getSerializers.js +6 -7
  135. package/dist/esm/{getTargeting-42f9b439.js → getTargeting-04d979c9.js} +9 -9
  136. package/dist/esm/getTargeting.js +1 -1
  137. package/dist/esm/{index-f0fc23eb.js → index-5cc7b406.js} +466 -1
  138. package/dist/esm/{index-264bbd3c.js → index-e89d33c8.js} +73 -30
  139. package/dist/esm/index.js +7 -10
  140. package/package.json +115 -115
  141. package/dist/cjs/Pagination-1e0d5f1d.js +0 -90
  142. package/dist/cjs/events-1b438fe7.js +0 -469
  143. package/dist/cjs/index-50be6759.js +0 -105
  144. package/dist/cjs/typeof-1358762e.js +0 -33
  145. package/dist/esm/Pagination-cd21f8c2.js +0 -82
  146. package/dist/esm/events-6c3a7a63.js +0 -467
  147. package/dist/esm/index-98ca9cec.js +0 -100
  148. package/dist/esm/typeof-2f07d0e8.js +0 -30
  149. /package/dist/cjs/{ADInfeed-81006615.js → ADInfeed-cf54cb8a.js} +0 -0
  150. /package/dist/cjs/{ADlgInfeed-0db07099.js → ADlgInfeed-d06624d8.js} +0 -0
  151. /package/dist/esm/{ADInfeed-6d1fc6bf.js → ADInfeed-0852ff35.js} +0 -0
  152. /package/dist/esm/{ADlgInfeed-dc36c928.js → ADlgInfeed-5fb3b724.js} +0 -0
@@ -1,18 +1,15 @@
1
- import './extends-6d8e3924.js';
2
1
  import 'react';
3
- export { g as default } from './index-264bbd3c.js';
2
+ export { g as default } from './index-e89d33c8.js';
4
3
  import './BlockContent-1e73bd2c.js';
5
4
  import './entities-6d9154b4.js';
6
- import './_commonjsHelpers-0c4b6f40.js';
7
- import './core.get-iterator-method-ea258bb1.js';
8
- import './_object-pie-133f504a.js';
9
5
  import './slicedToArray-6ebcbfea.js';
6
+ import './_commonjsHelpers-0c4b6f40.js';
10
7
  import './web.dom.iterable-ab4dea5c.js';
8
+ import './core.get-iterator-method-ea258bb1.js';
11
9
  import 'react-bootstrap';
12
10
  import './urlFor.js';
13
11
  import './index-3f5c03b2.js';
14
- import './index-f0fc23eb.js';
15
- import './events-6c3a7a63.js';
12
+ import './index-5cc7b406.js';
16
13
  import 'prop-types';
17
14
  import 'next/router';
18
15
  import './index-c7e2ac95.js';
@@ -24,6 +21,8 @@ import './_library-528f1934.js';
24
21
  import './_iter-detect-98db3b07.js';
25
22
  import './Segment.js';
26
23
  import './main-1894c974.js';
24
+ import './extends-6d8e3924.js';
25
+ import './_object-pie-133f504a.js';
27
26
  import './urlForFile-b69adffc.js';
28
27
  import './index-755f2cc2.js';
29
28
  import 'react-dom';
@@ -2,18 +2,18 @@ import { _ as _extends } from './extends-6d8e3924.js';
2
2
  import { _ as _toConsumableArray } from './toConsumableArray-f7074d7c.js';
3
3
 
4
4
  var getContentPlacementUrl = function getContentPlacementUrl(cp) {
5
- var cp_url = '';
6
- if (cp.ancestor && typeof cp.ancestor == 'string') {
7
- cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
8
- }
5
+ var cp_url = '';
6
+ if (cp.ancestor && typeof cp.ancestor == 'string') {
7
+ cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
8
+ }
9
9
 
10
- if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
11
- cp_url += (cp_url === '' ? '' : '/') + cp.parent;
12
- }
10
+ if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
11
+ cp_url += (cp_url === '' ? '' : '/') + cp.parent;
12
+ }
13
13
 
14
- cp_url += (cp_url === '' ? '' : '/') + (cp.adTargetingURL ? adTargetingURL : cp.path);
14
+ cp_url += (cp_url === '' ? '' : '/') + (cp.adTargetingURL ? adTargetingURL : cp.path);
15
15
 
16
- return cp_url;
16
+ return cp_url;
17
17
  };
18
18
 
19
19
  var getTargeting = function getTargeting(props) {
@@ -1,6 +1,6 @@
1
1
  import './extends-6d8e3924.js';
2
2
  import './toConsumableArray-f7074d7c.js';
3
- export { g as default } from './getTargeting-42f9b439.js';
3
+ export { g as default } from './getTargeting-04d979c9.js';
4
4
  import './_commonjsHelpers-0c4b6f40.js';
5
5
  import './core.get-iterator-method-ea258bb1.js';
6
6
  import './_object-pie-133f504a.js';
@@ -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", {
@@ -1,9 +1,8 @@
1
- import { _ as _extends, b as _extends$1 } from './extends-6d8e3924.js';
2
1
  import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
3
2
  import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-6ebcbfea.js';
4
3
  import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button as Button$1, ProgressBar } from 'react-bootstrap';
5
4
  import urlFor from './urlFor.js';
6
- import { l as lib_3 } from './index-f0fc23eb.js';
5
+ import { l as lib_3 } from './index-5cc7b406.js';
7
6
  import Router, { useRouter } from 'next/router';
8
7
  import { g as getYoutubeId } from './index-c7e2ac95.js';
9
8
  import PropTypes from 'prop-types';
@@ -13,6 +12,7 @@ import './Beam.js';
13
12
  import Segment from './Segment.js';
14
13
  import { e as main_18, b as main_42, m as main_43 } from './main-1894c974.js';
15
14
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
15
+ import { _ as _extends, b as _extends$1 } from './extends-6d8e3924.js';
16
16
  import { u as urlForFile } from './urlForFile-b69adffc.js';
17
17
  import { L as LazyLoad } from './index-755f2cc2.js';
18
18
  import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
@@ -10371,6 +10371,15 @@ var DigiohSmartTag = function DigiohSmartTag(props) {
10371
10371
  return React__default.createElement('div', { id: FormID });
10372
10372
  };
10373
10373
 
10374
+ var siteArray = ['aestheticsauthority.com', 'ajmc.com', 'appliedclinicaltrialsonline.com', 'biopharminternational.com', 'cancernetwork.com', 'cannabissciencetech.com', 'centerforbiosimilars.com', 'chromatographyonline.com', 'contagionlive.com', 'contemporaryclinic.com', 'contemporaryobgyn.net', 'contemporarypediatrics.com', 'curetoday.com', 'dentalproductsreport.com', 'dermatologytimes.com', 'diagnosticimaging.com', 'drugtopics.com', 'dvm360.com', 'endocrinologynetwork.com', 'europe.ophthalmologytimes.com', 'formularywatch.com', 'hcplive.com', 'infectioncontroltoday.com', 'managedhealthcareexecutive.com', 'medicaleconomics.com', 'modernretina.com', 'neurologylive.com', 'nutritionaloutlook.com', 'onclive.com', 'oncnursingnews.com', 'ophthalmologytimes.com', 'optometrytimes.com', 'patientcareonline.com', 'pharmaceuticalcommerce.com', 'pharmacytimes.com', 'pharmexec.com', 'pharmtech.com', 'physicianspractice.com', 'practicalcardiology.com', 'psychiatrictimes.com', 'rheumatologynetwork.com', 'spectroscopyonline.com', 'targetedonc.com', 'turbomachinerymag.com', 'urologytimes.com'];
10375
+
10376
+ var checkUrlIsExternal = function checkUrlIsExternal(url) {
10377
+ if (/https?:\/\/((?:[\w\d-]+\.)+[\w\d]{2,})|http?:\/\/((?:[\w\d-]+\.)+[\w\d]{2,})|(^mailto)/i.test(url)) {
10378
+ return true;
10379
+ }
10380
+ return false;
10381
+ };
10382
+
10374
10383
  var ScrollToElement = function ScrollToElement(elementId) {
10375
10384
  var element = document.getElementById(elementId);
10376
10385
  if (element) {
@@ -10385,11 +10394,66 @@ var ScrollToElement = function ScrollToElement(elementId) {
10385
10394
  }
10386
10395
  };
10387
10396
 
10388
- var checkUrlIsExternal = function checkUrlIsExternal(url) {
10389
- if (/https?:\/\/((?:[\w\d-]+\.)+[\w\d]{2,})|http?:\/\/((?:[\w\d-]+\.)+[\w\d]{2,})|(^mailto)/i.test(url)) {
10390
- return true;
10397
+ var ExternalLink = function ExternalLink(props) {
10398
+ var children = props.children,
10399
+ _props$mark = props.mark,
10400
+ href = _props$mark.href,
10401
+ blank = _props$mark.blank,
10402
+ color = _props$mark.color,
10403
+ nofollow = _props$mark.nofollow;
10404
+
10405
+ var _useState = useState(null),
10406
+ _useState2 = _slicedToArray(_useState, 2),
10407
+ ogUrl = _useState2[0],
10408
+ setOgUrl = _useState2[1];
10409
+
10410
+ useEffect(function () {
10411
+ if (window.location.href) {
10412
+ !ogUrl && setOgUrl(String(window.location.host).replace('www.', ''));
10413
+ }
10414
+ }, []);
10415
+ var isExernalUrl = checkUrlIsExternal(href);
10416
+ var checkBaseUrl = function checkBaseUrl(url) {
10417
+ if (url.includes('http://') || url.includes('https://')) {
10418
+ //to remove http:// or https:// to check URLs
10419
+ url = url.replace('www.', '').split('/').slice(2, 3).join('/');
10420
+ }
10421
+ return ogUrl && ogUrl.includes(url.replace('www.', '').split('/').slice(0, 1).join('/')) || siteArray.includes(url.replace('www.', '').split('/').slice(0, 1).join('/')) ? true : false;
10422
+ };
10423
+ var checkNoFollow = function checkNoFollow(url, nofollow) {
10424
+ if (url && !isExernalUrl || url && checkBaseUrl(url)) {
10425
+ //if not external url, nofollow is disabled
10426
+ return '';
10427
+ } else if (url && nofollow) {
10428
+ //if not external url and nofollow is enabled, nofollow
10429
+ return 'nofollow';
10430
+ } else {
10431
+ //if not external url and nofollow is disabled, no nofollow
10432
+ return '';
10433
+ }
10434
+ };
10435
+
10436
+ if (href && href.charAt(0) === '#') {
10437
+ var elementId = href.slice(1);
10438
+ if (articleId) elementId = elementId + '-' + articleId;
10439
+ return React__default.createElement(
10440
+ 'a',
10441
+ { onClick: function onClick() {
10442
+ return ScrollToElement(elementId);
10443
+ } },
10444
+ children
10445
+ );
10391
10446
  }
10392
- return false;
10447
+ var linkRel = checkNoFollow(href, nofollow) + ' ' + (blank && !checkBaseUrl(href) ? 'noreferrer noopener' : '');
10448
+ return href ? linkRel.trim().length > 0 ? React__default.createElement(
10449
+ 'a',
10450
+ _extends({ rel: linkRel.trim(), href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
10451
+ children
10452
+ ) : React__default.createElement(
10453
+ 'a',
10454
+ _extends({ href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
10455
+ children
10456
+ ) : children;
10393
10457
  };
10394
10458
 
10395
10459
  var convertEntities = function convertEntities(props) {
@@ -10432,8 +10496,8 @@ var getSerializers = function getSerializers() {
10432
10496
  authorImgHeight = props[15],
10433
10497
  audioAutoplay = props[16];
10434
10498
 
10435
-
10436
10499
  var nextVideo = article && article.nextVideo ? article.nextVideo : null;
10500
+
10437
10501
  return {
10438
10502
  types: {
10439
10503
  undefined: function undefined$1() {
@@ -10617,30 +10681,9 @@ var getSerializers = function getSerializers() {
10617
10681
  },
10618
10682
  link: function link(props) {
10619
10683
  var children = props.children,
10620
- _props$mark = props.mark,
10621
- href = _props$mark.href,
10622
- blank = _props$mark.blank,
10623
- color = _props$mark.color;
10624
-
10625
-
10626
- if (href && href.charAt(0) === '#') {
10627
- var elementId = href.slice(1);
10628
- if (articleId) elementId = elementId + '-' + articleId;
10629
- return React__default.createElement(
10630
- 'a',
10631
- { onClick: function onClick() {
10632
- return ScrollToElement(elementId);
10633
- } },
10634
- children
10635
- );
10636
- }
10684
+ mark = props.mark;
10637
10685
 
10638
- var isExernalUrl = checkUrlIsExternal(href);
10639
- return href ? React__default.createElement(
10640
- 'a',
10641
- _extends({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
10642
- children
10643
- ) : children;
10686
+ return React__default.createElement(ExternalLink, { children: children, mark: mark });
10644
10687
  },
10645
10688
  alignleft: function alignleft(_ref23) {
10646
10689
  var children = _ref23.children;