@mjhls/mjh-framework 1.0.623-subNav-viewMore-hamNav → 1.0.624

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 (145) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +3 -3
  4. package/dist/cjs/AD300x250x600.js +3 -3
  5. package/dist/cjs/AD728x90.js +4 -4
  6. package/dist/cjs/ADFloatingFooter.js +2 -2
  7. package/dist/cjs/ADGutter.js +2 -2
  8. package/dist/cjs/ADSkyscraper.js +2 -2
  9. package/dist/cjs/ADSponsoredResources.js +2 -2
  10. package/dist/cjs/ADWebcast.js +2 -2
  11. package/dist/cjs/ADWelcome.js +2 -2
  12. package/dist/cjs/AdSlot.js +2 -2
  13. package/dist/cjs/AdSlotsProvider.js +1 -1
  14. package/dist/cjs/ArticleQueue.js +12 -12
  15. package/dist/cjs/ArticleSeriesListing.js +5 -5
  16. package/dist/cjs/Auth.js +506 -255
  17. package/dist/cjs/{BlockContent-c2168db0.js → BlockContent-f942392e.js} +1 -1
  18. package/dist/cjs/CMEDeck.js +5 -5
  19. package/dist/cjs/Column3.js +4 -4
  20. package/dist/cjs/ConferenceArticleCard.js +2 -2
  21. package/dist/cjs/DeckContent.js +8 -8
  22. package/dist/cjs/DeckQueue.js +7 -7
  23. package/dist/cjs/{Dfp-fcdeabc4.js → Dfp-fbe32b96.js} +1 -1
  24. package/dist/cjs/EventsDeck.js +5 -5
  25. package/dist/cjs/ExternalResources.js +8 -8
  26. package/dist/cjs/Feature.js +3 -3
  27. package/dist/cjs/ForbesHero.js +2 -2
  28. package/dist/cjs/GridContent.js +12 -12
  29. package/dist/cjs/GridHero.js +2 -2
  30. package/dist/cjs/GroupDeck.js +1 -1
  31. package/dist/cjs/HamMagazine.js +4 -19
  32. package/dist/cjs/Hero.js +1 -1
  33. package/dist/cjs/HorizontalHero.js +2 -2
  34. package/dist/cjs/IssueContentDeck.js +2 -2
  35. package/dist/cjs/IssueDeck.js +2 -2
  36. package/dist/cjs/IssueLanding.js +8 -8
  37. package/dist/cjs/LeftNav.js +2 -2
  38. package/dist/cjs/MasterDeck.js +10 -10
  39. package/dist/cjs/NavMagazine.js +4 -4
  40. package/dist/cjs/NavNative.js +2 -2
  41. package/dist/cjs/OncliveHero.js +2 -2
  42. package/dist/cjs/OncliveLargeHero.js +2 -2
  43. package/dist/cjs/PartnerDetailListing.js +15 -1211
  44. package/dist/cjs/PublicationDeck.js +2 -2
  45. package/dist/cjs/QueueDeckExpanded.js +10 -10
  46. package/dist/cjs/RecentNews.js +2 -2
  47. package/dist/cjs/RelatedContent.js +2 -2
  48. package/dist/cjs/{SocialSearchComponent-57164633.js → SocialSearchComponent-5cbde5e0.js} +3 -3
  49. package/dist/cjs/TaxonomyCard.js +2 -2
  50. package/dist/cjs/TemplateNormal.js +3 -3
  51. package/dist/cjs/ThumbnailCard.js +1 -1
  52. package/dist/cjs/Ustream.js +2 -2
  53. package/dist/cjs/VerticalHero.js +2 -2
  54. package/dist/cjs/VideoSeriesListing.js +5 -5
  55. package/dist/cjs/View.js +16 -16
  56. package/dist/cjs/YahooHero.js +2 -2
  57. package/dist/cjs/YoutubeGroup.js +1 -1
  58. package/dist/cjs/getRelatedArticle.js +5 -354
  59. package/dist/cjs/getSerializers.js +7 -7
  60. package/dist/cjs/{index-3294d3bc.js → index-5be2866f.js} +1 -1
  61. package/dist/cjs/{index-9ea8efe8.js → index-77531536.js} +10 -10
  62. package/dist/cjs/{index-39beccb3.js → index-b5eb3ff8.js} +18 -18
  63. package/dist/cjs/{index-fa3cec70.js → index-f7ee1612.js} +4 -6
  64. package/dist/cjs/{index.es-9110add6.js → index.es-ab3f2690.js} +3 -1
  65. package/dist/cjs/index.js +17 -16
  66. package/dist/cjs/{inherits-227da8e1.js → inherits-dca612fa.js} +4 -4
  67. package/dist/cjs/{lodash-7fd85bcf.js → lodash-fc2922d0.js} +22 -71
  68. package/dist/cjs/{main-88348b15.js → main-bc4db521.js} +66 -35
  69. package/dist/cjs/{moment-575fe24c.js → moment-66a6a284.js} +1 -1
  70. package/dist/cjs/urlFor.js +1 -1
  71. package/dist/esm/AD.js +1 -1
  72. package/dist/esm/AD300x250.js +3 -3
  73. package/dist/esm/AD300x250x600.js +3 -3
  74. package/dist/esm/AD728x90.js +4 -4
  75. package/dist/esm/ADFloatingFooter.js +2 -2
  76. package/dist/esm/ADGutter.js +2 -2
  77. package/dist/esm/ADSkyscraper.js +2 -2
  78. package/dist/esm/ADSponsoredResources.js +2 -2
  79. package/dist/esm/ADWebcast.js +2 -2
  80. package/dist/esm/ADWelcome.js +2 -2
  81. package/dist/esm/AdSlot.js +2 -2
  82. package/dist/esm/AdSlotsProvider.js +1 -1
  83. package/dist/esm/ArticleQueue.js +11 -11
  84. package/dist/esm/ArticleSeriesListing.js +4 -4
  85. package/dist/esm/Auth.js +501 -250
  86. package/dist/esm/{BlockContent-c409aca5.js → BlockContent-a614acdf.js} +1 -1
  87. package/dist/esm/CMEDeck.js +5 -5
  88. package/dist/esm/Column3.js +4 -4
  89. package/dist/esm/ConferenceArticleCard.js +2 -2
  90. package/dist/esm/DeckContent.js +7 -7
  91. package/dist/esm/DeckQueue.js +6 -6
  92. package/dist/esm/{Dfp-380bef62.js → Dfp-40c70a33.js} +1 -1
  93. package/dist/esm/EventsDeck.js +5 -5
  94. package/dist/esm/ExternalResources.js +7 -7
  95. package/dist/esm/Feature.js +3 -3
  96. package/dist/esm/ForbesHero.js +2 -2
  97. package/dist/esm/GridContent.js +11 -11
  98. package/dist/esm/GridHero.js +2 -2
  99. package/dist/esm/GroupDeck.js +1 -1
  100. package/dist/esm/HamMagazine.js +4 -19
  101. package/dist/esm/Hero.js +1 -1
  102. package/dist/esm/HorizontalHero.js +2 -2
  103. package/dist/esm/IssueContentDeck.js +2 -2
  104. package/dist/esm/IssueDeck.js +2 -2
  105. package/dist/esm/IssueLanding.js +8 -8
  106. package/dist/esm/LeftNav.js +2 -2
  107. package/dist/esm/MasterDeck.js +9 -9
  108. package/dist/esm/NavMagazine.js +4 -4
  109. package/dist/esm/NavNative.js +2 -2
  110. package/dist/esm/OncliveHero.js +2 -2
  111. package/dist/esm/OncliveLargeHero.js +2 -2
  112. package/dist/esm/PartnerDetailListing.js +14 -1210
  113. package/dist/esm/PublicationDeck.js +2 -2
  114. package/dist/esm/QueueDeckExpanded.js +10 -10
  115. package/dist/esm/RecentNews.js +2 -2
  116. package/dist/esm/RelatedContent.js +2 -2
  117. package/dist/esm/{SocialSearchComponent-e9715bbf.js → SocialSearchComponent-00385695.js} +3 -3
  118. package/dist/esm/TaxonomyCard.js +2 -2
  119. package/dist/esm/TemplateNormal.js +3 -3
  120. package/dist/esm/ThumbnailCard.js +1 -1
  121. package/dist/esm/Ustream.js +2 -2
  122. package/dist/esm/VerticalHero.js +2 -2
  123. package/dist/esm/VideoSeriesListing.js +4 -4
  124. package/dist/esm/View.js +15 -15
  125. package/dist/esm/YahooHero.js +2 -2
  126. package/dist/esm/YoutubeGroup.js +1 -1
  127. package/dist/esm/getRelatedArticle.js +5 -354
  128. package/dist/esm/getSerializers.js +6 -6
  129. package/dist/esm/{index-3849e3fe.js → index-51a80699.js} +18 -18
  130. package/dist/esm/{index-efc023e1.js → index-8a3465af.js} +9 -9
  131. package/dist/esm/{index-3f4dd6f2.js → index-93ec3c59.js} +4 -6
  132. package/dist/esm/{index-ef6d5dcf.js → index-d2f90501.js} +1 -1
  133. package/dist/esm/{index.es-29c1cef5.js → index.es-938a3a58.js} +3 -1
  134. package/dist/esm/index.js +15 -14
  135. package/dist/esm/{lodash-ec8c6b48.js → lodash-17fdfebb.js} +22 -71
  136. package/dist/esm/{main-d7ee6151.js → main-7255814e.js} +65 -34
  137. package/dist/esm/{moment-e2f9b20c.js → moment-12415288.js} +1 -1
  138. package/dist/esm/urlFor.js +1 -1
  139. package/package.json +3 -3
  140. package/dist/cjs/index-bd6c9f56.js +0 -211
  141. package/dist/esm/index-db3bb315.js +0 -207
  142. /package/dist/cjs/{ADInfeed-bee48ae4.js → ADInfeed-ce11d87d.js} +0 -0
  143. /package/dist/cjs/{ADlgInfeed-69156702.js → ADlgInfeed-7fc40444.js} +0 -0
  144. /package/dist/esm/{ADInfeed-6cf59c26.js → ADInfeed-5fb6c05e.js} +0 -0
  145. /package/dist/esm/{ADlgInfeed-1529b85b.js → ADlgInfeed-5eab5705.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { c as createCommonjsModule, u as unwrapExports, a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
1
+ import './_commonjsHelpers-0c4b6f40.js';
2
2
  import './_to-object-b01e8612.js';
3
3
  import './core.get-iterator-method-66cf57ee.js';
4
4
  import './_library-528f1934.js';
@@ -6,358 +6,9 @@ import './_iter-detect-70af34ea.js';
6
6
  import './web.dom.iterable-5c830d3d.js';
7
7
  import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-d25aac66.js';
8
8
  import './_set-species-75f77d40.js';
9
- import { c as cookie } from './index-db3bb315.js';
9
+ import { parseCookies, setCookie } from 'nookies';
10
10
  import getQuery from './getQuery.js';
11
11
 
12
- var defaultParseOptions = {
13
- decodeValues: true,
14
- map: false,
15
- silent: false,
16
- };
17
-
18
- function isNonEmptyString(str) {
19
- return typeof str === "string" && !!str.trim();
20
- }
21
-
22
- function parseString(setCookieValue, options) {
23
- var parts = setCookieValue.split(";").filter(isNonEmptyString);
24
- var nameValue = parts.shift().split("=");
25
- var name = nameValue.shift();
26
- var value = nameValue.join("="); // everything after the first =, joined by a "=" if there was more than one part
27
-
28
- options = options
29
- ? Object.assign({}, defaultParseOptions, options)
30
- : defaultParseOptions;
31
-
32
- var cookie = {
33
- name: name, // grab everything before the first =
34
- value: options.decodeValues ? decodeURIComponent(value) : value, // decode cookie value
35
- };
36
-
37
- parts.forEach(function (part) {
38
- var sides = part.split("=");
39
- var key = sides.shift().trimLeft().toLowerCase();
40
- var value = sides.join("=");
41
- if (key === "expires") {
42
- cookie.expires = new Date(value);
43
- } else if (key === "max-age") {
44
- cookie.maxAge = parseInt(value, 10);
45
- } else if (key === "secure") {
46
- cookie.secure = true;
47
- } else if (key === "httponly") {
48
- cookie.httpOnly = true;
49
- } else if (key === "samesite") {
50
- cookie.sameSite = value;
51
- } else {
52
- cookie[key] = value;
53
- }
54
- });
55
-
56
- return cookie;
57
- }
58
-
59
- function parse(input, options) {
60
- options = options
61
- ? Object.assign({}, defaultParseOptions, options)
62
- : defaultParseOptions;
63
-
64
- if (!input) {
65
- if (!options.map) {
66
- return [];
67
- } else {
68
- return {};
69
- }
70
- }
71
-
72
- if (input.headers && input.headers["set-cookie"]) {
73
- // fast-path for node.js (which automatically normalizes header names to lower-case
74
- input = input.headers["set-cookie"];
75
- } else if (input.headers) {
76
- // slow-path for other environments - see #25
77
- var sch =
78
- input.headers[
79
- Object.keys(input.headers).find(function (key) {
80
- return key.toLowerCase() === "set-cookie";
81
- })
82
- ];
83
- // warn if called on a request-like object with a cookie header rather than a set-cookie header - see #34, 36
84
- if (!sch && input.headers.cookie && !options.silent) {
85
- console.warn(
86
- "Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."
87
- );
88
- }
89
- input = sch;
90
- }
91
- if (!Array.isArray(input)) {
92
- input = [input];
93
- }
94
-
95
- options = options
96
- ? Object.assign({}, defaultParseOptions, options)
97
- : defaultParseOptions;
98
-
99
- if (!options.map) {
100
- return input.filter(isNonEmptyString).map(function (str) {
101
- return parseString(str, options);
102
- });
103
- } else {
104
- var cookies = {};
105
- return input.filter(isNonEmptyString).reduce(function (cookies, str) {
106
- var cookie = parseString(str, options);
107
- cookies[cookie.name] = cookie;
108
- return cookies;
109
- }, cookies);
110
- }
111
- }
112
-
113
- /*
114
- Set-Cookie header field-values are sometimes comma joined in one string. This splits them without choking on commas
115
- that are within a single set-cookie field-value, such as in the Expires portion.
116
-
117
- This is uncommon, but explicitly allowed - see https://tools.ietf.org/html/rfc2616#section-4.2
118
- Node.js does this for every header *except* set-cookie - see https://github.com/nodejs/node/blob/d5e363b77ebaf1caf67cd7528224b651c86815c1/lib/_http_incoming.js#L128
119
- React Native's fetch does this for *every* header, including set-cookie.
120
-
121
- Based on: https://github.com/google/j2objc/commit/16820fdbc8f76ca0c33472810ce0cb03d20efe25
122
- Credits to: https://github.com/tomball for original and https://github.com/chrusart for JavaScript implementation
123
- */
124
- function splitCookiesString(cookiesString) {
125
- if (Array.isArray(cookiesString)) {
126
- return cookiesString;
127
- }
128
- if (typeof cookiesString !== "string") {
129
- return [];
130
- }
131
-
132
- var cookiesStrings = [];
133
- var pos = 0;
134
- var start;
135
- var ch;
136
- var lastComma;
137
- var nextStart;
138
- var cookiesSeparatorFound;
139
-
140
- function skipWhitespace() {
141
- while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) {
142
- pos += 1;
143
- }
144
- return pos < cookiesString.length;
145
- }
146
-
147
- function notSpecialChar() {
148
- ch = cookiesString.charAt(pos);
149
-
150
- return ch !== "=" && ch !== ";" && ch !== ",";
151
- }
152
-
153
- while (pos < cookiesString.length) {
154
- start = pos;
155
- cookiesSeparatorFound = false;
156
-
157
- while (skipWhitespace()) {
158
- ch = cookiesString.charAt(pos);
159
- if (ch === ",") {
160
- // ',' is a cookie separator if we have later first '=', not ';' or ','
161
- lastComma = pos;
162
- pos += 1;
163
-
164
- skipWhitespace();
165
- nextStart = pos;
166
-
167
- while (pos < cookiesString.length && notSpecialChar()) {
168
- pos += 1;
169
- }
170
-
171
- // currently special character
172
- if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
173
- // we found cookies separator
174
- cookiesSeparatorFound = true;
175
- // pos is inside the next cookie, so back up and return it.
176
- pos = nextStart;
177
- cookiesStrings.push(cookiesString.substring(start, lastComma));
178
- start = pos;
179
- } else {
180
- // in param ',' or param separator ';',
181
- // we continue from that comma
182
- pos = lastComma + 1;
183
- }
184
- } else {
185
- pos += 1;
186
- }
187
- }
188
-
189
- if (!cookiesSeparatorFound || pos >= cookiesString.length) {
190
- cookiesStrings.push(cookiesString.substring(start, cookiesString.length));
191
- }
192
- }
193
-
194
- return cookiesStrings;
195
- }
196
-
197
- var setCookie = parse;
198
- var parse_1 = parse;
199
- var parseString_1 = parseString;
200
- var splitCookiesString_1 = splitCookiesString;
201
- setCookie.parse = parse_1;
202
- setCookie.parseString = parseString_1;
203
- setCookie.splitCookiesString = splitCookiesString_1;
204
-
205
- var dist = createCommonjsModule(function (module, exports) {
206
- var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
207
- __assign = Object.assign || function(t) {
208
- for (var s, i = 1, n = arguments.length; i < n; i++) {
209
- s = arguments[i];
210
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
211
- t[p] = s[p];
212
- }
213
- return t;
214
- };
215
- return __assign.apply(this, arguments);
216
- };
217
- Object.defineProperty(exports, "__esModule", { value: true });
218
- exports.destroyCookie = exports.setCookie = exports.parseCookies = void 0;
219
-
220
-
221
- var isBrowser = function () { return typeof window !== 'undefined'; };
222
- function hasSameProperties(a, b) {
223
- var aProps = Object.getOwnPropertyNames(a);
224
- var bProps = Object.getOwnPropertyNames(b);
225
- if (aProps.length !== bProps.length) {
226
- return false;
227
- }
228
- for (var i = 0; i < aProps.length; i++) {
229
- var propName = aProps[i];
230
- if (a[propName] !== b[propName]) {
231
- return false;
232
- }
233
- }
234
- return true;
235
- }
236
- /**
237
- * Compare the cookie and return true if the cookies has equivalent
238
- * options and the cookies would be overwritten in the browser storage.
239
- *
240
- * @param a first Cookie for comparison
241
- * @param b second Cookie for comparison
242
- */
243
- function areCookiesEqual(a, b) {
244
- var sameSiteSame = a.sameSite === b.sameSite;
245
- if (typeof a.sameSite === 'string' && typeof b.sameSite === 'string') {
246
- sameSiteSame = a.sameSite.toLowerCase() === b.sameSite.toLowerCase();
247
- }
248
- return (hasSameProperties(__assign(__assign({}, a), { sameSite: undefined }), __assign(__assign({}, b), { sameSite: undefined })) && sameSiteSame);
249
- }
250
- /**
251
- * Create an instance of the Cookie interface
252
- *
253
- * @param name name of the Cookie
254
- * @param value value of the Cookie
255
- * @param options Cookie options
256
- */
257
- function createCookie(name, value, options) {
258
- var sameSite = options.sameSite;
259
- if (sameSite === true) {
260
- sameSite = 'strict';
261
- }
262
- if (sameSite === undefined || sameSite === false) {
263
- sameSite = 'lax';
264
- }
265
- var cookieToSet = __assign(__assign({}, options), { sameSite: sameSite });
266
- delete cookieToSet.encode;
267
- return __assign({ name: name, value: value }, cookieToSet);
268
- }
269
- /**
270
- *
271
- * Parses cookies.
272
- *
273
- * @param ctx
274
- * @param options
275
- */
276
- function parseCookies(ctx, options) {
277
- if (ctx && ctx.req && ctx.req.headers && ctx.req.headers.cookie) {
278
- return cookie.parse(ctx.req.headers.cookie, options);
279
- }
280
- if (isBrowser()) {
281
- return cookie.parse(document.cookie, options);
282
- }
283
- return {};
284
- }
285
- exports.parseCookies = parseCookies;
286
- /**
287
- *
288
- * Sets a cookie.
289
- *
290
- * @param ctx
291
- * @param name
292
- * @param value
293
- * @param options
294
- */
295
- function setCookie$1(ctx, name, value, options) {
296
- if (ctx && ctx.res && ctx.res.getHeader && ctx.res.setHeader) {
297
- var cookies = ctx.res.getHeader('Set-Cookie') || [];
298
- if (typeof cookies === 'string')
299
- cookies = [cookies];
300
- if (typeof cookies === 'number')
301
- cookies = [];
302
- var parsedCookies = setCookie.parse(cookies);
303
- var cookiesToSet_1 = [];
304
- parsedCookies.forEach(function (parsedCookie) {
305
- if (!areCookiesEqual(parsedCookie, createCookie(name, value, options))) {
306
- cookiesToSet_1.push(cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({ encode: function (val) { return val; } }, parsedCookie)));
307
- }
308
- });
309
- cookiesToSet_1.push(cookie.serialize(name, value, options));
310
- if (!ctx.res.finished) {
311
- ctx.res.setHeader('Set-Cookie', cookiesToSet_1);
312
- }
313
- }
314
- if (isBrowser()) {
315
- if (options && options.httpOnly) {
316
- throw new Error('Can not set a httpOnly cookie in the browser.');
317
- }
318
- document.cookie = cookie.serialize(name, value, options);
319
- }
320
- return {};
321
- }
322
- exports.setCookie = setCookie$1;
323
- /**
324
- *
325
- * Destroys a cookie with a particular name.
326
- *
327
- * @param ctx
328
- * @param name
329
- * @param options
330
- */
331
- function destroyCookie(ctx, name, options) {
332
- var opts = __assign(__assign({}, (options || {})), { maxAge: -1 });
333
- if (ctx && ctx.res && ctx.res.setHeader && ctx.res.getHeader) {
334
- var cookies = ctx.res.getHeader('Set-Cookie') || [];
335
- if (typeof cookies === 'string')
336
- cookies = [cookies];
337
- if (typeof cookies === 'number')
338
- cookies = [];
339
- cookies.push(cookie.serialize(name, '', opts));
340
- ctx.res.setHeader('Set-Cookie', cookies);
341
- }
342
- if (isBrowser()) {
343
- document.cookie = cookie.serialize(name, '', opts);
344
- }
345
- return {};
346
- }
347
- exports.destroyCookie = destroyCookie;
348
- exports.default = {
349
- set: setCookie$1,
350
- get: parseCookies,
351
- destroy: destroyCookie,
352
- };
353
-
354
- });
355
-
356
- unwrapExports(dist);
357
- var dist_1 = dist.destroyCookie;
358
- var dist_2 = dist.setCookie;
359
- var dist_3 = dist.parseCookies;
360
-
361
12
  var _this = undefined;
