@mjhls/mjh-framework 1.0.859-d4d-374 → 1.0.859-segment-targeting-v1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AD300x250.js +2 -2
  3. package/dist/cjs/AD300x250x600.js +2 -2
  4. package/dist/cjs/AD728x90.js +3 -3
  5. package/dist/cjs/ADFloatingFooter.js +1 -1
  6. package/dist/cjs/ADGutter.js +1 -1
  7. package/dist/cjs/ADSkyscraper.js +1 -1
  8. package/dist/cjs/ADSponsoredResources.js +1 -1
  9. package/dist/cjs/ADWebcast.js +1 -1
  10. package/dist/cjs/ADWelcome.js +1 -1
  11. package/dist/cjs/AdSlot.js +1 -1
  12. package/dist/cjs/AdSlotsProvider.js +2 -2
  13. package/dist/cjs/AlgoliaSearch.js +18 -36
  14. package/dist/cjs/ArticleCarousel.js +1 -1
  15. package/dist/cjs/ArticleProgramLandingPage.js +5 -5
  16. package/dist/cjs/ArticleSeriesLandingPage.js +5 -5
  17. package/dist/cjs/ArticleSeriesListing.js +3 -3
  18. package/dist/cjs/Auth.js +41 -6
  19. package/dist/cjs/AuthWrapper.js +228 -189
  20. package/dist/cjs/CMEDeck.js +3 -3
  21. package/dist/cjs/Column3.js +3 -3
  22. package/dist/cjs/ConferenceArticleCard.js +16 -16
  23. package/dist/cjs/DeckContent.js +13 -13
  24. package/dist/cjs/DeckQueue.js +4 -4
  25. package/dist/cjs/EventsDeck.js +21 -21
  26. package/dist/cjs/ExternalResources.js +5 -5
  27. package/dist/cjs/Feature.js +2 -2
  28. package/dist/cjs/ForbesHero.js +1 -1
  29. package/dist/cjs/GridContent.js +8 -8
  30. package/dist/cjs/GridHero.js +1 -1
  31. package/dist/cjs/HamMagazine.js +15 -15
  32. package/dist/cjs/HighlightenVideo.js +1 -1
  33. package/dist/cjs/HorizontalArticleListing.js +4 -4
  34. package/dist/cjs/HorizontalHero.js +1 -1
  35. package/dist/cjs/IssueContentDeck.js +1 -1
  36. package/dist/cjs/IssueDeck.js +1 -1
  37. package/dist/cjs/IssueLanding.js +36 -36
  38. package/dist/cjs/KMTracker.js +15 -15
  39. package/dist/cjs/LeftNav.js +1 -1
  40. package/dist/cjs/MasterDeck.js +13 -13
  41. package/dist/cjs/MediaSeriesLanding.js +149 -193
  42. package/dist/cjs/NavMagazine.js +14 -14
  43. package/dist/cjs/NavNative.js +12 -12
  44. package/dist/cjs/OncliveHero.js +1 -1
  45. package/dist/cjs/OncliveLargeHero.js +1 -1
  46. package/dist/cjs/PartnerDetailListing.js +7 -7
  47. package/dist/cjs/PubSection.js +5 -5
  48. package/dist/cjs/PublicationLanding.js +26 -26
  49. package/dist/cjs/QueueDeckExpanded.js +7 -7
  50. package/dist/cjs/RelatedContent.js +29 -29
  51. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  52. package/dist/cjs/Segment.js +9 -21
  53. package/dist/cjs/SeriesListingDeck.js +3 -3
  54. package/dist/cjs/{SeriesSlider-d38767ae.js → SeriesSlider-0d3bf265.js} +10 -10
  55. package/dist/cjs/SideFooter.js +2 -2
  56. package/dist/cjs/{SocialSearchComponent-9a9d6f8c.js → SocialSearchComponent-19548e2a.js} +3 -3
  57. package/dist/cjs/TaxonomyDescription.js +4 -4
  58. package/dist/cjs/TemplateNormal.js +2 -2
  59. package/dist/cjs/Ustream.js +2 -2
  60. package/dist/cjs/VerticalHero.js +1 -1
  61. package/dist/cjs/VideoProgramLandingPage.js +5 -5
  62. package/dist/cjs/VideoSeriesCard.js +2 -2
  63. package/dist/cjs/VideoSeriesLandingPage.js +5 -5
  64. package/dist/cjs/VideoSeriesListing.js +3 -3
  65. package/dist/cjs/View.js +24 -18
  66. package/dist/cjs/YahooHero.js +1 -1
  67. package/dist/cjs/YoutubeGroup.js +10 -10
  68. package/dist/cjs/{brightcove-react-player-loader.es-4ba0d3d5.js → brightcove-react-player-loader.es-5c98aec7.js} +4 -3
  69. package/dist/cjs/getQuery.js +1 -1
  70. package/dist/cjs/getRelatedArticle.js +62 -126
  71. package/dist/cjs/getSerializers.js +4 -4
  72. package/dist/cjs/{getTargeting-21103688.js → getTargeting-a9a871f0.js} +9 -9
  73. package/dist/cjs/getTargeting.js +1 -1
  74. package/dist/cjs/{index-07e2d5de.js → index-3dabb871.js} +24 -24
  75. package/dist/cjs/{index-5be2866f.js → index-6367b7bf.js} +16 -17
  76. package/dist/cjs/{index-f0677b9d.js → index-e2e62963.js} +0 -10
  77. package/dist/cjs/{index.es-13533f24.js → index.es-f3e47207.js} +20 -4
  78. package/dist/cjs/index.js +12 -12
  79. package/dist/cjs/{main-11ec04d2.js → main-7b5e57b0.js} +32 -28
  80. package/dist/cjs/{moment-66a6a284.js → moment-ca3bd9fb.js} +10 -8
  81. package/dist/cjs/timeDifferenceCalc.js +1 -1
  82. package/dist/esm/AD300x250.js +2 -2
  83. package/dist/esm/AD300x250x600.js +2 -2
  84. package/dist/esm/AD728x90.js +3 -3
  85. package/dist/esm/ADFloatingFooter.js +1 -1
  86. package/dist/esm/ADGutter.js +1 -1
  87. package/dist/esm/ADSkyscraper.js +1 -1
  88. package/dist/esm/ADSponsoredResources.js +1 -1
  89. package/dist/esm/ADWebcast.js +1 -1
  90. package/dist/esm/ADWelcome.js +1 -1
  91. package/dist/esm/AdSlot.js +1 -1
  92. package/dist/esm/AdSlotsProvider.js +2 -2
  93. package/dist/esm/AlgoliaSearch.js +17 -35
  94. package/dist/esm/ArticleCarousel.js +1 -1
  95. package/dist/esm/ArticleProgramLandingPage.js +5 -5
  96. package/dist/esm/ArticleSeriesLandingPage.js +5 -5
  97. package/dist/esm/ArticleSeriesListing.js +3 -3
  98. package/dist/esm/Auth.js +42 -7
  99. package/dist/esm/AuthWrapper.js +228 -189
  100. package/dist/esm/CMEDeck.js +3 -3
  101. package/dist/esm/Column3.js +3 -3
  102. package/dist/esm/ConferenceArticleCard.js +16 -16
  103. package/dist/esm/DeckContent.js +13 -13
  104. package/dist/esm/DeckQueue.js +4 -4
  105. package/dist/esm/EventsDeck.js +21 -21
  106. package/dist/esm/ExternalResources.js +5 -5
  107. package/dist/esm/Feature.js +2 -2
  108. package/dist/esm/ForbesHero.js +1 -1
  109. package/dist/esm/GridContent.js +8 -8
  110. package/dist/esm/GridHero.js +1 -1
  111. package/dist/esm/HamMagazine.js +15 -15
  112. package/dist/esm/HighlightenVideo.js +1 -1
  113. package/dist/esm/HorizontalArticleListing.js +4 -4
  114. package/dist/esm/HorizontalHero.js +1 -1
  115. package/dist/esm/IssueContentDeck.js +1 -1
  116. package/dist/esm/IssueDeck.js +1 -1
  117. package/dist/esm/IssueLanding.js +36 -36
  118. package/dist/esm/KMTracker.js +15 -15
  119. package/dist/esm/LeftNav.js +1 -1
  120. package/dist/esm/MasterDeck.js +13 -13
  121. package/dist/esm/MediaSeriesLanding.js +149 -193
  122. package/dist/esm/NavMagazine.js +14 -14
  123. package/dist/esm/NavNative.js +12 -12
  124. package/dist/esm/OncliveHero.js +1 -1
  125. package/dist/esm/OncliveLargeHero.js +1 -1
  126. package/dist/esm/PartnerDetailListing.js +7 -7
  127. package/dist/esm/PubSection.js +5 -5
  128. package/dist/esm/PublicationLanding.js +26 -26
  129. package/dist/esm/QueueDeckExpanded.js +7 -7
  130. package/dist/esm/RelatedContent.js +29 -29
  131. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  132. package/dist/esm/Segment.js +9 -21
  133. package/dist/esm/SeriesListingDeck.js +3 -3
  134. package/dist/esm/{SeriesSlider-b8cc1baa.js → SeriesSlider-7d89f4d9.js} +10 -10
  135. package/dist/esm/SideFooter.js +2 -2
  136. package/dist/esm/{SocialSearchComponent-c54d43cb.js → SocialSearchComponent-47815365.js} +3 -3
  137. package/dist/esm/TaxonomyDescription.js +4 -4
  138. package/dist/esm/TemplateNormal.js +2 -2
  139. package/dist/esm/Ustream.js +2 -2
  140. package/dist/esm/VerticalHero.js +1 -1
  141. package/dist/esm/VideoProgramLandingPage.js +5 -5
  142. package/dist/esm/VideoSeriesCard.js +2 -2
  143. package/dist/esm/VideoSeriesLandingPage.js +5 -5
  144. package/dist/esm/VideoSeriesListing.js +3 -3
  145. package/dist/esm/View.js +24 -18
  146. package/dist/esm/YahooHero.js +1 -1
  147. package/dist/esm/YoutubeGroup.js +10 -10
  148. package/dist/esm/{brightcove-react-player-loader.es-e1c6b0f2.js → brightcove-react-player-loader.es-4abff0b1.js} +4 -3
  149. package/dist/esm/getQuery.js +1 -1
  150. package/dist/esm/getRelatedArticle.js +62 -126
  151. package/dist/esm/getSerializers.js +4 -4
  152. package/dist/esm/{getTargeting-88d69971.js → getTargeting-bd800589.js} +9 -9
  153. package/dist/esm/getTargeting.js +1 -1
  154. package/dist/esm/{index-b68072f5.js → index-aaa2dae0.js} +1 -10
  155. package/dist/esm/{index-d2f90501.js → index-c00b0bbb.js} +16 -17
  156. package/dist/esm/{index-207958e3.js → index-d0e37a10.js} +24 -24
  157. package/dist/esm/{index.es-7dda2f0a.js → index.es-c6222053.js} +20 -4
  158. package/dist/esm/index.js +12 -12
  159. package/dist/esm/{main-aef58dbc.js → main-747e7d25.js} +32 -28
  160. package/dist/esm/{moment-12415288.js → moment-b6f49411.js} +10 -8
  161. package/dist/esm/timeDifferenceCalc.js +1 -1
  162. package/package.json +110 -110
  163. /package/dist/cjs/{ADInfeed-799275aa.js → ADInfeed-33bd0660.js} +0 -0
  164. /package/dist/cjs/{ADlgInfeed-591d014e.js → ADlgInfeed-199c5de0.js} +0 -0
  165. /package/dist/esm/{ADInfeed-4b8902ae.js → ADInfeed-b488e4ab.js} +0 -0
  166. /package/dist/esm/{ADlgInfeed-5193b48f.js → ADlgInfeed-5bd2f01a.js} +0 -0
