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

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-5be2866f.js → index-6367b7bf.js} +16 -17
  75. package/dist/cjs/{index-07e2d5de.js → index-84332690.js} +24 -24
  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-207958e3.js → index-95d38271.js} +24 -24
  155. package/dist/esm/{index-b68072f5.js → index-aaa2dae0.js} +1 -10
  156. package/dist/esm/{index-d2f90501.js → index-c00b0bbb.js} +16 -17
  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-87d1627b.js} +0 -0
  164. /package/dist/cjs/{ADlgInfeed-591d014e.js → ADlgInfeed-0070c9c4.js} +0 -0
  165. /package/dist/esm/{ADInfeed-4b8902ae.js → ADInfeed-f7a68557.js} +0 -0
  166. /package/dist/esm/{ADlgInfeed-5193b48f.js → ADlgInfeed-b0a8a43b.js} +0 -0
@@ -29,20 +29,9 @@ function parseString(setCookieValue, options) {
29
29
  ? Object.assign({}, defaultParseOptions, options)
30
30
  : defaultParseOptions;
31
31
 
32
- try {
33
- value = options.decodeValues ? decodeURIComponent(value) : value; // decode cookie value
34
- } catch (e) {
35
- console.error(
36
- "set-cookie-parser encountered an error while decoding a cookie with value '" +
37
- value +
38
- "'. Set options.decodeValues to false to disable this feature.",
39
- e
40
- );
41
- }
42
-
43
32
  var cookie = {
44
33
  name: name, // grab everything before the first =
45
- value: value,
34
+ value: options.decodeValues ? decodeURIComponent(value) : value, // decode cookie value
46
35
  };
47
36
 
48
37
  parts.forEach(function (part) {
@@ -213,7 +202,7 @@ setCookie.parse = parse_1;
213
202
  setCookie.parseString = parseString_1;
214
203
  setCookie.splitCookiesString = splitCookiesString_1;
215
204
 
216
- var utils = createCommonjsModule(function (module, exports) {
205
+ var dist = createCommonjsModule(function (module, exports) {
217
206
  var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
218
207
  __assign = Object.assign || function(t) {
219
208
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -226,33 +215,10 @@ var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
226
215
  return __assign.apply(this, arguments);
227
216
  };
228
217
  Object.defineProperty(exports, "__esModule", { value: true });
229
- exports.areCookiesEqual = exports.hasSameProperties = exports.createCookie = exports.isBrowser = void 0;
230
- /**
231
- * Tells whether we are in a browser or server.
232
- */
233
- function isBrowser() {
234
- return typeof window !== 'undefined';
235
- }
236
- exports.isBrowser = isBrowser;
237
- /**
238
- * Create an instance of the Cookie interface
239
- */
240
- function createCookie(name, value, options) {
241
- var sameSite = options.sameSite;
242
- if (sameSite === true) {
243
- sameSite = 'strict';
244
- }
245
- if (sameSite === undefined || sameSite === false) {
246
- sameSite = 'lax';
247
- }
248
- var cookieToSet = __assign(__assign({}, options), { sameSite: sameSite });
249
- delete cookieToSet.encode;
250
- return __assign({ name: name, value: value }, cookieToSet);
251
- }
252
- exports.createCookie = createCookie;
253
- /**
254
- * Tells whether given objects have the same properties.
255
- */
218
+ exports.destroyCookie = exports.setCookie = exports.parseCookies = void 0;
219
+
220
+
221
+ var isBrowser = function () { return typeof window !== 'undefined'; };
256
222
  function hasSameProperties(a, b) {
257
223
  var aProps = Object.getOwnPropertyNames(a);
258
224
  var bProps = Object.getOwnPropertyNames(b);
@@ -267,9 +233,8 @@ function hasSameProperties(a, b) {
267
233
  }
268
234
  return true;
269
235
  }
270
- exports.hasSameProperties = hasSameProperties;
271
236
  /**
272
- * Compare the cookie and return true if the cookies have equivalent
237
+ * Compare the cookie and return true if the cookies has equivalent
273
238
  * options and the cookies would be overwritten in the browser storage.
274
239
  *
275
240
  * @param a first Cookie for comparison
@@ -282,109 +247,71 @@ function areCookiesEqual(a, b) {
282
247
  }
283
248
  return (hasSameProperties(__assign(__assign({}, a), { sameSite: undefined }), __assign(__assign({}, b), { sameSite: undefined })) && sameSiteSame);
284
249
  }
285
- exports.areCookiesEqual = areCookiesEqual;
286
- /* Functions */
287
-
288
- });
289
-
290
- unwrapExports(utils);
291
- var utils_1 = utils.areCookiesEqual;
292
- var utils_2 = utils.hasSameProperties;
293
- var utils_3 = utils.createCookie;
294
- var utils_4 = utils.isBrowser;
295
-
296
- var dist = createCommonjsModule(function (module, exports) {
297
- var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
298
- __assign = Object.assign || function(t) {
299
- for (var s, i = 1, n = arguments.length; i < n; i++) {
300
- s = arguments[i];
301
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
302
- t[p] = s[p];
303
- }
304
- return t;
305
- };
306
- return __assign.apply(this, arguments);
307
- };
308
- Object.defineProperty(exports, "__esModule", { value: true });
309
- exports.destroyCookie = exports.setCookie = exports.parseCookies = void 0;
310
-
311
-
312
-
313
250
  /**
251
+ * Create an instance of the Cookie interface
252
+ *
253
+ * @param name name of the Cookie
254
+ * @param value value of the Cookie
255
+ * @param options Cookie options
256
+ */
257
+ function createCookie(name, value, options) {
258
+ var sameSite = options.sameSite;
259
+ if (sameSite === true) {
260
+ sameSite = 'strict';
261
+ }
262
+ if (sameSite === undefined || sameSite === false) {
263
+ sameSite = 'lax';
264
+ }
265
+ var cookieToSet = __assign(__assign({}, options), { sameSite: sameSite });
266
+ delete cookieToSet.encode;
267
+ return __assign({ name: name, value: value }, cookieToSet);
268
+ }
269
+ /**
270
+ *
314
271
  * Parses cookies.
315
272
  *
316
- * @param ctx NextJS page or API context, express context, null or undefined.
317
- * @param options Options that we pass down to `cookie` library.
273
+ * @param ctx
274
+ * @param options
318
275
  */
319
276
  function parseCookies(ctx, options) {
320
- var _a, _b;
321
- 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) {
277
+ if (ctx && ctx.req && ctx.req.headers && ctx.req.headers.cookie) {
322
278
  return cookie.parse(ctx.req.headers.cookie, options);
323
279
  }
324
- if (utils.isBrowser()) {
280
+ if (isBrowser()) {
325
281
  return cookie.parse(document.cookie, options);
326
282
  }
327
283
  return {};
328
284
  }
329
285
  exports.parseCookies = parseCookies;
330
286
  /**
287
+ *
331
288
  * Sets a cookie.
332
289
  *
333
- * @param ctx NextJS page or API context, express context, null or undefined.
334
- * @param name The name of your cookie.
335
- * @param value The value of your cookie.
336
- * @param options Options that we pass down to `cookie` library.
290
+ * @param ctx
291
+ * @param name
292
+ * @param value
293
+ * @param options
337
294
  */
338
295
  function setCookie$1(ctx, name, value, options) {
339
- var _a, _b;
340
- if (options === void 0) { options = {}; }
341
- // SSR
342
- if (((_a = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _a === void 0 ? void 0 : _a.getHeader) && ctx.res.setHeader) {
343
- // Check if response has finished and warn about it.
344
- if ((_b = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _b === void 0 ? void 0 : _b.finished) {
345
- console.warn("Not setting \"" + name + "\" cookie. Response has finished.");
346
- console.warn("You should set cookie before res.send()");
347
- return {};
348
- }
349
- /**
350
- * Load existing cookies from the header and parse them.
351
- */
296
+ if (ctx && ctx.res && ctx.res.getHeader && ctx.res.setHeader) {
352
297
  var cookies = ctx.res.getHeader('Set-Cookie') || [];
353
298
  if (typeof cookies === 'string')
354
299
  cookies = [cookies];
355
300
  if (typeof cookies === 'number')
356
301
  cookies = [];
357
- /**
358
- * Parse cookies but ignore values - we've already encoded
359
- * them in the previous call.
360
- */
361
- var parsedCookies = setCookie.parse(cookies, {
362
- decodeValues: false,
363
- });
364
- /**
365
- * We create the new cookie and make sure that none of
366
- * the existing cookies match it.
367
- */
368
- var newCookie_1 = utils.createCookie(name, value, options);
302
+ var parsedCookies = setCookie.parse(cookies);
369
303
  var cookiesToSet_1 = [];
370
304
  parsedCookies.forEach(function (parsedCookie) {
371
- if (!utils.areCookiesEqual(parsedCookie, newCookie_1)) {
372
- /**
373
- * We serialize the cookie back to the original format
374
- * if it isn't the same as the new one.
375
- */
376
- var serializedCookie = cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({
377
- // we prevent reencoding by default, but you might override it
378
- encode: function (val) { return val; } }, parsedCookie));
379
- cookiesToSet_1.push(serializedCookie);
305
+ if (!areCookiesEqual(parsedCookie, createCookie(name, value, options))) {
306
+ cookiesToSet_1.push(cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({ encode: function (val) { return val; } }, parsedCookie)));
380
307
  }
381
308
  });
382
309
  cookiesToSet_1.push(cookie.serialize(name, value, options));
383
- // Update the header.
384
- ctx.res.setHeader('Set-Cookie', cookiesToSet_1);
310
+ if (!ctx.res.finished) {
311
+ ctx.res.setHeader('Set-Cookie', cookiesToSet_1);
312
+ }
385
313
  }
386
- // Browser
387
- if (utils.isBrowser()) {
314
+ if (isBrowser()) {
388
315
  if (options && options.httpOnly) {
389
316
  throw new Error('Can not set a httpOnly cookie in the browser.');
390
317
  }
@@ -394,21 +321,30 @@ function setCookie$1(ctx, name, value, options) {
394
321
  }
395
322
  exports.setCookie = setCookie$1;
396
323
  /**
324
+ *
397
325
  * Destroys a cookie with a particular name.
398
326
  *
399
- * @param ctx NextJS page or API context, express context, null or undefined.
400
- * @param name Cookie name.
401
- * @param options Options that we pass down to `cookie` library.
327
+ * @param ctx
328
+ * @param name
329
+ * @param options
402
330
  */
403
331
  function destroyCookie(ctx, name, options) {
404
- /**
405
- * We forward the request destroy to setCookie function
406
- * as it is the same function with modified maxAge value.
407
- */
408
- return setCookie$1(ctx, name, '', __assign(__assign({}, (options || {})), { maxAge: -1 }));
332
+ var opts = __assign(__assign({}, (options || {})), { maxAge: -1 });
333
+ if (ctx && ctx.res && ctx.res.setHeader && ctx.res.getHeader) {
334
+ var cookies = ctx.res.getHeader('Set-Cookie') || [];
335
+ if (typeof cookies === 'string')
336
+ cookies = [cookies];
337
+ if (typeof cookies === 'number')
338
+ cookies = [];
339
+ cookies.push(cookie.serialize(name, '', opts));
340
+ ctx.res.setHeader('Set-Cookie', cookies);
341
+ }
342
+ if (isBrowser()) {
343
+ document.cookie = cookie.serialize(name, '', opts);
344
+ }
345
+ return {};
409
346
  }
410
347
  exports.destroyCookie = destroyCookie;
411
- /* Utility Exports */
412
348
  exports.default = {
413
349
  set: setCookie$1,
414
350
  get: parseCookies,
@@ -19,7 +19,7 @@ import './index-f7fb1e25.js';
19
19
  import 'prop-types';
20
20
  import 'react-bootstrap/Row';
21
21
  import 'react-bootstrap/Col';
22
- import './moment-12415288.js';
22
+ import './moment-b6f49411.js';
23
23
  import 'next/router';
24
24
  import './isSymbol-1981418f.js';
25
25
  import './debounce-9207d8ee.js';
@@ -28,7 +28,7 @@ import 'react-dom';
28
28
  import './index-51a80699.js';
29
29
  import './urlFor.js';
30
30
  import './index-6c12bdd5.js';
31
- import './main-aef58dbc.js';
31
+ import './main-747e7d25.js';
32
32
  import './entities-7cc3bf45.js';
33
33
  import './slicedToArray-641f241f.js';
34
34
  import './stringify-4330ccdc.js';
@@ -44,9 +44,9 @@ import './GroupDeck.js';
44
44
  import 'react-bootstrap';
45
45
  import './iconBase-602d52fe.js';
46
46
  import './index.esm-3fdda599.js';
47
- export { g as default } from './index-207958e3.js';
47
+ export { g as default } from './index-95d38271.js';
48
48
  import './util-7700fc59.js';
49
- import './brightcove-react-player-loader.es-e1c6b0f2.js';
49
+ import './brightcove-react-player-loader.es-4abff0b1.js';
50
50
  import 'next/head';
51
51
  import 'react-share';
52
52
  import './SocialShare.js';
@@ -2,18 +2,18 @@ import { _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
2
2
  import { _ as _extends } from './extends-6f2fcc99.js';
3
3
 
4
4
  var getContentPlacementUrl = function getContentPlacementUrl(cp) {
5
- var cp_url = '';
6
- if (cp.ancestor && typeof cp.ancestor == 'string') {
7
- cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
8
- }
5
+ var cp_url = '';
6
+ if (cp.ancestor && typeof cp.ancestor == 'string') {
7
+ cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
8
+ }
9
9
 
10
- if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
11
- cp_url += (cp_url === '' ? '' : '/') + cp.parent;
12
- }
10
+ if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
11
+ cp_url += (cp_url === '' ? '' : '/') + cp.parent;
12
+ }
13
13
 
14
- cp_url += (cp_url === '' ? '' : '/') + (cp.adTargetingURL ? adTargetingURL : cp.path);
14
+ cp_url += (cp_url === '' ? '' : '/') + (cp.adTargetingURL ? adTargetingURL : cp.path);
15
15
 
16
- return cp_url;
16
+ return cp_url;
17
17
  };
18
18
 
19
19
  var getTargeting = function getTargeting(props) {
@@ -6,4 +6,4 @@ import './toConsumableArray-43aa614d.js';
6
6
  import './core.get-iterator-method-e1de7503.js';
7
7
  import './_object-pie-33c40e79.js';
8
8
  import './extends-6f2fcc99.js';
9
- export { g as default } from './getTargeting-88d69971.js';
9
+ export { g as default } from './getTargeting-bd800589.js';
@@ -9,11 +9,11 @@ import { l as lib_3 } from './index-f7fb1e25.js';
9
9
  import PropTypes from 'prop-types';
10
10
  import Row$1 from 'react-bootstrap/Row';
11
11
  import Col$1 from 'react-bootstrap/Col';
12
- import { m as moment } from './moment-12415288.js';
12
+ import { m as moment } from './moment-b6f49411.js';
13
13
  import Router, { useRouter } from 'next/router';
14
14
  import urlFor from './urlFor.js';
15
15
  import { L as LazyLoad } from './index-6c12bdd5.js';
16
- import { d as main_16, b as main_38, m as main_39 } from './main-aef58dbc.js';
16
+ import { d as main_16, b as main_39, m as main_40 } from './main-747e7d25.js';
17
17
  import { h as html_decode_1 } from './entities-7cc3bf45.js';
18
18
  import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-641f241f.js';
19
19
  import Segment from './Segment.js';
@@ -26,7 +26,7 @@ import GroupDeck from './GroupDeck.js';
26
26
  import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
27
27
  import { d as IoIosArrowDropupCircle } from './index.esm-3fdda599.js';
28
28
  import { u as util } from './util-7700fc59.js';
29
- import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-e1c6b0f2.js';
29
+ import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-4abff0b1.js';
30
30
  import Head from 'next/head';
31
31
  import SocialShare from './SocialShare.js';
32
32
  import { _ as _objectToArray } from './_object-to-array-7e804fce.js';
@@ -1621,11 +1621,11 @@ function shouldUpdateVideo(prevProps, props) {
1621
1621
 
1622
1622
  function filterResetOptions(opts) {
1623
1623
  return _objectSpread(_objectSpread({}, opts), {}, {
1624
- playerVars: _objectSpread(_objectSpread({}, opts.playerVars), {}, {
1624
+ playerVars: _objectSpread({
1625
1625
  autoplay: 0,
1626
1626
  start: 0,
1627
1627
  end: 0
1628
- })
1628
+ }, opts.playerVars)
1629
1629
  });
1630
1630
  }
1631
1631
  /**
@@ -7822,7 +7822,7 @@ var Poll$1 = function Poll(_ref) {
7822
7822
  );
7823
7823
  };
7824
7824
 
7825
- var numberOfPaginations = main_38 ? 4 : 10;
7825
+ var numberOfPaginations = main_39 ? 4 : 10;
7826
7826
 
7827
7827
  var Quiz = function Quiz(_ref) {
7828
7828
  var quizzes = _ref.quizzes,
@@ -7942,7 +7942,7 @@ var Quiz = function Quiz(_ref) {
7942
7942
  var renderPagination = function renderPagination() {
7943
7943
  return React.createElement(
7944
7944
  Pagination,
7945
- { className: 'p-0 m-0', size: main_38 && 'sm' },
7945
+ { className: 'p-0 m-0', size: main_39 && 'sm' },
7946
7946
  React.createElement(Pagination.First, { onClick: function onClick() {
7947
7947
  return changePage('first');
7948
7948
  }, disabled: currentPage === 1 }),
@@ -8644,7 +8644,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8644
8644
  //console.log('useLayoutEffect')
8645
8645
  if (!firstLoad) {
8646
8646
  setUpArrowClicked(false);
8647
- if (main_39) {
8647
+ if (main_40) {
8648
8648
  grabLoadedAds();
8649
8649
  } else {
8650
8650
  scrollToArticle();
@@ -8668,7 +8668,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8668
8668
  //let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
8669
8669
  if (pageview) pageview(path);
8670
8670
 
8671
- if (!main_39) {
8671
+ if (!main_40) {
8672
8672
  lib_3.getGoogletag().then(function (googletag) {
8673
8673
  if (window.googletag && googletag.pubadsReady) {
8674
8674
  lib_3.refresh();
@@ -8676,7 +8676,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8676
8676
  });
8677
8677
  }
8678
8678
  //Refresh leaderboard ad on mobile
8679
- if (main_39) {
8679
+ if (main_40) {
8680
8680
  var leaderboardSlotId = '';
8681
8681
  lib_3.getGoogletag().then(function (googletag) {
8682
8682
  if (window.googletag && googletag.pubadsReady) {
@@ -8745,7 +8745,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8745
8745
  React.createElement(
8746
8746
  'div',
8747
8747
  { className: 'ad-box', style: { textAlign: 'center' } },
8748
- main_39 && Ads.map(function (ad, index) {
8748
+ main_40 && Ads.map(function (ad, index) {
8749
8749
  if (index === 0) {
8750
8750
  return React.createElement(
8751
8751
  'div',
@@ -8867,7 +8867,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8867
8867
  React.createElement(
8868
8868
  'div',
8869
8869
  { className: 'ad-box', style: { textAlign: 'center' } },
8870
- main_39 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
8870
+ main_40 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
8871
8871
  if (innerIndex === 0) {
8872
8872
  return React.createElement(
8873
8873
  'div',
@@ -9036,20 +9036,20 @@ var FigureComponent = function FigureComponent(props) {
9036
9036
  handleClickFigure = _ref3.handleClickFigure;
9037
9037
 
9038
9038
  var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
9039
- var triggerAction = main_38 ? 'click' : 'hover';
9040
- var placementLocation = main_38 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
9039
+ var triggerAction = main_39 ? 'click' : 'hover';
9040
+ var placementLocation = main_39 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
9041
9041
  return React.createElement(
9042
9042
  'picture',
9043
9043
  null,
9044
9044
  React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
9045
9045
  React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
9046
9046
  React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
9047
- main_38 && link ? React.createElement('img', _extends({
9047
+ main_39 && link ? React.createElement('img', _extends({
9048
9048
  style: figureImageStyle,
9049
9049
  className: 'figure-image',
9050
9050
  src: urlFor({ source: node, client: client }),
9051
9051
  alt: imgAlt ? imgAlt : 'figure image'
9052
- }, !link && !main_38 && {
9052
+ }, !link && !main_39 && {
9053
9053
  onClick: function onClick() {
9054
9054
  return handleClickFigure(node, client);
9055
9055
  }
@@ -9061,7 +9061,7 @@ var FigureComponent = function FigureComponent(props) {
9061
9061
  className: 'figure-image',
9062
9062
  src: urlFor({ source: node, client: client }),
9063
9063
  alt: imgAlt ? imgAlt : 'figure image'
9064
- }, !link && !main_38 && {
9064
+ }, !link && !main_39 && {
9065
9065
  onClick: function onClick() {
9066
9066
  return handleClickFigure(node, client);
9067
9067
  }
@@ -9280,20 +9280,20 @@ var MultiFigure = function MultiFigure(props) {
9280
9280
  link = _ref3.link,
9281
9281
  handleClickFigure = _ref3.handleClickFigure;
9282
9282
 
9283
- var triggerAction = main_38 ? 'click' : 'hover';
9284
- var placementLocation = main_38 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
9283
+ var triggerAction = main_39 ? 'click' : 'hover';
9284
+ var placementLocation = main_39 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
9285
9285
  return React.createElement(
9286
9286
  'picture',
9287
9287
  null,
9288
9288
  React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
9289
9289
  React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
9290
9290
  React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
9291
- main_38 && link ? React.createElement('img', _extends({
9291
+ main_39 && link ? React.createElement('img', _extends({
9292
9292
  'images-count': imagesCount,
9293
9293
  className: 'multi-figure-image',
9294
9294
  src: urlFor({ source: image, client: client }),
9295
9295
  alt: imgAlt ? imgAlt : 'multi figure'
9296
- }, !link && !main_38 && {
9296
+ }, !link && !main_39 && {
9297
9297
  onClick: function onClick() {
9298
9298
  return handleClickFigure(image, client);
9299
9299
  }
@@ -9305,7 +9305,7 @@ var MultiFigure = function MultiFigure(props) {
9305
9305
  className: 'multi-figure-image',
9306
9306
  src: urlFor({ source: image, client: client }),
9307
9307
  alt: imgAlt ? imgAlt : 'multi figure'
9308
- }, !link && !main_38 && {
9308
+ }, !link && !main_39 && {
9309
9309
  onClick: function onClick() {
9310
9310
  return handleClickFigure(image, client);
9311
9311
  }
@@ -10093,11 +10093,11 @@ var getSerializers = function getSerializers() {
10093
10093
  }
10094
10094
 
10095
10095
  var isExernalUrl = checkUrlIsExternal(href);
10096
- return href ? React.createElement(
10096
+ return React.createElement(
10097
10097
  'a',
10098
10098
  _extends({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
10099
10099
  children
10100
- ) : children;
10100
+ );
10101
10101
  },
10102
10102
  alignleft: function alignleft(_ref23) {
10103
10103
  var children = _ref23.children;
@@ -33,15 +33,6 @@ function _objectWithoutPropertiesLoose(source, excluded) {
33
33
  return target;
34
34
  }
35
35
 
36
- function _setPrototypeOf(o, p) {
37
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
38
- o.__proto__ = p;
39
- return o;
40
- };
41
-
42
- return _setPrototypeOf(o, p);
43
- }
44
-
45
36
  var classnames = createCommonjsModule(function (module) {
46
37
  /*!
47
38
  Copyright (c) 2017 Jed Watson.
@@ -91,4 +82,4 @@ var classnames = createCommonjsModule(function (module) {
91
82
  }());
92
83
  });
93
84
 
94
- export { _objectWithoutPropertiesLoose as _, _setPrototypeOf as a, _extends as b, classnames as c };
85
+ export { _objectWithoutPropertiesLoose as _, _extends as a, classnames as c };