362
13
 
363
14
  var getRelatedArticle = function () {
@@ -410,13 +61,13 @@ var getRelatedArticle = function () {
410
61
  conditions = '';
411
62
 
412
63
  if (ctx && url) {
413
- cookies = dist_3(ctx);
64
+ cookies = parseCookies(ctx);
414
65
  prevSlugs = cookies['prevSlugs'];
415
66
 
416
67
  if (!!prevSlugs) {
417
- dist_2(ctx, 'prevSlugs', prevSlugs + ',"' + url + '"', {});
68
+ setCookie(ctx, 'prevSlugs', prevSlugs + ',"' + url + '"', {});
418
69
  conditions = '&& !(url.current in [' + prevSlugs + '])';
419
- } else dist_2(ctx, 'prevSlugs', '"' + url + '"', {});
70
+ } else setCookie(ctx, 'prevSlugs', '"' + url + '"', {});
420
71
  }
421
72
  relatedArticleQuery = getQuery('related', conditions, '', articleCount);
422
73
  _context.next = 12;
@@ -13,18 +13,18 @@ import './web.dom.iterable-5c830d3d.js';
13
13
  import './typeof-f11fd438.js';
14
14
  import './_is-array-ced12663.js';
15
15
  import 'react';
16
- import './index-3f4dd6f2.js';
16
+ import './index-93ec3c59.js';
17
17
  import 'prop-types';
18
18
  import 'react-bootstrap/Row';
19
19
  import 'react-bootstrap/Col';
20
- import './moment-e2f9b20c.js';
20
+ import './moment-12415288.js';
21
21
  import 'next/router';
22
22
  import './isSymbol-47f5ff3b.js';
23
23
  import './debounce-a0d9abca.js';
24
24
  import 'react-dom';
25
- import './index-3849e3fe.js';
25
+ import './index-51a80699.js';
26
26
  import './index-5f9f807a.js';
27
- import './main-d7ee6151.js';
27
+ import './main-7255814e.js';
28
28
  import './entities-7cc3bf45.js';
29
29
  import './stringify-feadff37.js';
30
30
  import './slicedToArray-a58d7edf.js';
@@ -32,12 +32,12 @@ import './asyncToGenerator-d25aac66.js';
32
32
  import './_set-species-75f77d40.js';
33
33
  import './beam-c40d77ae.js';
34
34
  import './AdSlot.js';
35
- import './BlockContent-c409aca5.js';
35
+ import './BlockContent-a614acdf.js';
36
36
  import './smoothscroll-4b699764.js';
37
37
  import './GroupDeck.js';
38
38
  import 'react-bootstrap';
39
39
  import 'react-bootstrap/Button';
40
- export { g as default } from './index-efc023e1.js';
40
+ export { g as default } from './index-8a3465af.js';
41
41
  import './util-7700fc59.js';
42
42
  import './brightcove-react-player-loader.es-83f53e4e.js';
43
43
  import 'react-bootstrap/Pagination';
@@ -58,35 +58,35 @@ function parseSource(source) {
58
58
  if (typeof source === 'string' && isUrl(source)) {
59
59
  // Someone passed an existing image url?
60
60
  image = {
61
- asset: { _ref: urlToId(source) }
61
+ asset: { _ref: urlToId(source) },
62
62
  };
63
63
  }
64
64
  else if (typeof source === 'string') {
65
65
  // Just an asset id
66
66
  image = {
67
- asset: { _ref: source }
67
+ asset: { _ref: source },
68
68
  };
69
69
  }
70
70
  else if (isRef(source)) {
71
71
  // We just got passed an asset directly
72
72
  image = {
73
- asset: source
73
+ asset: source,
74
74
  };
75
75
  }
76
76
  else if (isAsset(source)) {
77
77
  // If we were passed an image asset document
78
78
  image = {
79
79
  asset: {
80
- _ref: source._id || ''
81
- }
80
+ _ref: source._id || '',
81
+ },
82
82
  };
83
83
  }
84
84
  else if (isAssetStub(source)) {
85
85
  // If we were passed a partial asset (`url`, but no `_id`)
86
86
  image = {
87
87
  asset: {
88
- _ref: urlToId(source.asset.url)
89
- }
88
+ _ref: urlToId(source.asset.url),
89
+ },
90
90
  };
91
91
  }
