@mjhls/mjh-framework 1.0.625 → 1.0.626-iOS-chrome-fix

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