@mjhls/mjh-framework 1.0.588-hamMagazine-v4 → 1.0.589

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/AccordionPanel.js +1 -1
  13. package/dist/cjs/AdSlot.js +2 -2
  14. package/dist/cjs/AdSlotsProvider.js +1 -1
  15. package/dist/cjs/ArticleQueue.js +10 -10
  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 +7 -7
  22. package/dist/cjs/DeckQueue.js +6 -6
  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 +6 -6
  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 +25 -208
  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 +9 -9
  39. package/dist/cjs/NavMagazine.js +6 -5
  40. package/dist/cjs/NavNative.js +5 -4
  41. package/dist/cjs/OncliveHero.js +2 -2
  42. package/dist/cjs/OncliveLargeHero.js +2 -2
  43. package/dist/cjs/PartnerDetailListing.js +13 -1209
  44. package/dist/cjs/PublicationDeck.js +2 -2
  45. package/dist/cjs/QueueDeckExpanded.js +10 -10
  46. package/dist/cjs/RelatedContent.js +2 -2
  47. package/dist/cjs/{index.esm-d1259b34.js → SocialNavFooter-9a07520f.js} +0 -8
  48. package/dist/cjs/TaxonomyCard.js +2 -2
  49. package/dist/cjs/TemplateNormal.js +5 -4
  50. package/dist/cjs/ThumbnailCard.js +1 -1
  51. package/dist/cjs/Ustream.js +3 -3
  52. package/dist/cjs/VerticalHero.js +2 -2
  53. package/dist/cjs/VideoSeriesFilter.js +1 -1
  54. package/dist/cjs/VideoSeriesListing.js +5 -5
  55. package/dist/cjs/View.js +14 -14
  56. package/dist/cjs/YahooHero.js +2 -2
  57. package/dist/cjs/YoutubeGroup.js +1 -1
  58. package/dist/cjs/getQuery.js +1 -1
  59. package/dist/cjs/getRelatedArticle.js +6 -355
  60. package/dist/cjs/getSerializers.js +21 -10
  61. package/dist/cjs/{index-3294d3bc.js → index-5be2866f.js} +1 -1
  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.esm-0e5c6a9e.js +11 -0
  66. package/dist/cjs/{index.esm-876ca9ff.js → index.esm-fbd1f7e9.js} +5 -0
  67. package/dist/cjs/index.js +17 -15
  68. package/dist/cjs/{lodash-7fd85bcf.js → lodash-fc2922d0.js} +22 -71
  69. package/dist/cjs/{main-88348b15.js → main-bc4db521.js} +66 -35
  70. package/dist/cjs/{moment-575fe24c.js → moment-66a6a284.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/AccordionPanel.js +1 -1
  83. package/dist/esm/AdSlot.js +2 -2
  84. package/dist/esm/AdSlotsProvider.js +1 -1
  85. package/dist/esm/ArticleQueue.js +10 -10
  86. package/dist/esm/Auth.js +501 -250
  87. package/dist/esm/{BlockContent-c409aca5.js → BlockContent-a614acdf.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-81a052c2.js → Dfp-ae9336e2.js} +1 -1
  94. package/dist/esm/EventsDeck.js +5 -5
  95. package/dist/esm/ExternalResources.js +6 -6
  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 +24 -207
  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 +5 -4
  110. package/dist/esm/NavNative.js +4 -3
  111. package/dist/esm/OncliveHero.js +2 -2
  112. package/dist/esm/OncliveLargeHero.js +2 -2
  113. package/dist/esm/PartnerDetailListing.js +13 -1209
  114. package/dist/esm/PublicationDeck.js +2 -2
  115. package/dist/esm/QueueDeckExpanded.js +10 -10
  116. package/dist/esm/RelatedContent.js +2 -2
  117. package/dist/esm/{index.esm-73e847d2.js → SocialNavFooter-4fb16720.js} +1 -8
  118. package/dist/esm/TaxonomyCard.js +2 -2
  119. package/dist/esm/TemplateNormal.js +5 -4
  120. package/dist/esm/ThumbnailCard.js +1 -1
  121. package/dist/esm/Ustream.js +3 -3
  122. package/dist/esm/VerticalHero.js +2 -2
  123. package/dist/esm/VideoSeriesFilter.js +1 -1
  124. package/dist/esm/VideoSeriesListing.js +5 -5
  125. package/dist/esm/View.js +14 -14
  126. package/dist/esm/YahooHero.js +2 -2
  127. package/dist/esm/YoutubeGroup.js +1 -1
  128. package/dist/esm/getQuery.js +1 -1
  129. package/dist/esm/getRelatedArticle.js +6 -355
  130. package/dist/esm/getSerializers.js +21 -10
  131. package/dist/esm/{index-3849e3fe.js → index-51a80699.js} +18 -18
  132. package/dist/esm/{index-3f4dd6f2.js → index-93ec3c59.js} +4 -6
  133. package/dist/esm/{index-ef6d5dcf.js → index-d2f90501.js} +1 -1
  134. package/dist/esm/{index.es-29c1cef5.js → index.es-938a3a58.js} +3 -1
  135. package/dist/esm/index.esm-16536e81.js +9 -0
  136. package/dist/esm/{index.esm-85cb09e6.js → index.esm-4b1d94b7.js} +5 -1
  137. package/dist/esm/index.js +16 -14
  138. package/dist/esm/{lodash-ec8c6b48.js → lodash-17fdfebb.js} +22 -71
  139. package/dist/esm/{main-d7ee6151.js → main-7255814e.js} +65 -34
  140. package/dist/esm/{moment-e2f9b20c.js → moment-12415288.js} +1 -1
  141. package/dist/esm/urlFor.js +1 -1
  142. package/package.json +3 -3
  143. package/dist/cjs/index-bd6c9f56.js +0 -211
  144. package/dist/esm/index-db3bb315.js +0 -207
  145. /package/dist/cjs/{ADInfeed-df340285.js → ADInfeed-17a378db.js} +0 -0
  146. /package/dist/cjs/{ADlgInfeed-2110d08c.js → ADlgInfeed-070d911c.js} +0 -0
  147. /package/dist/esm/{ADInfeed-db7610fb.js → ADInfeed-c7dba95f.js} +0 -0
  148. /package/dist/esm/{ADlgInfeed-4bb11153.js → ADlgInfeed-8bfd6d58.js} +0 -0
@@ -1,366 +1,17 @@
1
1
  'use strict';
2
2
 
3
- var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
3
+ 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');
7
7
  require('./_iter-detect-4d0352f8.js');
8
8
  require('./web.dom.iterable-43c3e277.js');
9
- require('./moment-575fe24c.js');
9
+ require('./moment-66a6a284.js');
10
10
  var asyncToGenerator = require('./asyncToGenerator-8e707718.js');
11
11
  require('./_set-species-4458e975.js');
12
- var index$4 = require('./index-bd6c9f56.js');
12
+ var nookies = require('nookies');
13
13
  var getQuery = require('./getQuery.js');
14
14
 
15
- var defaultParseOptions = {
16
- decodeValues: true,
17
- map: false,
18
- silent: false,
19
- };
20
-
21
- function isNonEmptyString(str) {
22
- return typeof str === "string" && !!str.trim();
23
- }
24
-
25
- function parseString(setCookieValue, options) {
26
- var parts = setCookieValue.split(";").filter(isNonEmptyString);
27
- var nameValue = parts.shift().split("=");
28
- var name = nameValue.shift();
29
- var value = nameValue.join("="); // everything after the first =, joined by a "=" if there was more than one part
30
-
31
- options = options
32
- ? Object.assign({}, defaultParseOptions, options)
33
- : defaultParseOptions;
34
-
35
- var cookie = {
36
- name: name, // grab everything before the first =
37
- value: options.decodeValues ? decodeURIComponent(value) : value, // decode cookie value
38
- };
39
-
40
- parts.forEach(function (part) {
41
- var sides = part.split("=");
42
- var key = sides.shift().trimLeft().toLowerCase();
43
- var value = sides.join("=");
44
- if (key === "expires") {
45
- cookie.expires = new Date(value);
46
- } else if (key === "max-age") {
47
- cookie.maxAge = parseInt(value, 10);
48
- } else if (key === "secure") {
49
- cookie.secure = true;
50
- } else if (key === "httponly") {
51
- cookie.httpOnly = true;
52
- } else if (key === "samesite") {
53
- cookie.sameSite = value;
54
- } else {
55
- cookie[key] = value;
56
- }
57
- });
58
-
59
- return cookie;
60
- }
61
-
62
- function parse(input, options) {
63
- options = options
64
- ? Object.assign({}, defaultParseOptions, options)
65
- : defaultParseOptions;
66
-
67
- if (!input) {
68
- if (!options.map) {
69
- return [];
70
- } else {
71
- return {};
72
- }
73
- }
74
-
75
- if (input.headers && input.headers["set-cookie"]) {
76
- // fast-path for node.js (which automatically normalizes header names to lower-case
77
- input = input.headers["set-cookie"];
78
- } else if (input.headers) {
79
- // slow-path for other environments - see #25
80
- var sch =
81
- input.headers[
82
- Object.keys(input.headers).find(function (key) {
83
- return key.toLowerCase() === "set-cookie";
84
- })
85
- ];
86
- // warn if called on a request-like object with a cookie header rather than a set-cookie header - see #34, 36
87
- if (!sch && input.headers.cookie && !options.silent) {
88
- console.warn(
89
- "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."
90
- );
91
- }
92
- input = sch;
93
- }
94
- if (!Array.isArray(input)) {
95
- input = [input];
96
- }
97
-
98
- options = options
99
- ? Object.assign({}, defaultParseOptions, options)
100
- : defaultParseOptions;
101
-
102
- if (!options.map) {
103
- return input.filter(isNonEmptyString).map(function (str) {
104
- return parseString(str, options);
105
- });
106
- } else {
107
- var cookies = {};
108
- return input.filter(isNonEmptyString).reduce(function (cookies, str) {
109
- var cookie = parseString(str, options);
110
- cookies[cookie.name] = cookie;
111
- return cookies;
112
- }, cookies);
113
- }
114
- }
115
-
116
- /*
117
- Set-Cookie header field-values are sometimes comma joined in one string. This splits them without choking on commas
118
- that are within a single set-cookie field-value, such as in the Expires portion.
119
-
120
- This is uncommon, but explicitly allowed - see https://tools.ietf.org/html/rfc2616#section-4.2
121
- Node.js does this for every header *except* set-cookie - see https://github.com/nodejs/node/blob/d5e363b77ebaf1caf67cd7528224b651c86815c1/lib/_http_incoming.js#L128
122
- React Native's fetch does this for *every* header, including set-cookie.
123
-
124
- Based on: https://github.com/google/j2objc/commit/16820fdbc8f76ca0c33472810ce0cb03d20efe25
125
- Credits to: https://github.com/tomball for original and https://github.com/chrusart for JavaScript implementation
126
- */
127
- function splitCookiesString(cookiesString) {
128
- if (Array.isArray(cookiesString)) {
129
- return cookiesString;
130
- }
131
- if (typeof cookiesString !== "string") {
132
- return [];
133
- }
134
-
135
- var cookiesStrings = [];
136
- var pos = 0;
137
- var start;
138
- var ch;
139
- var lastComma;
140
- var nextStart;
141
- var cookiesSeparatorFound;
142
-
143
- function skipWhitespace() {
144
- while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) {
145
- pos += 1;
146
- }
147
- return pos < cookiesString.length;
148
- }
149
-
150
- function notSpecialChar() {
151
- ch = cookiesString.charAt(pos);
152
-
153
- return ch !== "=" && ch !== ";" && ch !== ",";
154
- }
155
-
156
- while (pos < cookiesString.length) {
157
- start = pos;
158
- cookiesSeparatorFound = false;
159
-
160
- while (skipWhitespace()) {
161
- ch = cookiesString.charAt(pos);
162
- if (ch === ",") {
163
- // ',' is a cookie separator if we have later first '=', not ';' or ','
164
- lastComma = pos;
165
- pos += 1;
166
-
167
- skipWhitespace();
168
- nextStart = pos;
169
-
170
- while (pos < cookiesString.length && notSpecialChar()) {
171
- pos += 1;
172
- }
173
-
174
- // currently special character
175
- if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
176
- // we found cookies separator
177
- cookiesSeparatorFound = true;
178
- // pos is inside the next cookie, so back up and return it.
179
- pos = nextStart;
180
- cookiesStrings.push(cookiesString.substring(start, lastComma));
181
- start = pos;
182
- } else {
183
- // in param ',' or param separator ';',
184
- // we continue from that comma
185
- pos = lastComma + 1;
186
- }
187
- } else {
188
- pos += 1;
189
- }
190
- }
191
-
192
- if (!cookiesSeparatorFound || pos >= cookiesString.length) {
193
- cookiesStrings.push(cookiesString.substring(start, cookiesString.length));
194
- }
195
- }
196
-
197
- return cookiesStrings;
198
- }
199
-
200
- var setCookie = parse;
201
- var parse_1 = parse;
202
- var parseString_1 = parseString;
203
- var splitCookiesString_1 = splitCookiesString;
204
- setCookie.parse = parse_1;
205
- setCookie.parseString = parseString_1;
206
- setCookie.splitCookiesString = splitCookiesString_1;
207
-
208
- var dist = _commonjsHelpers.createCommonjsModule(function (module, exports) {
209
- var __assign = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.__assign) || function () {
210
- __assign = Object.assign || function(t) {
211
- for (var s, i = 1, n = arguments.length; i < n; i++) {
212
- s = arguments[i];
213
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
214
- t[p] = s[p];
215
- }
216
- return t;
217
- };
218
- return __assign.apply(this, arguments);
219
- };
220
- Object.defineProperty(exports, "__esModule", { value: true });
221
- exports.destroyCookie = exports.setCookie = exports.parseCookies = void 0;
222
-
223
-
224
- var isBrowser = function () { return typeof window !== 'undefined'; };
225
- function hasSameProperties(a, b) {
226
- var aProps = Object.getOwnPropertyNames(a);
227
- var bProps = Object.getOwnPropertyNames(b);
228
- if (aProps.length !== bProps.length) {
229
- return false;
230
- }
231
- for (var i = 0; i < aProps.length; i++) {
232
- var propName = aProps[i];
233
- if (a[propName] !== b[propName]) {
234
- return false;
235
- }
236
- }
237
- return true;
238
- }
239
- /**
240
- * Compare the cookie and return true if the cookies has equivalent
241
- * options and the cookies would be overwritten in the browser storage.
242
- *
243
- * @param a first Cookie for comparison
244
- * @param b second Cookie for comparison
245
- */
246
- function areCookiesEqual(a, b) {
247
- var sameSiteSame = a.sameSite === b.sameSite;
248
- if (typeof a.sameSite === 'string' && typeof b.sameSite === 'string') {
249
- sameSiteSame = a.sameSite.toLowerCase() === b.sameSite.toLowerCase();
250
- }
251
- return (hasSameProperties(__assign(__assign({}, a), { sameSite: undefined }), __assign(__assign({}, b), { sameSite: undefined })) && sameSiteSame);
252
- }
253
- /**
254
- * Create an instance of the Cookie interface
255
- *
256
- * @param name name of the Cookie
257
- * @param value value of the Cookie
258
- * @param options Cookie options
259
- */
260
- function createCookie(name, value, options) {
261
- var sameSite = options.sameSite;
262
- if (sameSite === true) {
263
- sameSite = 'strict';
264
- }
265
- if (sameSite === undefined || sameSite === false) {
266
- sameSite = 'lax';
267
- }
268
- var cookieToSet = __assign(__assign({}, options), { sameSite: sameSite });
269
- delete cookieToSet.encode;
270
- return __assign({ name: name, value: value }, cookieToSet);
271
- }
272
- /**
273
- *
274
- * Parses cookies.
275
- *
276
- * @param ctx
277
- * @param options
278
- */
279
- function parseCookies(ctx, options) {
280
- if (ctx && ctx.req && ctx.req.headers && ctx.req.headers.cookie) {
281
- return index$4.cookie.parse(ctx.req.headers.cookie, options);
282
- }
283
- if (isBrowser()) {
284
- return index$4.cookie.parse(document.cookie, options);
285
- }
286
- return {};
287
- }
288
- exports.parseCookies = parseCookies;
289
- /**
290
- *
291
- * Sets a cookie.
292
- *
293
- * @param ctx
294
- * @param name
295
- * @param value
296
- * @param options
297
- */
298
- function setCookie$1(ctx, name, value, options) {
299
- if (ctx && ctx.res && ctx.res.getHeader && ctx.res.setHeader) {
300
- var cookies = ctx.res.getHeader('Set-Cookie') || [];
301
- if (typeof cookies === 'string')
302
- cookies = [cookies];
303
- if (typeof cookies === 'number')
304
- cookies = [];
305
- var parsedCookies = setCookie.parse(cookies);
306
- var cookiesToSet_1 = [];
307
- parsedCookies.forEach(function (parsedCookie) {
308
- if (!areCookiesEqual(parsedCookie, createCookie(name, value, options))) {
309
- cookiesToSet_1.push(index$4.cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({ encode: function (val) { return val; } }, parsedCookie)));
310
- }
311
- });
312
- cookiesToSet_1.push(index$4.cookie.serialize(name, value, options));
313
- if (!ctx.res.finished) {
314
- ctx.res.setHeader('Set-Cookie', cookiesToSet_1);
315
- }
316
- }
317
- if (isBrowser()) {
318
- if (options && options.httpOnly) {
319
- throw new Error('Can not set a httpOnly cookie in the browser.');
320
- }
321
- document.cookie = index$4.cookie.serialize(name, value, options);
322
- }
323
- return {};
324
- }
325
- exports.setCookie = setCookie$1;
326
- /**
327
- *
328
- * Destroys a cookie with a particular name.
329
- *
330
- * @param ctx
331
- * @param name
332
- * @param options
333
- */
334
- function destroyCookie(ctx, name, options) {
335
- var opts = __assign(__assign({}, (options || {})), { maxAge: -1 });
336
- if (ctx && ctx.res && ctx.res.setHeader && ctx.res.getHeader) {
337
- var cookies = ctx.res.getHeader('Set-Cookie') || [];
338
- if (typeof cookies === 'string')
339
- cookies = [cookies];
340
- if (typeof cookies === 'number')
341
- cookies = [];
342
- cookies.push(index$4.cookie.serialize(name, '', opts));
343
- ctx.res.setHeader('Set-Cookie', cookies);
344
- }
345
- if (isBrowser()) {
346
- document.cookie = index$4.cookie.serialize(name, '', opts);
347
- }
348
- return {};
349
- }
350
- exports.destroyCookie = destroyCookie;
351
- exports.default = {
352
- set: setCookie$1,
353
- get: parseCookies,
354
- destroy: destroyCookie,
355
- };
356
-
357
- });
358
-
359
- _commonjsHelpers.unwrapExports(dist);
360
- var dist_1 = dist.destroyCookie;
361
- var dist_2 = dist.setCookie;
362
- var dist_3 = dist.parseCookies;
363
-
364
15
  var _this = undefined;