92
92
  else if (typeof source.asset === 'object') {
@@ -127,7 +127,7 @@ function applyDefaults(image) {
127
127
  left: 0,
128
128
  top: 0,
129
129
  bottom: 0,
130
- right: 0
130
+ right: 0,
131
131
  };
132
132
  }
133
133
  if (!result.hotspot) {
@@ -135,7 +135,7 @@ function applyDefaults(image) {
135
135
  x: 0.5,
136
136
  y: 0.5,
137
137
  height: 1.0,
138
- width: 1.0
138
+ width: 1.0,
139
139
  };
140
140
  }
141
141
  return result;
@@ -182,7 +182,7 @@ exports.SPEC_NAME_TO_URL_NAME_MAPPINGS = [
182
182
  ['crop', 'crop'],
183
183
  ['saturation', 'sat'],
184
184
  ['auto', 'auto'],
185
- ['dpr', 'dpr']
185
+ ['dpr', 'dpr'],
186
186
  ];
187
187
  function urlForImage(options) {
188
188
  var spec = __assign({}, (options || {}));
@@ -201,7 +201,7 @@ function urlForImage(options) {
201
201
  left: cropLeft,
202
202
  top: cropTop,
203
203
  width: Math.round(asset.width - image.crop.right * asset.width - cropLeft),
204
- height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop)
204
+ height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop),
205
205
  };