@@ -31,20 +31,9 @@ function parseString(setCookieValue, options) {
31
31
  ? Object.assign({}, defaultParseOptions, options)
32
32
  : defaultParseOptions;
33
33
 
34
- try {
35
- value = options.decodeValues ? decodeURIComponent(value) : value; // decode cookie value
36
- } catch (e) {
37
- console.error(
38
- "set-cookie-parser encountered an error while decoding a cookie with value '" +
39
- value +
40
- "'. Set options.decodeValues to false to disable this feature.",
41
- e
42
- );
43
- }
44
-
45
34
  var cookie = {
46
35
  name: name, // grab everything before the first =
47
- value: value,
36
+ value: options.decodeValues ? decodeURIComponent(value) : value, // decode cookie value
48
37
  };
49
38
 
50
39
  parts.forEach(function (part) {
@@ -215,7 +204,7 @@ setCookie.parse = parse_1;
215
204
  setCookie.parseString = parseString_1;
216
205
  setCookie.splitCookiesString = splitCookiesString_1;
217
206
 
218
- var utils = _commonjsHelpers.createCommonjsModule(function (module, exports) {
207
+ var dist = _commonjsHelpers.createCommonjsModule(function (module, exports) {
219
208
  var __assign = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.__assign) || function () {
220
209
  __assign = Object.assign || function(t) {
221
210
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -228,33 +217,10 @@ var __assign = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlob
228
217
  return __assign.apply(this, arguments);
229
218
  };
230
219
  Object.defineProperty(exports, "__esModule", { value: true });
231
- exports.areCookiesEqual = exports.hasSameProperties = exports.createCookie = exports.isBrowser = void 0;
232
- /**
233
- * Tells whether we are in a browser or server.
234
- */
235
- function isBrowser() {
236
- return typeof window !== 'undefined';
237
- }
238
- exports.isBrowser = isBrowser;
239
- /**
240
- * Create an instance of the Cookie interface
241
- */
242
- function createCookie(name, value, options) {
243
- var sameSite = options.sameSite;
244
- if (sameSite === true) {
245
- sameSite = 'strict';
246
- }
247
- if (sameSite === undefined || sameSite === false) {
248
- sameSite = 'lax';
249
- }
250
- var cookieToSet = __assign(__assign({}, options), { sameSite: sameSite });
251
- delete cookieToSet.encode;
252
- return __assign({ name: name, value: value }, cookieToSet);
253
- }
254
- exports.createCookie = createCookie;
255
- /**
256
- * Tells whether given objects have the same properties.
257
- */
220
+ exports.destroyCookie = exports.setCookie = exports.parseCookies = void 0;
221
+
222
+
223
+ var isBrowser = function () { return typeof window !== 'undefined'; };
258
224
  function hasSameProperties(a, b) {
259
225
  var aProps = Object.getOwnPropertyNames(a);
260
226
  var bProps = Object.getOwnPropertyNames(b);
@@ -269,9 +235,8 @@ function hasSameProperties(a, b) {
269
235
  }
270
236
  return true;
271
237
  }
272
- exports.hasSameProperties = hasSameProperties;
273
238
  /**
274
- * Compare the cookie and return true if the cookies have equivalent
239
+ * Compare the cookie and return true if the cookies has equivalent
275
240
  * options and the cookies would be overwritten in the browser storage.
276
241
  *
277
242
  * @param a first Cookie for comparison
@@ -284,109 +249,71 @@ function areCookiesEqual(a, b) {
284
249
  }
285
250
  return (hasSameProperties(__assign(__assign({}, a), { sameSite: undefined }), __assign(__assign({}, b), { sameSite: undefined })) && sameSiteSame);
286
251
  }
287
- exports.areCookiesEqual = areCookiesEqual;
288
- /* Functions */
289
-
290
- });
291
-
292
- _commonjsHelpers.unwrapExports(utils);
293
- var utils_1 = utils.areCookiesEqual;
294
- var utils_2 = utils.hasSameProperties;
295
- var utils_3 = utils.createCookie;
296
- var utils_4 = utils.isBrowser;
297
-
298
- var dist = _commonjsHelpers.createCommonjsModule(function (module, exports) {
299
- var __assign = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.__assign) || function () {
300
- __assign = Object.assign || function(t) {
301
- for (var s, i = 1, n = arguments.length; i < n; i++) {
302
- s = arguments[i];
303
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
304
- t[p] = s[p];
305
- }
306
- return t;
307
- };
308
- return __assign.apply(this, arguments);
309
- };
310
- Object.defineProperty(exports, "__esModule", { value: true });
311
- exports.destroyCookie = exports.setCookie = exports.parseCookies = void 0;
312
-
313
-
314
-
315
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
+ *
316
273
  * Parses cookies.
317
274
  *
318
- * @param ctx NextJS page or API context, express context, null or undefined.
319
- * @param options Options that we pass down to `cookie` library.
275
+ * @param ctx
276
+ * @param options
320
277
  */
321
278
  function parseCookies(ctx, options) {
322
- var _a, _b;
323
- if ((_b = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.req) === null || _a === void 0 ? void 0 : _a.headers) === null || _b === void 0 ? void 0 : _b.cookie) {
279
+ if (ctx && ctx.req && ctx.req.headers && ctx.req.headers.cookie) {
324
280
  return index.cookie.parse(ctx.req.headers.cookie, options);
325
281
  }
326
- if (utils.isBrowser()) {
282
+ if (isBrowser()) {
327
283
  return index.cookie.parse(document.cookie, options);
328
284
  }
329
285
  return {};
330
286
  }
331
287
  exports.parseCookies = parseCookies;
332
288
  /**
289
+ *
333
290
  * Sets a cookie.
334
291
  *
335
- * @param ctx NextJS page or API context, express context, null or undefined.
336
- * @param name The name of your cookie.
337
- * @param value The value of your cookie.
338
- * @param options Options that we pass down to `cookie` library.
292
+ * @param ctx
293
+ * @param name
294
+ * @param value
295
+ * @param options
339
296
  */
340
297
  function setCookie$1(ctx, name, value, options) {
341
- var _a, _b;
342
- if (options === void 0) { options = {}; }
343
- // SSR
344
- if (((_a = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _a === void 0 ? void 0 : _a.getHeader) && ctx.res.setHeader) {
345
- // Check if response has finished and warn about it.
346
- if ((_b = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _b === void 0 ? void 0 : _b.finished) {
347
- console.warn("Not setting \"" + name + "\" cookie. Response has finished.");
348
- console.warn("You should set cookie before res.send()");
349
- return {};
350
- }
351
- /**
352
- * Load existing cookies from the header and parse them.
353
- */
298
+ if (ctx && ctx.res && ctx.res.getHeader && ctx.res.setHeader) {
354
299
  var cookies = ctx.res.getHeader('Set-Cookie') || [];
355
300
  if (typeof cookies === 'string')
356
301
  cookies = [cookies];
357
302
  if (typeof cookies === 'number')
358
303
  cookies = [];
359
- /**
360
- * Parse cookies but ignore values - we've already encoded
361
- * them in the previous call.
362
- */
363
- var parsedCookies = setCookie.parse(cookies, {
364
- decodeValues: false,
365
- });
366
- /**
367
- * We create the new cookie and make sure that none of
368
- * the existing cookies match it.
369
- */
370
- var newCookie_1 = utils.createCookie(name, value, options);
304
+ var parsedCookies = setCookie.parse(cookies);
371
305
  var cookiesToSet_1 = [];
372
306
  parsedCookies.forEach(function (parsedCookie) {
373
- if (!utils.areCookiesEqual(parsedCookie, newCookie_1)) {
374
- /**
375
- * We serialize the cookie back to the original format
376
- * if it isn't the same as the new one.
377
- */
378
- var serializedCookie = index.cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({
379
- // we prevent reencoding by default, but you might override it
380
- encode: function (val) { return val; } }, parsedCookie));
381
- cookiesToSet_1.push(serializedCookie);
307
+ if (!areCookiesEqual(parsedCookie, createCookie(name, value, options))) {
308
+ cookiesToSet_1.push(index.cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({ encode: function (val) { return val; } }, parsedCookie)));
382
309
  }
383
310
  });
384
311
  cookiesToSet_1.push(index.cookie.serialize(name, value, options));
385
- // Update the header.
386
- ctx.res.setHeader('Set-Cookie', cookiesToSet_1);
312
+ if (!ctx.res.finished) {
313
+ ctx.res.setHeader('Set-Cookie', cookiesToSet_1);
314
+ }
387
315
  }
388
- // Browser
389
- if (utils.isBrowser()) {
316
+ if (isBrowser()) {
390
317
  if (options && options.httpOnly) {
391
318
  throw new Error('Can not set a httpOnly cookie in the browser.');
392
319
  }
@@ -396,21 +323,30 @@ function setCookie$1(ctx, name, value, options) {
396
323
  }
397
324
  exports.setCookie = setCookie$1;
398
325
  /**
326
+ *
399
327
  * Destroys a cookie with a particular name.
400
328
  *
401
- * @param ctx NextJS page or API context, express context, null or undefined.
402
- * @param name Cookie name.
403
- * @param options Options that we pass down to `cookie` library.
329
+ * @param ctx
330
+ * @param name
331
+ * @param options
404
332
  */
405
333
  function destroyCookie(ctx, name, options) {
406
- /**
407
- * We forward the request destroy to setCookie function
408
- * as it is the same function with modified maxAge value.
409
- */
410
- return setCookie$1(ctx, name, '', __assign(__assign({}, (options || {})), { maxAge: -1 }));
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.cookie.serialize(name, '', opts));
342
+ ctx.res.setHeader('Set-Cookie', cookies);
343
+ }
344
+ if (isBrowser()) {
345
+ document.cookie = index.cookie.serialize(name, '', opts);
346
+ }
347
+ return {};
411
348
  }
412
349
  exports.destroyCookie = destroyCookie;
413
- /* Utility Exports */
414
350
  exports.default = {
415
351
  set: setCookie$1,
416
352
  get: parseCookies,
@@ -21,7 +21,7 @@ require('./index-2cf30c83.js');
21
21
  require('prop-types');
22
22
  require('react-bootstrap/Row');
23
23
  require('react-bootstrap/Col');
24
- require('./moment-66a6a284.js');
24
+ require('./moment-ca3bd9fb.js');
25
25
  require('next/router');
26
26
  require('./isSymbol-04666465.js');
27
27
  require('./debounce-529c8d06.js');
@@ -30,7 +30,7 @@ require('react-dom');
30
30
  require('./index-b5eb3ff8.js');
31
31
  require('./urlFor.js');
32
32
  require('./index-9d365128.js');
33
- require('./main-11ec04d2.js');
33
+ require('./main-7b5e57b0.js');
34
34
  require('./entities-310b46ee.js');
35
35
  require('./slicedToArray-8f385299.js');
36
36
  require('./stringify-7c5aff47.js');
@@ -46,9 +46,9 @@ require('./GroupDeck.js');
46
46
  require('react-bootstrap');
47
47
  require('./iconBase-68959171.js');
48
48
  require('./index.esm-974f47d9.js');
49
- var getSerializers = require('./index-07e2d5de.js');
49
+ var getSerializers = require('./index-3dabb871.js');
50
50
  require('./util-f2c1b65b.js');
51
- require('./brightcove-react-player-loader.es-4ba0d3d5.js');
51
+ require('./brightcove-react-player-loader.es-5c98aec7.js');
52
52
  require('next/head');
53
53
  require('react-share');
54
54
  require('./SocialShare.js');
@@ -4,18 +4,18 @@ var toConsumableArray = require('./toConsumableArray-9a3476fe.js');
4
4
  var _extends = require('./extends-0a918631.js');
5
5
 
6
6
  var getContentPlacementUrl = function getContentPlacementUrl(cp) {
7
- var cp_url = '';
8
- if (cp.ancestor && typeof cp.ancestor == 'string') {
9
- cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
10
- }
7
+ var cp_url = '';
8
+ if (cp.ancestor && typeof cp.ancestor == 'string') {
9
+ cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
10
+ }
11
11
 
12
- if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
13
- cp_url += (cp_url === '' ? '' : '/') + cp.parent;
14
- }
12
+ if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
13
+ cp_url += (cp_url === '' ? '' : '/') + cp.parent;
14
+ }
15
15
 
16
- cp_url += (cp_url === '' ? '' : '/') + (cp.adTargetingURL ? adTargetingURL : cp.path);
16
+ cp_url += (cp_url === '' ? '' : '/') + (cp.adTargetingURL ? adTargetingURL : cp.path);
17
17
 
18
- return cp_url;
18
+ return cp_url;
19
19
  };
20
20
 
21
21
  var getTargeting = function getTargeting(props) {
@@ -8,7 +8,7 @@ require('./toConsumableArray-9a3476fe.js');
8
8
  require('./core.get-iterator-method-f62321d4.js');
9
9
  require('./_object-pie-68c5bcbc.js');
10
10
  require('./extends-0a918631.js');
11
- var getTargeting = require('./getTargeting-21103688.js');
11
+ var getTargeting = require('./getTargeting-a9a871f0.js');
12
12
 
13
13
 
14
14
 
@@ -11,11 +11,11 @@ var index = require('./index-2cf30c83.js');
11
11
  var PropTypes = require('prop-types');
12
12
  var Row = require('react-bootstrap/Row');
13
13
  var Col = require('react-bootstrap/Col');
14
- var moment = require('./moment-66a6a284.js');
14
+ var moment = require('./moment-ca3bd9fb.js');
15
15
  var Router = require('next/router');
16
16
  var urlFor = require('./urlFor.js');
17
17
  var index$2 = require('./index-9d365128.js');
18
- var main = require('./main-11ec04d2.js');
18
+ var main = require('./main-7b5e57b0.js');
19
19
  var entities = require('./entities-310b46ee.js');
20
20
  var slicedToArray = require('./slicedToArray-8f385299.js');
21
21
  var Segment = require('./Segment.js');
@@ -28,7 +28,7 @@ var GroupDeck = require('./GroupDeck.js');
28
28
  var reactBootstrap = require('react-bootstrap');
29
29
  var index_esm = require('./index.esm-974f47d9.js');
30
30
  var util = require('./util-f2c1b65b.js');
31
- var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-4ba0d3d5.js');
31
+ var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-5c98aec7.js');
32
32
  var Head = require('next/head');
33
33
  var SocialShare = require('./SocialShare.js');
34
34
  var _objectToArray = require('./_object-to-array-5762f850.js');
@@ -1638,11 +1638,11 @@ function shouldUpdateVideo(prevProps, props) {
1638
1638
 
1639
1639
  function filterResetOptions(opts) {
1640
1640
  return _objectSpread(_objectSpread({}, opts), {}, {
1641
- playerVars: _objectSpread(_objectSpread({}, opts.playerVars), {}, {
1641
+ playerVars: _objectSpread({
1642
1642
  autoplay: 0,
1643
1643
  start: 0,
1644
1644
  end: 0
1645
- })
1645
+ }, opts.playerVars)
1646
1646
  });
1647
1647
  }
1648
1648
  /**
@@ -7839,7 +7839,7 @@ var Poll$1 = function Poll(_ref) {
7839
7839
  );
7840
7840
  };
7841
7841
 
7842
- var numberOfPaginations = main.main_38 ? 4 : 10;
7842
+ var numberOfPaginations = main.main_39 ? 4 : 10;
7843
7843
 
7844
7844
  var Quiz = function Quiz(_ref) {
7845
7845
  var quizzes = _ref.quizzes,
@@ -7959,7 +7959,7 @@ var Quiz = function Quiz(_ref) {
7959
7959
  var renderPagination = function renderPagination() {
7960
7960
  return React__default['default'].createElement(
7961
7961
  Pagination__default['default'],
7962
- { className: 'p-0 m-0', size: main.main_38 && 'sm' },
7962
+ { className: 'p-0 m-0', size: main.main_39 && 'sm' },
7963
7963
  React__default['default'].createElement(Pagination__default['default'].First, { onClick: function onClick() {
7964
7964
  return changePage('first');
7965
7965
  }, disabled: currentPage === 1 }),
@@ -8661,7 +8661,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8661
8661
  //console.log('useLayoutEffect')
8662
8662
  if (!firstLoad) {
8663
8663
  setUpArrowClicked(false);
8664
- if (main.main_39) {
8664
+ if (main.main_40) {
8665
8665
  grabLoadedAds();
8666
8666
  } else {
8667
8667
  scrollToArticle();
@@ -8685,7 +8685,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8685
8685
  //let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
8686
8686
  if (pageview) pageview(path);
8687
8687
 
8688
- if (!main.main_39) {
8688
+ if (!main.main_40) {
8689
8689
  index.lib_3.getGoogletag().then(function (googletag) {
8690
8690
  if (window.googletag && googletag.pubadsReady) {
8691
8691
  index.lib_3.refresh();
@@ -8693,7 +8693,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8693
8693
  });
8694
8694
  }
8695
8695
  //Refresh leaderboard ad on mobile
8696
- if (main.main_39) {
8696
+ if (main.main_40) {
8697
8697
  var leaderboardSlotId = '';
8698
8698
  index.lib_3.getGoogletag().then(function (googletag) {
8699
8699
  if (window.googletag && googletag.pubadsReady) {
@@ -8762,7 +8762,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8762
8762
  React__default['default'].createElement(
8763
8763
  'div',
8764
8764
  { className: 'ad-box', style: { textAlign: 'center' } },
8765
- main.main_39 && Ads.map(function (ad, index) {
8765
+ main.main_40 && Ads.map(function (ad, index) {
8766
8766
  if (index === 0) {
8767
8767
  return React__default['default'].createElement(
8768
8768
  'div',
@@ -8884,7 +8884,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8884
8884
  React__default['default'].createElement(
8885
8885
  'div',
8886
8886
  { className: 'ad-box', style: { textAlign: 'center' } },
8887
- main.main_39 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
8887
+ main.main_40 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
8888
8888
  if (innerIndex === 0) {
8889
8889
  return React__default['default'].createElement(
8890
8890
  'div',
@@ -9053,20 +9053,20 @@ var FigureComponent = function FigureComponent(props) {
9053
9053
  handleClickFigure = _ref3.handleClickFigure;
9054
9054
 
9055
9055
  var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
9056
- var triggerAction = main.main_38 ? 'click' : 'hover';
9057
- var placementLocation = main.main_38 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
9056
+ var triggerAction = main.main_39 ? 'click' : 'hover';
9057
+ var placementLocation = main.main_39 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
9058
9058
  return React__default['default'].createElement(
9059
9059
  'picture',
9060
9060
  null,
9061
9061
  React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
9062
9062
  React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
9063
9063
  React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
9064
- main.main_38 && link ? React__default['default'].createElement('img', _extends._extends({
9064
+ main.main_39 && link ? React__default['default'].createElement('img', _extends._extends({
9065
9065
  style: figureImageStyle,
9066
9066
  className: 'figure-image',
9067
9067
  src: urlFor({ source: node, client: client }),
9068
9068
  alt: imgAlt ? imgAlt : 'figure image'
9069
- }, !link && !main.main_38 && {
9069
+ }, !link && !main.main_39 && {
9070
9070
  onClick: function onClick() {
9071
9071
  return handleClickFigure(node, client);
9072
9072
  }
@@ -9078,7 +9078,7 @@ var FigureComponent = function FigureComponent(props) {
9078
9078
  className: 'figure-image',
9079
9079
  src: urlFor({ source: node, client: client }),
9080
9080
  alt: imgAlt ? imgAlt : 'figure image'
9081
- }, !link && !main.main_38 && {
9081
+ }, !link && !main.main_39 && {
9082
9082
  onClick: function onClick() {
9083
9083
  return handleClickFigure(node, client);
9084
9084
  }
@@ -9297,20 +9297,20 @@ var MultiFigure = function MultiFigure(props) {
9297
9297
  link = _ref3.link,
9298
9298
  handleClickFigure = _ref3.handleClickFigure;
9299
9299
 
9300
- var triggerAction = main.main_38 ? 'click' : 'hover';
9301
- var placementLocation = main.main_38 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
9300
+ var triggerAction = main.main_39 ? 'click' : 'hover';
9301
+ var placementLocation = main.main_39 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
9302
9302
  return React__default['default'].createElement(
9303
9303
  'picture',
9304
9304
  null,
9305
9305
  React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
9306
9306
  React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
9307
9307
  React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
9308
- main.main_38 && link ? React__default['default'].createElement('img', _extends._extends({
9308
+ main.main_39 && link ? React__default['default'].createElement('img', _extends._extends({
9309
9309
  'images-count': imagesCount,
9310
9310
  className: 'multi-figure-image',
9311
9311
  src: urlFor({ source: image, client: client }),
9312
9312
  alt: imgAlt ? imgAlt : 'multi figure'
9313
- }, !link && !main.main_38 && {
9313
+ }, !link && !main.main_39 && {
9314
9314
  onClick: function onClick() {
9315
9315
  return handleClickFigure(image, client);
9316
9316
  }
@@ -9322,7 +9322,7 @@ var MultiFigure = function MultiFigure(props) {
9322
9322
  className: 'multi-figure-image',
9323
9323
  src: urlFor({ source: image, client: client }),
9324
9324
  alt: imgAlt ? imgAlt : 'multi figure'
9325
- }, !link && !main.main_38 && {
9325
+ }, !link && !main.main_39 && {
9326
9326
  onClick: function onClick() {
9327
9327
  return handleClickFigure(image, client);
9328
9328
  }
@@ -10110,11 +10110,11 @@ var getSerializers = function getSerializers() {
10110
10110
  }
10111
10111
 
10112
10112
  var isExernalUrl = checkUrlIsExternal(href);
10113
- return href ? React__default['default'].createElement(
10113
+ return React__default['default'].createElement(
10114
10114
  'a',
10115
10115
  _extends._extends({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
10116
10116
  children
10117
- ) : children;
10117
+ );
10118
10118
  },
10119
10119
  alignleft: function alignleft(_ref23) {
10120
10120
  var children = _ref23.children;