365
16
 
366
17
  var getRelatedArticle = function () {
@@ -413,13 +64,13 @@ var getRelatedArticle = function () {
413
64
  conditions = '';
414
65
 
415
66
  if (ctx && url) {
416
- cookies = dist_3(ctx);
67
+ cookies = nookies.parseCookies(ctx);
417
68
  prevSlugs = cookies['prevSlugs'];
418
69
 
419
70
  if (!!prevSlugs) {
420
- dist_2(ctx, 'prevSlugs', prevSlugs + ',"' + url + '"', {});
71
+ nookies.setCookie(ctx, 'prevSlugs', prevSlugs + ',"' + url + '"', {});
421
72
  conditions = '&& !(url.current in [' + prevSlugs + '])';
422
- } else dist_2(ctx, 'prevSlugs', '"' + url + '"', {});
73
+ } else nookies.setCookie(ctx, 'prevSlugs', '"' + url + '"', {});
423
74
  }
424
75
 
425
76
  relatedArticleQuery = getQuery('related', conditions);
@@ -15,7 +15,7 @@ require('./typeof-1869832c.js');
15
15
  require('./_is-array-754e012d.js');
16
16
  var React = require('react');
17
17
  var React__default = _interopDefault(React);
18
- var index = require('./index-fa3cec70.js');
18
+ var index = require('./index-f7ee1612.js');
19
19
  var PropTypes = _interopDefault(require('prop-types'));
20
20
  var Row = _interopDefault(require('react-bootstrap/Row'));
21
21
  var Col = _interopDefault(require('react-bootstrap/Col'));
@@ -24,9 +24,9 @@ var Router__default = _interopDefault(Router);
24
24
  require('./isSymbol-488934a7.js');
25
25
  require('./debounce-32e57002.js');
26
26
  require('react-dom');
27
- var index$1 = require('./index-39beccb3.js');
27
+ var index$1 = require('./index-b5eb3ff8.js');
28
28
  var index$2 = require('./index-fa0fb52c.js');
29
- var main = require('./main-88348b15.js');
29
+ var main = require('./main-bc4db521.js');
30
30
  var entities = require('./entities-310b46ee.js');
31
31
  var slicedToArray = require('./slicedToArray-8063ee51.js');
32
32
  require('./stringify-7c5aff47.js');
@@ -34,7 +34,7 @@ require('./asyncToGenerator-8e707718.js');
34
34
  require('./_set-species-4458e975.js');
35
35
  var Segment = require('./beam-d22818d3.js');
36
36
  var AdSlot = require('./AdSlot.js');
37
- var BlockContent = require('./BlockContent-c2168db0.js');
37
+ var BlockContent = require('./BlockContent-f942392e.js');
38
38
  var smoothscroll = require('./smoothscroll-95231a70.js');
39
39
  var GroupDeck = require('./GroupDeck.js');
40
40
  var reactBootstrap = require('react-bootstrap');
@@ -2195,6 +2195,20 @@ var Video = function Video(_ref) {
2195
2195
  playlistID = node.playlistID,
2196
2196
  experienceID = node.experienceID;
2197
2197
 
2198
+ var _useState = React.useState(false),
2199
+ _useState2 = slicedToArray._slicedToArray(_useState, 2),
2200
+ videoLoaded = _useState2[0],
2201
+ setVideoLoaded = _useState2[1];
2202
+
2203
+ React.useEffect(function () {
2204
+ if (!videoLoaded && experienceID) {
2205
+ //To load Experience Player JS
2206
+ var experiencePlayerScript = document.createElement('script');
2207
+ experiencePlayerScript.src = 'https://players.brightcove.net/' + accountIDs.brightcove.accountId + '/experience_' + experienceID + '/live.js';
2208
+ document.body.appendChild(experiencePlayerScript);
2209
+ setVideoLoaded(true);
2210
+ }
2211
+ }, []);
2198
2212
  var onVideoSuccess = function onVideoSuccess(success) {
2199
2213
  //console.log('success:', success.ref)
2200
2214
  var player = success.ref;
@@ -2328,10 +2342,7 @@ var Video = function Video(_ref) {
2328
2342
  return React__default.createElement(
2329
2343
  'div',
2330
2344
  { className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
2331
- React__default.createElement('div', {
2332
- dangerouslySetInnerHTML: {
2333
- __html: '<div data-experience=' + experienceID + '></div>\n <script src="https://players.brightcove.net/' + accountIDs.brightcove.accountId + '/experience_' + experienceID + '/live.js" async></script>'
2334
- } })
2345
+ videoLoaded && React__default.createElement('div', { 'data-experience': experienceID })
2335
2346
  );
2336
2347
  }
2337
2348
  return null;
@@ -7482,7 +7493,7 @@ var Poll = function Poll(_ref) {
7482
7493
  );
7483
7494
  };
7484
7495
 
7485
- var numberOfPaginations = main.main_35 ? 4 : 10;
7496
+ var numberOfPaginations = main.main_38 ? 4 : 10;
7486
7497
 
7487
7498
  var Quiz = function Quiz(_ref) {
7488
7499
  var quizzes = _ref.quizzes,
@@ -7595,7 +7606,7 @@ var Quiz = function Quiz(_ref) {
7595
7606
  var renderPagination = function renderPagination() {
7596
7607
  return React__default.createElement(
7597
7608
  Pagination,
7598
- { className: 'p-0 m-0', size: main.main_35 && 'sm' },
7609
+ { className: 'p-0 m-0', size: main.main_38 && 'sm' },
7599
7610
  React__default.createElement(Pagination.First, { onClick: function onClick() {
7600
7611
  return changePage('first');
7601
7612
  }, disabled: currentPage === 1 }),
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
4
- var moment = require('./moment-575fe24c.js');
4
+ var moment = require('./moment-66a6a284.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 || '';
398
+ var baseUrl = options.baseUrl || this.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
- // Synonym for url()
526
+ // Alias for url()
527
527
  ImageUrlBuilder.prototype.toString = function () {
528
528
  return this.url();
529
529
  };
@@ -826,15 +826,13 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
826
826
  });
827
827
 
828
828
  if (_this5.lazyLoadIsEnabled()) {
829
- var args = [];
830
-
831
829
  var config = _this5.getLazyLoadConfig();
832
830
 
833
- if (config !== null) {
834
- args.push(config);
831
+ if (config) {
832
+ pubadsService.enableLazyLoad(config);
833
+ } else {
834
+ pubadsService.enableLazyLoad();
835
835
  }
836
-
837
- pubadsService.enableLazyLoad.call(args);
838
836
  }
839
837
 
840
838
  if (_this5.singleRequestIsEnabled()) {
@@ -268,6 +268,9 @@ var InfiniteScroll = /** @class */ (function (_super) {
268
268
  _this.dragging = false;
269
269
  if (_this.state.pullToRefreshThresholdBreached) {
270
270
  _this.props.refreshFunction && _this.props.refreshFunction();
271
+ _this.setState({
272
+ pullToRefreshThresholdBreached: false,
273
+ });
271
274
  }
272
275
  requestAnimationFrame(function () {
273
276
  // this._infScroll
@@ -374,7 +377,6 @@ var InfiniteScroll = /** @class */ (function (_super) {
374
377
  // update state when new data was sent in
375
378
  this.setState({
376
379
  showLoader: false,
377
- pullToRefreshThresholdBreached: false,
378
380
  });
379
381
  };
380
382
  InfiniteScroll.prototype.isElementAtBottom = function (target, scrollThreshold) {
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var iconBase = require('./iconBase-68959171.js');
4
+
5
+ // THIS FILE IS AUTO GENERATED
6
+ var GoSearch = function (props) {
7
+ return iconBase.GenIcon({"tag":"svg","attr":{"viewBox":"0 0 16 16"},"child":[{"tag":"path","attr":{"fillRule":"evenodd","d":"M15.7 13.3l-3.81-3.83A5.93 5.93 0 0 0 13 6c0-3.31-2.69-6-6-6S1 2.69 1 6s2.69 6 6 6c1.3 0 2.48-.41 3.47-1.11l3.83 3.81c.19.2.45.3.7.3.25 0 .52-.09.7-.3a.996.996 0 0 0 0-1.41v.01zM7 10.7c-2.59 0-4.7-2.11-4.7-4.7 0-2.59 2.11-4.7 4.7-4.7 2.59 0 4.7 2.11 4.7 4.7 0 2.59-2.11 4.7-4.7 4.7z"}}]})(props);
8
+ };
9
+ GoSearch.displayName = "GoSearch";
10
+
11
+ exports.GoSearch = GoSearch;
@@ -7,6 +7,10 @@ var IoIosArrowForward = function (props) {
7
7
  return iconBase.GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M294.1 256L167 129c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.3 34 0L345 239c9.1 9.1 9.3 23.7.7 33.1L201.1 417c-4.7 4.7-10.9 7-17 7s-12.3-2.3-17-7c-9.4-9.4-9.4-24.6 0-33.9l127-127.1z"}}]})(props);
8
8
  };
9
9
  IoIosArrowForward.displayName = "IoIosArrowForward";
10
+ var IoIosHome = function (props) {
11
+ return iconBase.GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M258.5 104.1c-1.5-1.2-3.5-1.2-5 0l-156 124.8c-.9.8-1.5 1.9-1.5 3.1v230c0 1.1.9 2 2 2h108c1.1 0 2-.9 2-2V322c0-1.1.9-2 2-2h92c1.1 0 2 .9 2 2v140c0 1.1.9 2 2 2h108c1.1 0 2-.9 2-2V232c0-1.2-.6-2.4-1.5-3.1l-156-124.8z"}},{"tag":"path","attr":{"d":"M458.7 204.2l-189-151.4C265.9 49.7 261 48 256 48s-9.9 1.7-13.7 4.8L160 119.7V77.5c0-1.1-.9-2-2-2H98c-1.1 0-2 .9-2 2v92.2l-42.7 35.1c-3.1 2.5-5.1 6.2-5.3 10.2-.2 4 1.3 7.9 4.1 10.7 2.6 2.6 6.1 4.1 9.9 4.1 3.2 0 6.3-1.1 8.8-3.1l183.9-148c.5-.4.9-.4 1.3-.4s.8.1 1.3.4l183.9 147.4c2.5 2 5.6 3.1 8.8 3.1 3.7 0 7.2-1.4 9.9-4.1 2.9-2.8 4.4-6.7 4.2-10.7-.3-4-2.2-7.7-5.4-10.2z"}}]})(props);
12
+ };
13
+ IoIosHome.displayName = "IoIosHome";
10
14
  var IoIosOpen = function (props) {
11
15
  return iconBase.GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M227.8 300.2c-5.1-5.1-5.1-13.3 0-18.4l133.7-133.7c-5.3-2.6-11.2-4.1-17.5-4.1H88c-22 0-40 18-40 40v224c0 22 18 40 40 40h256c22 0 40-18 40-40V184c0-6.3-1.5-12.2-4.1-17.5L246.2 300.2c-5.1 5.1-13.3 5.1-18.4 0z"}},{"tag":"path","attr":{"d":"M459.5 68.5C457 66 453 64 449 64h-97c-7.2-.1-13.1 5.7-13.1 12.9-.1 7.2 5.7 13.1 12.9 13.1l67.3.5-57.6 57.6c8 3.9 14.5 10.4 18.4 18.4l57.6-57.6.5 67.3c.1 7.2 5.9 13 13.1 12.9 7.2-.1 13-5.9 12.9-13.1V78c0-3.5-2-7-4.5-9.5z"}}]})(props);
12
16
  };
@@ -21,6 +25,7 @@ var IoMdLogIn = function (props) {
21
25
  IoMdLogIn.displayName = "IoMdLogIn";
22
26
 
23
27
  exports.IoIosArrowForward = IoIosArrowForward;
28
+ exports.IoIosHome = IoIosHome;
24
29
  exports.IoIosOpen = IoIosOpen;
25
30
  exports.IoMdArrowDropdown = IoMdArrowDropdown;
26
31
  exports.IoMdLogIn = IoMdLogIn;