206
206
  // Compute hot spot rect in terms of pixel coordinates
207
207
  var hotSpotVerticalRadius = (image.hotspot.height * asset.height) / 2;
@@ -212,7 +212,7 @@ function urlForImage(options) {
212
212
  left: hotSpotCenterX - hotSpotHorizontalRadius,
213
213
  top: hotSpotCenterY - hotSpotVerticalRadius,
214
214
  right: hotSpotCenterX + hotSpotHorizontalRadius,
215
- bottom: hotSpotCenterY + hotSpotVerticalRadius
215
+ bottom: hotSpotCenterY + hotSpotVerticalRadius,
216
216
  };
217
217
  // If irrelevant, or if we are requested to: don't perform crop/fit based on
218
218
  // the crop/hotspot.
@@ -294,7 +294,7 @@ function fit(source, spec) {
294
294
  left: Math.round(left),
295
295
  top: Math.round(top_2),
296
296
  width: Math.round(width),
297
- height: Math.round(height)
297
+ height: Math.round(height),
298
298
  };
299
299
  }
300
300
  else {
@@ -316,13 +316,13 @@ function fit(source, spec) {
316
316
  left: Math.max(0, Math.floor(left)),
317
317
  top: Math.max(0, Math.floor(top_3)),
318
318
  width: Math.round(width),
319
- height: Math.round(height)
319
+ height: Math.round(height),
320
320
  };
321
321
  }
