@mjhls/mjh-framework 1.0.665 → 1.0.666-ad-update-v3

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 (148) 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/ArticleCarousel.js +1 -1
  15. package/dist/cjs/ArticleSeriesListing.js +4 -4
  16. package/dist/cjs/Auth.js +255 -506
  17. package/dist/cjs/{BlockContent-88f69acd.js → BlockContent-80b15fac.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 +7 -7
  22. package/dist/cjs/DeckQueue.js +6 -6
  23. package/dist/cjs/{Dfp-b2bc3b97.js → Dfp-390337bf.js} +1 -1
  24. package/dist/cjs/EventsDeck.js +14 -6
  25. package/dist/cjs/ExternalResources.js +7 -7
  26. package/dist/cjs/Feature.js +3 -3
  27. package/dist/cjs/ForbesHero.js +2 -2
  28. package/dist/cjs/GridContent.js +11 -11
  29. package/dist/cjs/GridHero.js +2 -2
  30. package/dist/cjs/GroupDeck.js +1 -1
  31. package/dist/cjs/HamMagazine.js +4 -4
  32. package/dist/cjs/Hero.js +1 -1
  33. package/dist/cjs/HorizontalHero.js +3 -3
  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 +15 -11
  39. package/dist/cjs/NavMagazine.js +4 -4
  40. package/dist/cjs/NavNative.js +3 -3
  41. package/dist/cjs/OncliveHero.js +3 -3
  42. package/dist/cjs/OncliveLargeHero.js +2 -2
  43. package/dist/cjs/PartnerDetailListing.js +1211 -14
  44. package/dist/cjs/PublicationDeck.js +2 -2
  45. package/dist/cjs/QueueDeckExpanded.js +10 -10
  46. package/dist/cjs/RecentNews.js +3 -3
  47. package/dist/cjs/RelatedContent.js +2 -2
  48. package/dist/cjs/{SocialSearchComponent-962b1344.js → SocialSearchComponent-81a50f81.js} +5 -5
  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 +3 -3
  53. package/dist/cjs/VerticalHero.js +2 -2
  54. package/dist/cjs/VideoSeriesCard.js +2 -2
  55. package/dist/cjs/VideoSeriesListing.js +3 -3
  56. package/dist/cjs/View.js +77 -18
  57. package/dist/cjs/YahooHero.js +2 -2
  58. package/dist/cjs/YoutubeGroup.js +1 -1
  59. package/dist/cjs/getRelatedArticle.js +354 -5
  60. package/dist/cjs/getSerializers.js +6 -6
  61. package/dist/cjs/{index-2d0a4911.js → index-099d45ae.js} +6 -4
  62. package/dist/cjs/{index-6f1ee5f0.js → index-0ba539e4.js} +14 -14
  63. package/dist/cjs/{index-5be2866f.js → index-3294d3bc.js} +1 -1
  64. package/dist/cjs/{index-b5eb3ff8.js → index-39beccb3.js} +18 -18
  65. package/dist/cjs/index-bd6c9f56.js +211 -0
  66. package/dist/cjs/{index.es-ab3f2690.js → index.es-9110add6.js} +1 -3
  67. package/dist/cjs/{index.esm-89fabc47.js → index.esm-ff47db6f.js} +10 -0
  68. package/dist/cjs/index.js +16 -17
  69. package/dist/cjs/{lodash-fc2922d0.js → lodash-7fd85bcf.js} +71 -22
  70. package/dist/cjs/{main-b6c96c8d.js → main-a4cb15bb.js} +36 -67
  71. package/dist/cjs/{moment-66a6a284.js → moment-575fe24c.js} +1 -1
  72. package/dist/cjs/urlFor.js +1 -1
  73. package/dist/esm/AD.js +1 -1
  74. package/dist/esm/AD300x250.js +3 -3
  75. package/dist/esm/AD300x250x600.js +3 -3
  76. package/dist/esm/AD728x90.js +4 -4
  77. package/dist/esm/ADFloatingFooter.js +2 -2
  78. package/dist/esm/ADGutter.js +2 -2
  79. package/dist/esm/ADSkyscraper.js +2 -2
  80. package/dist/esm/ADSponsoredResources.js +2 -2
  81. package/dist/esm/ADWebcast.js +2 -2
  82. package/dist/esm/ADWelcome.js +2 -2
  83. package/dist/esm/AdSlot.js +2 -2
  84. package/dist/esm/AdSlotsProvider.js +1 -1
  85. package/dist/esm/ArticleCarousel.js +1 -1
  86. package/dist/esm/ArticleSeriesListing.js +4 -4
  87. package/dist/esm/Auth.js +250 -501
  88. package/dist/esm/{BlockContent-a614acdf.js → BlockContent-c409aca5.js} +1 -1
  89. package/dist/esm/CMEDeck.js +5 -5
  90. package/dist/esm/Column3.js +4 -4
  91. package/dist/esm/ConferenceArticleCard.js +2 -2
  92. package/dist/esm/DeckContent.js +7 -7
  93. package/dist/esm/DeckQueue.js +6 -6
  94. package/dist/esm/{Dfp-8a8fca18.js → Dfp-741c01be.js} +1 -1
  95. package/dist/esm/EventsDeck.js +14 -6
  96. package/dist/esm/ExternalResources.js +7 -7
  97. package/dist/esm/Feature.js +3 -3
  98. package/dist/esm/ForbesHero.js +2 -2
  99. package/dist/esm/GridContent.js +11 -11
  100. package/dist/esm/GridHero.js +2 -2
  101. package/dist/esm/GroupDeck.js +1 -1
  102. package/dist/esm/HamMagazine.js +4 -4
  103. package/dist/esm/Hero.js +1 -1
  104. package/dist/esm/HorizontalHero.js +3 -3
  105. package/dist/esm/IssueContentDeck.js +2 -2
  106. package/dist/esm/IssueDeck.js +2 -2
  107. package/dist/esm/IssueLanding.js +8 -8
  108. package/dist/esm/LeftNav.js +2 -2
  109. package/dist/esm/MasterDeck.js +15 -11
  110. package/dist/esm/NavMagazine.js +4 -4
  111. package/dist/esm/NavNative.js +3 -3
  112. package/dist/esm/OncliveHero.js +3 -3
  113. package/dist/esm/OncliveLargeHero.js +2 -2
  114. package/dist/esm/PartnerDetailListing.js +1210 -14
  115. package/dist/esm/PublicationDeck.js +2 -2
  116. package/dist/esm/QueueDeckExpanded.js +10 -10
  117. package/dist/esm/RecentNews.js +3 -3
  118. package/dist/esm/RelatedContent.js +2 -2
  119. package/dist/esm/{SocialSearchComponent-75527dfe.js → SocialSearchComponent-55960ec4.js} +5 -5
  120. package/dist/esm/TaxonomyCard.js +2 -2
  121. package/dist/esm/TemplateNormal.js +3 -3
  122. package/dist/esm/ThumbnailCard.js +1 -1
  123. package/dist/esm/Ustream.js +3 -3
  124. package/dist/esm/VerticalHero.js +2 -2
  125. package/dist/esm/VideoSeriesCard.js +2 -2
  126. package/dist/esm/VideoSeriesListing.js +3 -3
  127. package/dist/esm/View.js +77 -18
  128. package/dist/esm/YahooHero.js +2 -2
  129. package/dist/esm/YoutubeGroup.js +1 -1
  130. package/dist/esm/getRelatedArticle.js +354 -5
  131. package/dist/esm/getSerializers.js +6 -6
  132. package/dist/esm/{index-3a33f7d6.js → index-26c19b64.js} +14 -14
  133. package/dist/esm/{index-51a80699.js → index-3849e3fe.js} +18 -18
  134. package/dist/esm/{index-93ec3c59.js → index-3f4dd6f2.js} +6 -4
  135. package/dist/esm/index-db3bb315.js +207 -0
  136. package/dist/esm/{index-d2f90501.js → index-ef6d5dcf.js} +1 -1
  137. package/dist/esm/{index.es-938a3a58.js → index.es-29c1cef5.js} +1 -3
  138. package/dist/esm/{index.esm-9a4c8813.js → index.esm-cf08bf18.js} +9 -1
  139. package/dist/esm/index.js +15 -16
  140. package/dist/esm/{lodash-17fdfebb.js → lodash-ec8c6b48.js} +71 -22
  141. package/dist/esm/{main-0465b2a0.js → main-5d1e4bd3.js} +34 -65
  142. package/dist/esm/{moment-12415288.js → moment-e2f9b20c.js} +1 -1
  143. package/dist/esm/urlFor.js +1 -1
  144. package/package.json +3 -3
  145. /package/dist/cjs/{ADInfeed-9735aff2.js → ADInfeed-61658341.js} +0 -0
  146. /package/dist/cjs/{ADlgInfeed-6bd11848.js → ADlgInfeed-61b2f7ae.js} +0 -0
  147. /package/dist/esm/{ADInfeed-9140aa7d.js → ADInfeed-034c433d.js} +0 -0
  148. /package/dist/esm/{ADlgInfeed-7656ecd1.js → ADlgInfeed-0fb12879.js} +0 -0
@@ -1,4 +1,4 @@
1
- import './_commonjsHelpers-0c4b6f40.js';
1
+ import { c as createCommonjsModule, u as unwrapExports, a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
2
2
  import './_to-object-ded78eb9.js';
3
3
  import './es6.string.iterator-9b2af4a5.js';
4
4
  import './_library-528f1934.js';
@@ -7,9 +7,358 @@ import './core.get-iterator-method-54d2e411.js';
7
7
  import './web.dom.iterable-8956f9a5.js';
8
8
  import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7c654f36.js';
9
9
  import './_set-species-cede29f8.js';
10
- import { parseCookies, setCookie } from 'nookies';
10
+ import { c as cookie } from './index-db3bb315.js';
11
11
  import getQuery from './getQuery.js';
12
12
 
13
+ var defaultParseOptions = {
14
+ decodeValues: true,
15
+ map: false,
16
+ silent: false,
17
+ };
18
+
19
+ function isNonEmptyString(str) {
20
+ return typeof str === "string" && !!str.trim();
21
+ }
22
+
23
+ function parseString(setCookieValue, options) {
24
+ var parts = setCookieValue.split(";").filter(isNonEmptyString);
25
+ var nameValue = parts.shift().split("=");
26
+ var name = nameValue.shift();
27
+ var value = nameValue.join("="); // everything after the first =, joined by a "=" if there was more than one part
28
+
29
+ options = options
30
+ ? Object.assign({}, defaultParseOptions, options)
31
+ : defaultParseOptions;
32
+
33
+ var cookie = {
34
+ name: name, // grab everything before the first =
35
+ value: options.decodeValues ? decodeURIComponent(value) : value, // decode cookie value
36
+ };
37
+
38
+ parts.forEach(function (part) {
39
+ var sides = part.split("=");
40
+ var key = sides.shift().trimLeft().toLowerCase();
41
+ var value = sides.join("=");
42
+ if (key === "expires") {
43
+ cookie.expires = new Date(value);
44
+ } else if (key === "max-age") {
45
+ cookie.maxAge = parseInt(value, 10);
46
+ } else if (key === "secure") {
47
+ cookie.secure = true;
48
+ } else if (key === "httponly") {
49
+ cookie.httpOnly = true;
50
+ } else if (key === "samesite") {
51
+ cookie.sameSite = value;
52
+ } else {
53
+ cookie[key] = value;
54
+ }
55
+ });
56
+
57
+ return cookie;
58
+ }
59
+
60
+ function parse(input, options) {
61
+ options = options
62
+ ? Object.assign({}, defaultParseOptions, options)
63
+ : defaultParseOptions;
64
+
65
+ if (!input) {
66
+ if (!options.map) {
67
+ return [];
68
+ } else {
69
+ return {};
70
+ }
71
+ }
72
+
73
+ if (input.headers && input.headers["set-cookie"]) {
74
+ // fast-path for node.js (which automatically normalizes header names to lower-case
75
+ input = input.headers["set-cookie"];
76
+ } else if (input.headers) {
77
+ // slow-path for other environments - see #25
78
+ var sch =
79
+ input.headers[
80
+ Object.keys(input.headers).find(function (key) {
81
+ return key.toLowerCase() === "set-cookie";
82
+ })
83
+ ];
84
+ // warn if called on a request-like object with a cookie header rather than a set-cookie header - see #34, 36
85
+ if (!sch && input.headers.cookie && !options.silent) {
86
+ console.warn(
87
+ "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."
88
+ );
89
+ }
90
+ input = sch;
91
+ }
92
+ if (!Array.isArray(input)) {
93
+ input = [input];
94
+ }
95
+
96
+ options = options
97
+ ? Object.assign({}, defaultParseOptions, options)
98
+ : defaultParseOptions;
99
+
100
+ if (!options.map) {
101
+ return input.filter(isNonEmptyString).map(function (str) {
102
+ return parseString(str, options);
103
+ });
104
+ } else {
105
+ var cookies = {};
106
+ return input.filter(isNonEmptyString).reduce(function (cookies, str) {
107
+ var cookie = parseString(str, options);
108
+ cookies[cookie.name] = cookie;
109
+ return cookies;
110
+ }, cookies);
111
+ }
112
+ }
113
+
114
+ /*
115
+ Set-Cookie header field-values are sometimes comma joined in one string. This splits them without choking on commas
116
+ that are within a single set-cookie field-value, such as in the Expires portion.
117
+
118
+ This is uncommon, but explicitly allowed - see https://tools.ietf.org/html/rfc2616#section-4.2
119
+ Node.js does this for every header *except* set-cookie - see https://github.com/nodejs/node/blob/d5e363b77ebaf1caf67cd7528224b651c86815c1/lib/_http_incoming.js#L128
120
+ React Native's fetch does this for *every* header, including set-cookie.
121
+
122
+ Based on: https://github.com/google/j2objc/commit/16820fdbc8f76ca0c33472810ce0cb03d20efe25
123
+ Credits to: https://github.com/tomball for original and https://github.com/chrusart for JavaScript implementation
124
+ */
125
+ function splitCookiesString(cookiesString) {
126
+ if (Array.isArray(cookiesString)) {
127
+ return cookiesString;
128
+ }
129
+ if (typeof cookiesString !== "string") {
130
+ return [];
131
+ }
132
+
133
+ var cookiesStrings = [];
134
+ var pos = 0;
135
+ var start;
136
+ var ch;
137
+ var lastComma;
138
+ var nextStart;
139
+ var cookiesSeparatorFound;
140
+
141
+ function skipWhitespace() {
142
+ while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) {
143
+ pos += 1;
144
+ }
145
+ return pos < cookiesString.length;
146
+ }
147
+
148
+ function notSpecialChar() {
149
+ ch = cookiesString.charAt(pos);
150
+
151
+ return ch !== "=" && ch !== ";" && ch !== ",";
152
+ }
153
+
154
+ while (pos < cookiesString.length) {
155
+ start = pos;
156
+ cookiesSeparatorFound = false;
157
+
158
+ while (skipWhitespace()) {
159
+ ch = cookiesString.charAt(pos);
160
+ if (ch === ",") {
161
+ // ',' is a cookie separator if we have later first '=', not ';' or ','
162
+ lastComma = pos;
163
+ pos += 1;
164
+
165
+ skipWhitespace();
166
+ nextStart = pos;
167
+
168
+ while (pos < cookiesString.length && notSpecialChar()) {
169
+ pos += 1;
170
+ }
171
+
172
+ // currently special character
173
+ if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
174
+ // we found cookies separator
175
+ cookiesSeparatorFound = true;
176
+ // pos is inside the next cookie, so back up and return it.
177
+ pos = nextStart;
178
+ cookiesStrings.push(cookiesString.substring(start, lastComma));
179
+ start = pos;
180
+ } else {
181
+ // in param ',' or param separator ';',
182
+ // we continue from that comma
183
+ pos = lastComma + 1;
184
+ }
185
+ } else {
186
+ pos += 1;
187
+ }
188
+ }
189
+
190
+ if (!cookiesSeparatorFound || pos >= cookiesString.length) {
191
+ cookiesStrings.push(cookiesString.substring(start, cookiesString.length));
192
+ }
193
+ }
194
+
195
+ return cookiesStrings;
196
+ }
197
+
198
+ var setCookie = parse;
199
+ var parse_1 = parse;
200
+ var parseString_1 = parseString;
201
+ var splitCookiesString_1 = splitCookiesString;
202
+ setCookie.parse = parse_1;
203
+ setCookie.parseString = parseString_1;
204
+ setCookie.splitCookiesString = splitCookiesString_1;
205
+
206
+ var dist = createCommonjsModule(function (module, exports) {
207
+ var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
208
+ __assign = Object.assign || function(t) {
209
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
210
+ s = arguments[i];
211
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
212
+ t[p] = s[p];
213
+ }
214
+ return t;
215
+ };
216
+ return __assign.apply(this, arguments);
217
+ };
218
+ Object.defineProperty(exports, "__esModule", { value: true });
219
+ exports.destroyCookie = exports.setCookie = exports.parseCookies = void 0;
220
+
221
+
222
+ var isBrowser = function () { return typeof window !== 'undefined'; };
223
+ function hasSameProperties(a, b) {
224
+ var aProps = Object.getOwnPropertyNames(a);
225
+ var bProps = Object.getOwnPropertyNames(b);
226
+ if (aProps.length !== bProps.length) {
227
+ return false;
228
+ }
229
+ for (var i = 0; i < aProps.length; i++) {
230
+ var propName = aProps[i];
231
+ if (a[propName] !== b[propName]) {
232
+ return false;
233
+ }
234
+ }
235
+ return true;
236
+ }
237
+ /**
238
+ * Compare the cookie and return true if the cookies has equivalent
239
+ * options and the cookies would be overwritten in the browser storage.
240
+ *
241
+ * @param a first Cookie for comparison
242
+ * @param b second Cookie for comparison
243
+ */
244
+ function areCookiesEqual(a, b) {
245
+ var sameSiteSame = a.sameSite === b.sameSite;
246
+ if (typeof a.sameSite === 'string' && typeof b.sameSite === 'string') {
247
+ sameSiteSame = a.sameSite.toLowerCase() === b.sameSite.toLowerCase();
248
+ }
249
+ return (hasSameProperties(__assign(__assign({}, a), { sameSite: undefined }), __assign(__assign({}, b), { sameSite: undefined })) && sameSiteSame);
250
+ }
251
+ /**
252
+ * Create an instance of the Cookie interface
253
+ *
254
+ * @param name name of the Cookie
255
+ * @param value value of the Cookie
256
+ * @param options Cookie options
257
+ */
258
+ function createCookie(name, value, options) {
259
+ var sameSite = options.sameSite;
260
+ if (sameSite === true) {
261
+ sameSite = 'strict';
262
+ }
263
+ if (sameSite === undefined || sameSite === false) {
264
+ sameSite = 'lax';
265
+ }
266
+ var cookieToSet = __assign(__assign({}, options), { sameSite: sameSite });
267
+ delete cookieToSet.encode;
268
+ return __assign({ name: name, value: value }, cookieToSet);
269
+ }
270
+ /**
271
+ *
272
+ * Parses cookies.
273
+ *
274
+ * @param ctx
275
+ * @param options
276
+ */
277
+ function parseCookies(ctx, options) {
278
+ if (ctx && ctx.req && ctx.req.headers && ctx.req.headers.cookie) {
279
+ return cookie.parse(ctx.req.headers.cookie, options);
280
+ }
281
+ if (isBrowser()) {
282
+ return cookie.parse(document.cookie, options);
283
+ }
284
+ return {};
285
+ }
286
+ exports.parseCookies = parseCookies;
287
+ /**
288
+ *
289
+ * Sets a cookie.
290
+ *
291
+ * @param ctx
292
+ * @param name
293
+ * @param value
294
+ * @param options
295
+ */
296
+ function setCookie$1(ctx, name, value, options) {
297
+ if (ctx && ctx.res && ctx.res.getHeader && ctx.res.setHeader) {
298
+ var cookies = ctx.res.getHeader('Set-Cookie') || [];
299
+ if (typeof cookies === 'string')
300
+ cookies = [cookies];
301
+ if (typeof cookies === 'number')
302
+ cookies = [];
303
+ var parsedCookies = setCookie.parse(cookies);
304
+ var cookiesToSet_1 = [];
305
+ parsedCookies.forEach(function (parsedCookie) {
306
+ if (!areCookiesEqual(parsedCookie, createCookie(name, value, options))) {
307
+ cookiesToSet_1.push(cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({ encode: function (val) { return val; } }, parsedCookie)));
308
+ }
309
+ });
310
+ cookiesToSet_1.push(cookie.serialize(name, value, options));
311
+ if (!ctx.res.finished) {
312
+ ctx.res.setHeader('Set-Cookie', cookiesToSet_1);
313
+ }
314
+ }
315
+ if (isBrowser()) {
316
+ if (options && options.httpOnly) {
317
+ throw new Error('Can not set a httpOnly cookie in the browser.');
318
+ }
319
+ document.cookie = cookie.serialize(name, value, options);
320
+ }
321
+ return {};
322
+ }
323
+ exports.setCookie = setCookie$1;
324
+ /**
325
+ *
326
+ * Destroys a cookie with a particular name.
327
+ *
328
+ * @param ctx
329
+ * @param name
330
+ * @param options
331
+ */
332
+ function destroyCookie(ctx, name, options) {
333
+ var opts = __assign(__assign({}, (options || {})), { maxAge: -1 });
334
+ if (ctx && ctx.res && ctx.res.setHeader && ctx.res.getHeader) {
335
+ var cookies = ctx.res.getHeader('Set-Cookie') || [];
336
+ if (typeof cookies === 'string')
337
+ cookies = [cookies];
338
+ if (typeof cookies === 'number')
339
+ cookies = [];
340
+ cookies.push(cookie.serialize(name, '', opts));
341
+ ctx.res.setHeader('Set-Cookie', cookies);
342
+ }
343
+ if (isBrowser()) {
344
+ document.cookie = cookie.serialize(name, '', opts);
345
+ }
346
+ return {};
347
+ }
348
+ exports.destroyCookie = destroyCookie;
349
+ exports.default = {
350
+ set: setCookie$1,
351
+ get: parseCookies,
352
+ destroy: destroyCookie,
353
+ };
354
+
355
+ });
356
+
357
+ unwrapExports(dist);
358
+ var dist_1 = dist.destroyCookie;
359
+ var dist_2 = dist.setCookie;
360
+ var dist_3 = dist.parseCookies;
361
+
13
362
  var _this = undefined;
14
363
 
15
364
  var getRelatedArticle = function () {
@@ -69,13 +418,13 @@ var getRelatedArticle = function () {
69
418
  conditions = '';
70
419
 
71
420
  if (ctx && url) {
72
- cookies = parseCookies(ctx);
421
+ cookies = dist_3(ctx);
73
422
  prevSlugs = cookies['prevSlugs'];
74
423
 
75
424
  if (!!prevSlugs) {
76
- setCookie(ctx, 'prevSlugs', prevSlugs + ',"' + url + '"', {});
425
+ dist_2(ctx, 'prevSlugs', prevSlugs + ',"' + url + '"', {});
77
426
  conditions = '&& !(url.current in [' + prevSlugs + '])';
78
- } else setCookie(ctx, 'prevSlugs', '"' + url + '"', {});
427
+ } else dist_2(ctx, 'prevSlugs', '"' + url + '"', {});
79
428
  }
80
429
  relatedArticleQuery = getQuery('related', conditions, '', articleCount);
81
430
  _context.next = 12;
@@ -14,18 +14,18 @@ import './web.dom.iterable-8956f9a5.js';
14
14
  import './typeof-08f2c380.js';
15
15
  import './_is-array-49698029.js';
16
16
  import 'react';
17
- import './index-93ec3c59.js';
17
+ import './index-3f4dd6f2.js';
18
18
  import 'prop-types';
19
19
  import 'react-bootstrap/Row';
20
20
  import 'react-bootstrap/Col';
21
- import './moment-12415288.js';
21
+ import './moment-e2f9b20c.js';
22
22
  import 'next/router';
23
23
  import './isSymbol-807e927e.js';
24
24
  import './debounce-1a993acf.js';
25
25
  import 'react-dom';
26
- import './index-51a80699.js';
26
+ import './index-3849e3fe.js';
27
27
  import './index-5f9f807a.js';
28
- import './main-0465b2a0.js';
28
+ import './main-5d1e4bd3.js';
29
29
  import './entities-7cc3bf45.js';
30
30
  import './stringify-008c8802.js';
31
31
  import './slicedToArray-7021e5df.js';
@@ -33,12 +33,12 @@ import './asyncToGenerator-7c654f36.js';
33
33
  import './_set-species-cede29f8.js';
34
34
  import './beam-681a9749.js';
35
35
  import './AdSlot.js';
36
- import './BlockContent-a614acdf.js';
36
+ import './BlockContent-c409aca5.js';
37
37
  import './smoothscroll-4b699764.js';
38
38
  import './GroupDeck.js';
39
39
  import 'react-bootstrap';
40
40
  import 'react-bootstrap/Button';
41
- export { g as default } from './index-3a33f7d6.js';
41
+ export { g as default } from './index-26c19b64.js';
42
42
  import './util-7700fc59.js';
43
43
  import './brightcove-react-player-loader.es-83f53e4e.js';
44
44
  import 'react-bootstrap/Pagination';
@@ -4,20 +4,20 @@ import { _ as _extends } from './extends-cc5da797.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-7ee3e0c1.js';
5
5
  import { _ as _typeof$1 } from './typeof-08f2c380.js';
6
6
  import React__default, { useState, useEffect, useRef, useCallback } from 'react';
7
- import { l as lib_3 } from './index-93ec3c59.js';
7
+ import { l as lib_3 } from './index-3f4dd6f2.js';
8
8
  import PropTypes from 'prop-types';
9
9
  import Row from 'react-bootstrap/Row';
10
10
  import Col from 'react-bootstrap/Col';
11
- import { m as moment } from './moment-12415288.js';
11
+ import { m as moment } from './moment-e2f9b20c.js';
12
12
  import Router, { useRouter } from 'next/router';
13
- import { i as imageUrlBuilder } from './index-51a80699.js';
13
+ import { i as imageUrlBuilder } from './index-3849e3fe.js';
14
14
  import { L as LazyLoad } from './index-5f9f807a.js';
15
- import { b as main_16, c as main_38, m as main_39 } from './main-0465b2a0.js';
15
+ import { b as main_16, c as main_35, m as main_36 } from './main-5d1e4bd3.js';
16
16
  import { h as html_decode_1 } from './entities-7cc3bf45.js';
17
17
  import { _ as _slicedToArray } from './slicedToArray-7021e5df.js';
18
18
  import { B as Beam, S as Segment } from './beam-681a9749.js';
19
19
  import DFPAdSlot from './AdSlot.js';
20
- import { B as BlockContent } from './BlockContent-a614acdf.js';
20
+ import { B as BlockContent } from './BlockContent-c409aca5.js';
21
21
  import { g as getYoutubeId } from './smoothscroll-4b699764.js';
22
22
  import GroupDeck from './GroupDeck.js';
23
23
  import { Carousel, Table, Figure as Figure$1, Button, ProgressBar, Card, Row as Row$1, Col as Col$1 } from 'react-bootstrap';
@@ -7497,7 +7497,7 @@ var Poll = function Poll(_ref) {
7497
7497
  );
7498
7498
  };