322
322
  return {
323
323
  width: imgWidth,
324
324
  height: imgHeight,
325
- rect: cropRect
325
+ rect: cropRect,
326
326
  };
327
327
  }
328
328
 
@@ -380,7 +380,7 @@ function urlBuilder(options) {
380
380
  return new ImageUrlBuilder(null, {
381
381
  baseUrl: apiHost.replace(/^https:\/\/api\./, 'https://cdn.'),
382
382
  projectId: projectId,
383
- dataset: dataset
383
+ dataset: dataset,
384
384
  });
385
385
  }
386
386
  // Or just accept the options as given
@@ -393,7 +393,7 @@ var ImageUrlBuilder = /** @class */ (function () {
393
393
  ? __assign(__assign({}, (parent.options || {})), (options || {})) : __assign({}, (options || {})); // Copy options
394
394
  }
395
395
  ImageUrlBuilder.prototype.withOptions = function (options) {
396
- var baseUrl = options.baseUrl || '';
396
+ var baseUrl = options.baseUrl || this.options.baseUrl;
397
397
  var newOptions = { baseUrl: baseUrl };
398
398
  for (var key in options) {
399
399
  if (options.hasOwnProperty(key)) {
@@ -521,7 +521,7 @@ var ImageUrlBuilder = /** @class */ (function () {
521
521
  ImageUrlBuilder.prototype.url = function () {
522
522
  return urlForImage_1$1.default(this.options);
523
523
  };
524
- // Synonym for url()
524
+ // Alias for url()
525
525
  ImageUrlBuilder.prototype.toString = function () {
526
526
  return this.url();
527
527
  };
@@ -3,20 +3,20 @@ import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-2
3
3
  import { _ as _extends } from './extends-229166d5.js';
4
4
  import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-a15d91fe.js';
5
5
  import React__default, { useState, useEffect, useRef } from 'react';
6
- import { l as lib_3 } from './index-3f4dd6f2.js';
6
+ import { l as lib_3 } from './index-93ec3c59.js';
7
7
  import PropTypes from 'prop-types';
8
8
  import Row from 'react-bootstrap/Row';
9
9
  import Col from 'react-bootstrap/Col';
10
- import { m as moment } from './moment-e2f9b20c.js';
10
+ import { m as moment } from './moment-12415288.js';
11
11
  import Router, { useRouter } from 'next/router';
12
- import { i as imageUrlBuilder } from './index-3849e3fe.js';
12
+ import { i as imageUrlBuilder } from './index-51a80699.js';
13
13
  import { L as LazyLoad } from './index-5f9f807a.js';
14
- import { b as main_16, c as main_35, m as main_36 } from './main-d7ee6151.js';
14
+ import { b as main_16, c as main_38, m as main_39 } from './main-7255814e.js';
15
15
  import { h as html_decode_1 } from './entities-7cc3bf45.js';
16
16
  import { _ as _slicedToArray } from './slicedToArray-a58d7edf.js';
17
17
  import { B as Beam, S as Segment } from './beam-c40d77ae.js';
18
18
  import DFPAdSlot from './AdSlot.js';
19
- import { B as BlockContent } from './BlockContent-c409aca5.js';
19
+ import { B as BlockContent } from './BlockContent-a614acdf.js';
20
20
  import { g as getYoutubeId } from './smoothscroll-4b699764.js';
21
21
  import GroupDeck from './GroupDeck.js';
22
22
  import { Carousel, Table, Figure as Figure$1, Button, ProgressBar, Card, Row as Row$1, Col as Col$1 } from 'react-bootstrap';
@@ -7480,7 +7480,7 @@ var Poll = function Poll(_ref) {
7480
7480
  );
7481
7481
  };
7482
7482
 
7483
- var numberOfPaginations = main_35 ? 4 : 10;
7483
+ var numberOfPaginations = main_38 ? 4 : 10;
7484
7484
 
7485
7485
  var Quiz = function Quiz(_ref) {
7486
7486
  var quizzes = _ref.quizzes,
@@ -7593,7 +7593,7 @@ var Quiz = function Quiz(_ref) {
7593
7593
  var renderPagination = function renderPagination() {
7594
7594
  return React__default.createElement(
7595
7595
  Pagination,
7596
- { className: 'p-0 m-0', size: main_35 && 'sm' },
7596
+ { className: 'p-0 m-0', size: main_38 && 'sm' },
7597
7597
  React__default.createElement(Pagination.First, { onClick: function onClick() {
7598
7598
  return changePage('first');
7599
7599
  }, disabled: currentPage === 1 }),
@@ -8175,7 +8175,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8175
8175
  //const activeArticle = path
8176
8176
  //let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
8177
8177
 
8178
- if (!main_36) {
8178
+ if (!main_39) {
8179
8179
  lib_3.getGoogletag().then(function (googletag) {
8180
8180
  if (window.googletag && googletag.pubadsReady) {
8181
8181
  lib_3.refresh();
@@ -8183,7 +8183,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8183
8183
  });
8184
8184
  }
8185
8185
  //Refresh leaderboard ad on mobile
8186
- if (main_36) {
8186
+ if (main_39) {
8187
8187
  var leaderboardSlotId = '';
8188
8188
  lib_3.getGoogletag().then(function (googletag) {
8189
8189
  if (window.googletag && googletag.pubadsReady) {
@@ -821,15 +821,13 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
821
821
  });
822
822
 
823
823
  if (_this5.lazyLoadIsEnabled()) {
824
- var args = [];
825
-
826
824
  var config = _this5.getLazyLoadConfig();
827
825
 
828
- if (config !== null) {
829
- args.push(config);
826
+ if (config) {
827
+ pubadsService.enableLazyLoad(config);
828
+ } else {
829
+ pubadsService.enableLazyLoad();
830
830
  }
831
-
832
- pubadsService.enableLazyLoad.call(args);
833
831
  }
834
832
 
835
833
  if (_this5.singleRequestIsEnabled()) {
@@ -1,5 +1,5 @@
1
1
  import { c as createCommonjsModule, a as commonjsGlobal, g as getCjsExportFromNamespace } from './_commonjsHelpers-0c4b6f40.js';
2
- import { m as moment } from './moment-e2f9b20c.js';
2
+ import { m as moment } from './moment-12415288.js';
3
3
 
4
4
  var momentTimezone = createCommonjsModule(function (module) {
5
5
  //! moment-timezone.js
@@ -263,6 +263,9 @@ var InfiniteScroll = /** @class */ (function (_super) {
263
263
  _this.dragging = false;
264
264
  if (_this.state.pullToRefreshThresholdBreached) {
265
265
  _this.props.refreshFunction && _this.props.refreshFunction();
266
+ _this.setState({
267
+ pullToRefreshThresholdBreached: false,
268
+ });
266
269
  }
267
270
  requestAnimationFrame(function () {
268
271
  // this._infScroll
@@ -369,7 +372,6 @@ var InfiniteScroll = /** @class */ (function (_super) {
369
372
  // update state when new data was sent in
370
373
  this.setState({
371
374
  showLoader: false,
372
- pullToRefreshThresholdBreached: false,
373
375
  });
374
376
  };
375
377
  InfiniteScroll.prototype.isElementAtBottom = function (target, scrollThreshold) {