7499
7499
 
7500
- var numberOfPaginations = main_38 ? 4 : 10;
7500
+ var numberOfPaginations = main_35 ? 4 : 10;
7501
7501
 
7502
7502
  var Quiz = function Quiz(_ref) {
7503
7503
  var quizzes = _ref.quizzes,
@@ -7610,7 +7610,7 @@ var Quiz = function Quiz(_ref) {
7610
7610
  var renderPagination = function renderPagination() {
7611
7611
  return React__default.createElement(
7612
7612
  Pagination,
7613
- { className: 'p-0 m-0', size: main_38 && 'sm' },
7613
+ { className: 'p-0 m-0', size: main_35 && 'sm' },
7614
7614
  React__default.createElement(Pagination.First, { onClick: function onClick() {
7615
7615
  return changePage('first');
7616
7616
  }, disabled: currentPage === 1 }),
@@ -8030,7 +8030,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8030
8030
  var refArray = useRef([]);
8031
8031
  var adRefArray = useRef([]);
8032
8032
 
8033
- var _ref2 = main_39 ? useState(100) : useState(-25),
8033
+ var _ref2 = main_36 ? useState(100) : useState(-25),
8034
8034
  _ref3 = _slicedToArray(_ref2, 2),
8035
8035
  NavoffsetTop = _ref3[0],
8036
8036
  setNavoffsetTop = _ref3[1];
@@ -8108,7 +8108,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8108
8108
 
8109
8109
  useEffect(function () {
8110
8110
  try {
8111
- if (main_39) {
8111
+ if (main_36) {
8112
8112
  setNavoffsetTop(document.getElementById('navbar-ham').offsetHeight - 15);
8113
8113
  }
8114
8114
  } catch (e) {}
@@ -8188,7 +8188,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8188
8188
 
8189
8189
  useEffect(function () {
8190
8190
  if (!firstLoad) {
8191
- if (main_39) {
8191
+ if (main_36) {
8192
8192
  grabLoadedAds();
8193
8193
  } else {
8194
8194
  scrollToArticle();
@@ -8212,7 +8212,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8212
8212
  //const activeArticle = path
8213
8213
  //let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
8214
8214
 
8215
- if (!main_39) {
8215
+ if (!main_36) {
8216
8216
  lib_3.getGoogletag().then(function (googletag) {
8217
8217
  if (window.googletag && googletag.pubadsReady) {
8218
8218
  lib_3.refresh();
@@ -8220,7 +8220,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8220
8220
  });
8221
8221
  }
8222
8222
  //Refresh leaderboard ad on mobile
8223
- if (main_39) {
8223
+ if (main_36) {
8224
8224
  var leaderboardSlotId = '';
8225
8225
  lib_3.getGoogletag().then(function (googletag) {
8226
8226
  if (window.googletag && googletag.pubadsReady) {
@@ -8252,7 +8252,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8252
8252
  React__default.createElement(
8253
8253
  'div',
8254
8254
  { className: 'ad-box', style: { textAlign: 'center' } },
8255
- main_39 && Ads.map(function (ad, index) {
8255
+ main_36 && Ads.map(function (ad, index) {
8256
8256
  if (index === 0) {
8257
8257
  return React__default.createElement(
8258
8258
  'div',
@@ -8350,7 +8350,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8350
8350
  React__default.createElement(
8351
8351
  'div',
8352
8352
  { className: 'ad-box', style: { textAlign: 'center' } },
8353
- main_39 && nodes.articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
8353
+ main_36 && nodes.articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
8354
8354
  if (innerIndex === 0) {
8355
8355
  return React__default.createElement(
8356
8356
  'div',
@@ -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 || this.options.baseUrl;
396
+ var baseUrl = 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
- // Alias for url()
524
+ // Synonym for url()
525
525
  ImageUrlBuilder.prototype.toString = function () {
526
526
  return this.url();
527
527
  };
@@ -821,13 +821,15 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
821
821
  });
822
822
 
823
823
  if (_this5.lazyLoadIsEnabled()) {
824
+ var args = [];
825
+
824
826
  var config = _this5.getLazyLoadConfig();
825
827
 
826
- if (config) {
827
- pubadsService.enableLazyLoad(config);
828
- } else {
829
- pubadsService.enableLazyLoad();
828
+ if (config !== null) {
829
+ args.push(config);
830
830
  }
831
+
832
+ pubadsService.enableLazyLoad.call(args);
831
833
  }
832
834
 
833
835
  if (_this5.singleRequestIsEnabled()) {