@mjhls/mjh-framework 1.0.1082-rl-v3 → 1.0.1082

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 (121) hide show
  1. package/dist/cjs/AlgoliaSearch.js +196 -468
  2. package/dist/cjs/ArticleProgramLandingPage.js +3 -3
  3. package/dist/cjs/ArticleSeriesLandingPage.js +1 -1
  4. package/dist/cjs/ArticleSeriesListing.js +1 -1
  5. package/dist/cjs/AuthWrapper.js +609 -233
  6. package/dist/cjs/CEDeckSupabase.js +5 -1
  7. package/dist/cjs/CMEDeck.js +5 -1
  8. package/dist/cjs/ConferenceArticleCard.js +1 -1
  9. package/dist/cjs/ContentCardPaginated.js +1 -1
  10. package/dist/cjs/DeckContent.js +1 -1
  11. package/dist/cjs/DeckQueue.js +1 -1
  12. package/dist/cjs/DeckQueuePaginated.js +1 -1
  13. package/dist/cjs/EventsDeck.js +2 -2
  14. package/dist/cjs/ExternalResources.js +4 -4
  15. package/dist/cjs/ForbesHero.js +1 -1
  16. package/dist/cjs/GridContent.js +1 -1
  17. package/dist/cjs/GridContentPaginated.js +1 -1
  18. package/dist/cjs/GridHero.js +1 -1
  19. package/dist/cjs/HighlightenVideo.js +1 -1
  20. package/dist/cjs/HorizontalArticleListing.js +3 -3
  21. package/dist/cjs/HorizontalHero.js +1 -1
  22. package/dist/cjs/{ImageSlider-7c995858.js → ImageSlider-984a697b.js} +11 -6
  23. package/dist/cjs/IssueContentDeck.js +1 -1
  24. package/dist/cjs/IssueLanding.js +3 -3
  25. package/dist/cjs/MasterDeck.js +1 -1
  26. package/dist/cjs/MediaSeriesCard.js +3 -3
  27. package/dist/cjs/MediaSeriesLanding.js +6 -6
  28. package/dist/cjs/MediaSeriesLandingPaginated.js +6 -6
  29. package/dist/cjs/OncliveHero.js +1 -1
  30. package/dist/cjs/OncliveLargeHero.js +1 -1
  31. package/dist/cjs/PartnerDetailListing.js +5 -5
  32. package/dist/cjs/PartnerDetailListingPaginated.js +5 -5
  33. package/dist/cjs/PodcastsLanding.js +4 -4
  34. package/dist/cjs/PtceDeck.js +1 -1
  35. package/dist/cjs/PubSection.js +1 -1
  36. package/dist/cjs/QueueDeckExpanded.js +1 -1
  37. package/dist/cjs/QueueDeckExpandedPaginated.js +1 -1
  38. package/dist/cjs/RelatedContent.js +1 -1
  39. package/dist/cjs/TaxonomyDescription.js +3 -3
  40. package/dist/cjs/{Tooltip-b8516cbf.js → Tooltip-96fe6ef6.js} +61 -107
  41. package/dist/cjs/VerticalHero.js +1 -1
  42. package/dist/cjs/VideoProgramLandingPage.js +3 -3
  43. package/dist/cjs/VideoSeriesCard.js +1 -1
  44. package/dist/cjs/VideoSeriesLandingPage.js +1 -1
  45. package/dist/cjs/VideoSeriesListing.js +1 -1
  46. package/dist/cjs/View.js +14 -33
  47. package/dist/cjs/YahooHero.js +1 -1
  48. package/dist/cjs/{brightcove-react-player-loader.es-35faab67.js → brightcove-react-player-loader.es-4c7825a1.js} +3 -3
  49. package/dist/cjs/{defineProperty-19580e93.js → defineProperty-e0fb52c5.js} +4 -2
  50. package/dist/cjs/getRelatedArticle.js +15 -33
  51. package/dist/cjs/getSerializers.js +3 -3
  52. package/dist/cjs/{index-171e9e82.js → index-4fdedd6a.js} +14 -233
  53. package/dist/cjs/{index-ff83a88b.js → index-50be6759.js} +14 -13
  54. package/dist/cjs/index-96c331fd.js +1572 -0
  55. package/dist/cjs/index.js +8 -7
  56. package/dist/cjs/{moment-f730814d.js → moment-aca40de1.js} +80 -95
  57. package/dist/cjs/timeDifferenceCalc.js +1 -1
  58. package/dist/cjs/typeof-1358762e.js +33 -0
  59. package/dist/esm/AlgoliaSearch.js +196 -468
  60. package/dist/esm/ArticleProgramLandingPage.js +3 -3
  61. package/dist/esm/ArticleSeriesLandingPage.js +1 -1
  62. package/dist/esm/ArticleSeriesListing.js +1 -1
  63. package/dist/esm/AuthWrapper.js +608 -232
  64. package/dist/esm/CEDeckSupabase.js +5 -1
  65. package/dist/esm/CMEDeck.js +5 -1
  66. package/dist/esm/ConferenceArticleCard.js +1 -1
  67. package/dist/esm/ContentCardPaginated.js +1 -1
  68. package/dist/esm/DeckContent.js +1 -1
  69. package/dist/esm/DeckQueue.js +1 -1
  70. package/dist/esm/DeckQueuePaginated.js +1 -1
  71. package/dist/esm/EventsDeck.js +2 -2
  72. package/dist/esm/ExternalResources.js +4 -4
  73. package/dist/esm/ForbesHero.js +1 -1
  74. package/dist/esm/GridContent.js +1 -1
  75. package/dist/esm/GridContentPaginated.js +1 -1
  76. package/dist/esm/GridHero.js +1 -1
  77. package/dist/esm/HighlightenVideo.js +1 -1
  78. package/dist/esm/HorizontalArticleListing.js +3 -3
  79. package/dist/esm/HorizontalHero.js +1 -1
  80. package/dist/esm/{ImageSlider-75f7b81a.js → ImageSlider-9250ddc9.js} +11 -6
  81. package/dist/esm/IssueContentDeck.js +1 -1
  82. package/dist/esm/IssueLanding.js +3 -3
  83. package/dist/esm/MasterDeck.js +1 -1
  84. package/dist/esm/MediaSeriesCard.js +3 -3
  85. package/dist/esm/MediaSeriesLanding.js +6 -6
  86. package/dist/esm/MediaSeriesLandingPaginated.js +6 -6
  87. package/dist/esm/OncliveHero.js +1 -1
  88. package/dist/esm/OncliveLargeHero.js +1 -1
  89. package/dist/esm/Pagination-9fe9f61d.js +1 -1
  90. package/dist/esm/PartnerDetailListing.js +5 -5
  91. package/dist/esm/PartnerDetailListingPaginated.js +5 -5
  92. package/dist/esm/PodcastsLanding.js +4 -4
  93. package/dist/esm/PtceDeck.js +1 -1
  94. package/dist/esm/PubSection.js +1 -1
  95. package/dist/esm/QueueDeckExpanded.js +1 -1
  96. package/dist/esm/QueueDeckExpandedPaginated.js +1 -1
  97. package/dist/esm/RelatedContent.js +1 -1
  98. package/dist/esm/TaxonomyDescription.js +3 -3
  99. package/dist/esm/{Tooltip-fe0ed92d.js → Tooltip-bc98d17e.js} +62 -108
  100. package/dist/esm/VerticalHero.js +1 -1
  101. package/dist/esm/VideoProgramLandingPage.js +3 -3
  102. package/dist/esm/VideoSeriesCard.js +1 -1
  103. package/dist/esm/VideoSeriesLandingPage.js +1 -1
  104. package/dist/esm/VideoSeriesListing.js +1 -1
  105. package/dist/esm/View.js +14 -33
  106. package/dist/esm/YahooHero.js +1 -1
  107. package/dist/esm/{brightcove-react-player-loader.es-a2422c4b.js → brightcove-react-player-loader.es-57a70a56.js} +3 -3
  108. package/dist/esm/{defineProperty-e8022d1e.js → defineProperty-23a8f8cd.js} +4 -2
  109. package/dist/esm/getRelatedArticle.js +16 -34
  110. package/dist/esm/getSerializers.js +3 -3
  111. package/dist/esm/index-30a6257d.js +1570 -0
  112. package/dist/esm/{index-c8d5e72b.js → index-98ca9cec.js} +14 -13
  113. package/dist/esm/{index-1d1bbc8c.js → index-de2bb37c.js} +14 -233
  114. package/dist/esm/index.js +8 -7
  115. package/dist/esm/{moment-48faeb9c.js → moment-bc12cb97.js} +80 -95
  116. package/dist/esm/timeDifferenceCalc.js +1 -1
  117. package/dist/esm/typeof-2f07d0e8.js +30 -0
  118. package/dist/esm/visibility-sensor-72fd8f8b.js +1 -1
  119. package/package.json +1 -1
  120. package/dist/cjs/index-3177f564.js +0 -1573
  121. package/dist/esm/index-4550ef23.js +0 -1571
@@ -1,5 +1,5 @@
1
- import { _ as _objectWithoutPropertiesLoose, b as _extends, a as _setPrototypeOf, c as classnames } from './index-c8d5e72b.js';
2
- import React__default, { useRef, useState, useCallback, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
1
+ import { _ as _objectWithoutPropertiesLoose, b as _extends, a as _setPrototypeOf, c as classnames } from './index-98ca9cec.js';
2
+ import React__default, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import ReactDOM from 'react-dom';
5
5
  import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
@@ -412,10 +412,6 @@ process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, P
412
412
 
413
413
  var TransitionGroupContext = React__default.createContext(null);
414
414
 
415
- var forceReflow = function forceReflow(node) {
416
- return node.scrollTop;
417
- };
418
-
419
415
  var UNMOUNTED = 'unmounted';
420
416
  var EXITED = 'exited';
421
417
  var ENTERING = 'entering';
@@ -635,14 +631,6 @@ var Transition = /*#__PURE__*/function (_React$Component) {
635
631
  this.cancelNextCallback();
636
632
 
637
633
  if (nextStatus === ENTERING) {
638
- if (this.props.unmountOnExit || this.props.mountOnEnter) {
639
- var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this); // https://github.com/reactjs/react-transition-group/pull/749
640
- // With unmountOnExit or mountOnEnter, the enter animation should happen at the transition between `exited` and `entering`.
641
- // To make the animation happen, we have to separate each rendering and avoid being processed as batched.
642
-
643
- if (node) forceReflow(node);
644
- }
645
-
646
634
  this.performEnter(mounting);
647
635
  } else {
648
636
  this.performExit();
@@ -2668,57 +2656,38 @@ var max = Math.max;
2668
2656
  var min = Math.min;
2669
2657
  var round = Math.round;
2670
2658
 
2671
- function getUAString() {
2672
- var uaData = navigator.userAgentData;
2673
-
2674
- if (uaData != null && uaData.brands) {
2675
- return uaData.brands.map(function (item) {
2676
- return item.brand + "/" + item.version;
2677
- }).join(' ');
2678
- }
2679
-
2680
- return navigator.userAgent;
2681
- }
2682
-
2683
- function isLayoutViewport() {
2684
- return !/^((?!chrome|android).)*safari/i.test(getUAString());
2685
- }
2686
-
2687
- function getBoundingClientRect(element, includeScale, isFixedStrategy) {
2659
+ function getBoundingClientRect(element, includeScale) {
2688
2660
  if (includeScale === void 0) {
2689
2661
  includeScale = false;
2690
2662
  }
2691
2663
 
2692
- if (isFixedStrategy === void 0) {
2693
- isFixedStrategy = false;
2694
- }
2695
-
2696
- var clientRect = element.getBoundingClientRect();
2664
+ var rect = element.getBoundingClientRect();
2697
2665
  var scaleX = 1;
2698
2666
  var scaleY = 1;
2699
2667
 
2700
- if (includeScale && isHTMLElement(element)) {
2701
- scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;
2702
- scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
2703
- }
2668
+ if (isHTMLElement(element) && includeScale) {
2669
+ var offsetHeight = element.offsetHeight;
2670
+ var offsetWidth = element.offsetWidth; // Do not attempt to divide by 0, otherwise we get `Infinity` as scale
2671
+ // Fallback to 1 in case both values are `0`
2672
+
2673
+ if (offsetWidth > 0) {
2674
+ scaleX = round(rect.width) / offsetWidth || 1;
2675
+ }
2704
2676
 
2705
- var _ref = isElement(element) ? getWindow(element) : window,
2706
- visualViewport = _ref.visualViewport;
2677
+ if (offsetHeight > 0) {
2678
+ scaleY = round(rect.height) / offsetHeight || 1;
2679
+ }
2680
+ }
2707
2681
 
2708
- var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
2709
- var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
2710
- var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
2711
- var width = clientRect.width / scaleX;
2712
- var height = clientRect.height / scaleY;
2713
2682
  return {
2714
- width: width,
2715
- height: height,
2716
- top: y,
2717
- right: x + width,
2718
- bottom: y + height,
2719
- left: x,
2720
- x: x,
2721
- y: y
2683
+ width: rect.width / scaleX,
2684
+ height: rect.height / scaleY,
2685
+ top: rect.top / scaleY,
2686
+ right: rect.right / scaleX,
2687
+ bottom: rect.bottom / scaleY,
2688
+ left: rect.left / scaleX,
2689
+ x: rect.left / scaleX,
2690
+ y: rect.top / scaleY
2722
2691
  };
2723
2692
  }
2724
2693
 
@@ -2817,8 +2786,8 @@ function getTrueOffsetParent(element) {
2817
2786
 
2818
2787
 
2819
2788
  function getContainingBlock(element) {
2820
- var isFirefox = /firefox/i.test(getUAString());
2821
- var isIE = /Trident/i.test(getUAString());
2789
+ var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
2790
+ var isIE = navigator.userAgent.indexOf('Trident') !== -1;
2822
2791
 
2823
2792
  if (isIE && isHTMLElement(element)) {
2824
2793
  // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
@@ -2831,10 +2800,6 @@ function getContainingBlock(element) {
2831
2800
 
2832
2801
  var currentNode = getParentNode(element);
2833
2802
 
2834
- if (isShadowRoot(currentNode)) {
2835
- currentNode = currentNode.host;
2836
- }
2837
-
2838
2803
  while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
2839
2804
  var css = getComputedStyle$1(currentNode); // This is non-exhaustive but covers the most common CSS properties that
2840
2805
  // create a containing block.
@@ -3027,21 +2992,13 @@ function mapToStyles(_ref2) {
3027
2992
  adaptive = _ref2.adaptive,
3028
2993
  roundOffsets = _ref2.roundOffsets,
3029
2994
  isFixed = _ref2.isFixed;
3030
- var _offsets$x = offsets.x,
3031
- x = _offsets$x === void 0 ? 0 : _offsets$x,
3032
- _offsets$y = offsets.y,
3033
- y = _offsets$y === void 0 ? 0 : _offsets$y;
3034
2995
 
3035
- var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({
3036
- x: x,
3037
- y: y
3038
- }) : {
3039
- x: x,
3040
- y: y
3041
- };
2996
+ var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === 'function' ? roundOffsets(offsets) : offsets,
2997
+ _ref3$x = _ref3.x,
2998
+ x = _ref3$x === void 0 ? 0 : _ref3$x,
2999
+ _ref3$y = _ref3.y,
3000
+ y = _ref3$y === void 0 ? 0 : _ref3$y;
3042
3001
 
3043
- x = _ref3.x;
3044
- y = _ref3.y;
3045
3002
  var hasX = offsets.hasOwnProperty('x');
3046
3003
  var hasY = offsets.hasOwnProperty('y');
3047
3004
  var sideX = left;
@@ -3067,7 +3024,7 @@ function mapToStyles(_ref2) {
3067
3024
 
3068
3025
  if (placement === top || (placement === left || placement === right) && variation === end) {
3069
3026
  sideY = bottom;
3070
- var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]
3027
+ var offsetY = isFixed && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]
3071
3028
  offsetParent[heightProp];
3072
3029
  y -= offsetY - popperRect.height;
3073
3030
  y *= gpuAcceleration ? 1 : -1;
@@ -3075,7 +3032,7 @@ function mapToStyles(_ref2) {
3075
3032
 
3076
3033
  if (placement === left || (placement === top || placement === bottom) && variation === end) {
3077
3034
  sideX = right;
3078
- var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]
3035
+ var offsetX = isFixed && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]
3079
3036
  offsetParent[widthProp];
3080
3037
  x -= offsetX - popperRect.width;
3081
3038
  x *= gpuAcceleration ? 1 : -1;
@@ -3086,17 +3043,6 @@ function mapToStyles(_ref2) {
3086
3043
  position: position
3087
3044
  }, adaptive && unsetSides);
3088
3045
 
3089
- var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
3090
- x: x,
3091
- y: y
3092
- }) : {
3093
- x: x,
3094
- y: y
3095
- };
3096
-
3097
- x = _ref4.x;
3098
- y = _ref4.y;
3099
-
3100
3046
  if (gpuAcceleration) {
3101
3047
  var _Object$assign;
3102
3048
 
@@ -3106,9 +3052,9 @@ function mapToStyles(_ref2) {
3106
3052
  return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
3107
3053
  }
3108
3054
 
3109
- function computeStyles(_ref5) {
3110
- var state = _ref5.state,
3111
- options = _ref5.options;
3055
+ function computeStyles(_ref4) {
3056
+ var state = _ref4.state,
3057
+ options = _ref4.options;
3112
3058
  var _options$gpuAccelerat = options.gpuAcceleration,
3113
3059
  gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
3114
3060
  _options$adaptive = options.adaptive,
@@ -3258,21 +3204,31 @@ function getWindowScrollBarX(element) {
3258
3204
  return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
3259
3205
  }
3260
3206
 
3261
- function getViewportRect(element, strategy) {
3207
+ function getViewportRect(element) {
3262
3208
  var win = getWindow(element);
3263
3209
  var html = getDocumentElement(element);
3264
3210
  var visualViewport = win.visualViewport;
3265
3211
  var width = html.clientWidth;
3266
3212
  var height = html.clientHeight;
3267
3213
  var x = 0;
3268
- var y = 0;
3214
+ var y = 0; // NB: This isn't supported on iOS <= 12. If the keyboard is open, the popper
3215
+ // can be obscured underneath it.
3216
+ // Also, `html.clientHeight` adds the bottom bar height in Safari iOS, even
3217
+ // if it isn't open, so if this isn't available, the popper will be detected
3218
+ // to overflow the bottom of the screen too early.
3269
3219
 
3270
3220
  if (visualViewport) {
3271
3221
  width = visualViewport.width;
3272
- height = visualViewport.height;
3273
- var layoutViewport = isLayoutViewport();
3274
-
3275
- if (layoutViewport || !layoutViewport && strategy === 'fixed') {
3222
+ height = visualViewport.height; // Uses Layout Viewport (like Chrome; Safari does not currently)
3223
+ // In Chrome, it returns a value very close to 0 (+/-) but contains rounding
3224
+ // errors due to floating point numbers, so we need to check precision.
3225
+ // Safari returns a number <= 0, usually < -1 when pinch-zoomed
3226
+ // Feature detection fails in mobile emulation mode in Chrome.
3227
+ // Math.abs(win.innerWidth / visualViewport.scale - visualViewport.width) <
3228
+ // 0.001
3229
+ // Fallback here: "Not Safari" userAgent
3230
+
3231
+ if (!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {
3276
3232
  x = visualViewport.offsetLeft;
3277
3233
  y = visualViewport.offsetTop;
3278
3234
  }
@@ -3366,8 +3322,8 @@ function rectToClientRect(rect) {
3366
3322
  });
3367
3323
  }
3368
3324
 
3369
- function getInnerBoundingClientRect(element, strategy) {
3370
- var rect = getBoundingClientRect(element, false, strategy === 'fixed');
3325
+ function getInnerBoundingClientRect(element) {
3326
+ var rect = getBoundingClientRect(element);
3371
3327
  rect.top = rect.top + element.clientTop;
3372
3328
  rect.left = rect.left + element.clientLeft;
3373
3329
  rect.bottom = rect.top + element.clientHeight;
@@ -3379,8 +3335,8 @@ function getInnerBoundingClientRect(element, strategy) {
3379
3335
  return rect;
3380
3336
  }
3381
3337
 
3382
- function getClientRectFromMixedType(element, clippingParent, strategy) {
3383
- return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
3338
+ function getClientRectFromMixedType(element, clippingParent) {
3339
+ return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
3384
3340
  } // A "clipping parent" is an overflowable container with the characteristic of
3385
3341
  // clipping (or hiding) overflowing elements with a position different from
3386
3342
  // `initial`
@@ -3397,24 +3353,24 @@ function getClippingParents(element) {
3397
3353
 
3398
3354
 
3399
3355
  return clippingParents.filter(function (clippingParent) {
3400
- return isElement(clippingParent) && contains$1(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
3356
+ return isElement(clippingParent) && contains$1(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body' && (canEscapeClipping ? getComputedStyle$1(clippingParent).position !== 'static' : true);
3401
3357
  });
3402
3358
  } // Gets the maximum area that the element is visible in due to any number of
3403
3359
  // clipping parents
3404
3360
 
3405
3361
 
3406
- function getClippingRect(element, boundary, rootBoundary, strategy) {
3362
+ function getClippingRect(element, boundary, rootBoundary) {
3407
3363
  var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);
3408
3364
  var clippingParents = [].concat(mainClippingParents, [rootBoundary]);
3409
3365
  var firstClippingParent = clippingParents[0];
3410
3366
  var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
3411
- var rect = getClientRectFromMixedType(element, clippingParent, strategy);
3367
+ var rect = getClientRectFromMixedType(element, clippingParent);
3412
3368
  accRect.top = max(rect.top, accRect.top);
3413
3369
  accRect.right = min(rect.right, accRect.right);
3414
3370
  accRect.bottom = min(rect.bottom, accRect.bottom);
3415
3371
  accRect.left = max(rect.left, accRect.left);
3416
3372
  return accRect;
3417
- }, getClientRectFromMixedType(element, firstClippingParent, strategy));
3373
+ }, getClientRectFromMixedType(element, firstClippingParent));
3418
3374
  clippingRect.width = clippingRect.right - clippingRect.left;
3419
3375
  clippingRect.height = clippingRect.bottom - clippingRect.top;
3420
3376
  clippingRect.x = clippingRect.left;
@@ -3495,8 +3451,6 @@ function detectOverflow(state, options) {
3495
3451
  var _options = options,
3496
3452
  _options$placement = _options.placement,
3497
3453
  placement = _options$placement === void 0 ? state.placement : _options$placement,
3498
- _options$strategy = _options.strategy,
3499
- strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,
3500
3454
  _options$boundary = _options.boundary,
3501
3455
  boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,
3502
3456
  _options$rootBoundary = _options.rootBoundary,
@@ -3511,7 +3465,7 @@ function detectOverflow(state, options) {
3511
3465
  var altContext = elementContext === popper ? reference : popper;
3512
3466
  var popperRect = state.rects.popper;
3513
3467
  var element = state.elements[altBoundary ? altContext : elementContext];
3514
- var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);
3468
+ var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);
3515
3469
  var referenceClientRect = getBoundingClientRect(state.elements.reference);
3516
3470
  var popperOffsets = computeOffsets({
3517
3471
  reference: referenceClientRect,
@@ -4029,7 +3983,7 @@ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
4029
3983
  var isOffsetParentAnElement = isHTMLElement(offsetParent);
4030
3984
  var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
4031
3985
  var documentElement = getDocumentElement(offsetParent);
4032
- var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);
3986
+ var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);
4033
3987
  var scroll = {
4034
3988
  scrollLeft: 0,
4035
3989
  scrollTop: 0
@@ -1,5 +1,5 @@
1
1
  import React__default from 'react';
2
- import './moment-48faeb9c.js';
2
+ import './moment-bc12cb97.js';
3
3
  import urlFor from './urlFor.js';
4
4
  import './_commonjsHelpers-0c4b6f40.js';
5
5
  import './slicedToArray-72ed566b.js';
@@ -5,7 +5,7 @@ import { B as BlockContent } from './BlockContent-1e73bd2c.js';
5
5
  import Col from 'react-bootstrap/Col';
6
6
  import Form from 'react-bootstrap/Form';
7
7
  import Button from 'react-bootstrap/Button';
8
- import { g as getSerializers } from './index-1d1bbc8c.js';
8
+ import { g as getSerializers } from './index-de2bb37c.js';
9
9
  import VideoSeriesListing from './VideoSeriesListing.js';
10
10
  import './_commonjsHelpers-0c4b6f40.js';
11
11
  import './core.get-iterator-method-95db387d.js';
@@ -30,7 +30,7 @@ import './index-755f2cc2.js';
30
30
  import 'react-dom';
31
31
  import './typeof-3ab7d3b6.js';
32
32
  import './_is-array-68c79b29.js';
33
- import './brightcove-react-player-loader.es-a2422c4b.js';
33
+ import './brightcove-react-player-loader.es-57a70a56.js';
34
34
  import './_object-to-array-9dfdfb29.js';
35
35
  import './keys-185288f4.js';
36
36
  import './_object-sap-14bd8e96.js';
@@ -38,7 +38,7 @@ import 'react-bootstrap/Modal';
38
38
  import 'react-ga';
39
39
  import './GroupDeck.js';
40
40
  import './smoothscroll-fa4e3f8c.js';
41
- import './moment-48faeb9c.js';
41
+ import './moment-bc12cb97.js';
42
42
  import './SocialShare.js';
43
43
  import 'next/head';
44
44
  import 'react-share';
@@ -2,7 +2,7 @@ import { _ as _typeof } from './typeof-3ab7d3b6.js';
2
2
  import React__default from 'react';
3
3
  import { L as LazyLoad } from './index-755f2cc2.js';
4
4
  import urlFor from './urlFor.js';
5
- import { m as moment } from './moment-48faeb9c.js';
5
+ import { m as moment } from './moment-bc12cb97.js';
6
6
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
7
7
  import 'prop-types';
8
8
  import './_commonjsHelpers-0c4b6f40.js';
@@ -1,7 +1,7 @@
1
1
  import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-1ebeb135.js';
2
2
  import { _ as _typeof } from './typeof-3ab7d3b6.js';
3
3
  import React__default from 'react';
4
- import { m as moment } from './moment-48faeb9c.js';
4
+ import { m as moment } from './moment-bc12cb97.js';
5
5
  import { g as getYoutubeId } from './index-c7e2ac95.js';
6
6
  import Breadcrumbs from './Breadcrumbs.js';
7
7
  import MasterDeck from './MasterDeck.js';
@@ -5,7 +5,7 @@ import { l as lib_3 } from './index-5cc7b406.js';
5
5
  import Container from 'react-bootstrap/Container';
6
6
  import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
7
7
  import { I as IoIosArrowForward } from './index.esm-eb1e8e80.js';
8
- import { m as moment } from './moment-48faeb9c.js';
8
+ import { m as moment } from './moment-bc12cb97.js';
9
9
  import { withRouter } from 'next/router';
10
10
  import YoutubeGroup from './YoutubeGroup.js';
11
11
  import { d as debounce_1 } from './debounce-533d9748.js';
package/dist/esm/View.js CHANGED
@@ -6,7 +6,7 @@ import Head from 'next/head';
6
6
  import { useRouter } from 'next/router';
7
7
  import { _ as _JSON$stringify } from './stringify-1e2a5946.js';
8
8
  import { _ as _toConsumableArray } from './toConsumableArray-e6f28e5c.js';
9
- import { m as moment } from './moment-48faeb9c.js';
9
+ import { m as moment } from './moment-bc12cb97.js';
10
10
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
11
11
  import { m as main_43 } from './main-754d4992.js';
12
12
  import 'react-bootstrap/Dropdown';
@@ -15,7 +15,7 @@ import FormControl from 'react-bootstrap/FormControl';
15
15
  import Button from 'react-bootstrap/Button';
16
16
  import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
17
17
  import SocialShare from './SocialShare.js';
18
- import { r as renderAuthor, g as getSerializers } from './index-1d1bbc8c.js';
18
+ import { r as renderAuthor, g as getSerializers } from './index-de2bb37c.js';
19
19
  import DFPAdSlot from './AdSlot.js';
20
20
  import { S as SeriesSlider } from './SeriesSlider-acbdf4c9.js';
21
21
  import { a as getContentPlacementUrl, g as getTargeting } from './getTargeting-b62a177c.js';
@@ -49,7 +49,7 @@ import 'react-bootstrap';
49
49
  import './index-c7e2ac95.js';
50
50
  import './Beam.js';
51
51
  import './Segment.js';
52
- import './brightcove-react-player-loader.es-a2422c4b.js';
52
+ import './brightcove-react-player-loader.es-57a70a56.js';
53
53
  import './_object-to-array-9dfdfb29.js';
54
54
  import 'react-bootstrap/Modal';
55
55
  import 'react-ga';
@@ -114,8 +114,7 @@ var getDocumentGroupUrl = function getDocumentGroupUrl(docGroup) {
114
114
  if (typeof url !== 'undefined') {
115
115
  url = url + '/' + docGroup.path;
116
116
  } else {
117
- // url = '/' + docGroup.path
118
- return null;
117
+ url = '/' + docGroup.path;
119
118
  }
120
119
 
121
120
  return url;
@@ -138,8 +137,7 @@ var getDocumentGroupName = function getDocumentGroupName(docGroup) {
138
137
  if (typeof name !== 'undefined') {
139
138
  name = name + ' | <b>' + docGroup.name + '</b>';
140
139
  } else {
141
- // name = '<b>' + docGroup.name + '</b>'
142
- return null;
140
+ name = '<b>' + docGroup.name + '</b>';
143
141
  }
144
142
 
145
143
  return name && typeof name != 'undefined' ? name : null;
@@ -181,7 +179,6 @@ var DocumentGroup = function DocumentGroup(_ref) {
181
179
  thumbnailUrl = urlFor({ client: client, source: mediaSeriesGroup.thumbnail });
182
180
  }
183
181
  var margin = article.documentGroupMapping && article.documentGroupMapping[0] && article.documentGroupMapping[0].parent && article.documentGroupMapping[0].parent.parent && article.documentGroupMapping[0].parent.parent.contextText || article.documentGroup && article.documentGroup.parent && article.documentGroup.parent.parent && article.documentGroup.parent.parent.contextText ? 'none' : '1rem';
184
- console.log("check me", article.documentGroupMapping && article.documentGroupMapping[0] && article.documentGroupMapping[0].parent && article.documentGroupMapping[0].parent.parent && article.documentGroupMapping[0].parent.parent.contextText ? article.documentGroupMapping[0].parent.parent.contextText : article.documentGroup && article.documentGroup.parent && article.documentGroup.parent.parent && article.documentGroup.parent.parent.contextText ? article.documentGroup.parent.parent.contextText : null);
185
182
  return React__default.createElement(
186
183
  'div',
187
184
  null,
@@ -190,7 +187,7 @@ var DocumentGroup = function DocumentGroup(_ref) {
190
187
  { style: { textAlign: 'center', fontWeight: 600 } },
191
188
  article.documentGroupMapping && article.documentGroupMapping[0] && article.documentGroupMapping[0].parent && article.documentGroupMapping[0].parent.parent && article.documentGroupMapping[0].parent.parent.contextText ? article.documentGroupMapping[0].parent.parent.contextText : article.documentGroup && article.documentGroup.parent && article.documentGroup.parent.parent && article.documentGroup.parent.parent.contextText ? article.documentGroup.parent.parent.contextText : null
192
189
  ),
193
- url && name && React__default.createElement(
190
+ React__default.createElement(
194
191
  'a',
195
192
  {
196
193
  href: url,
@@ -1264,24 +1261,12 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1264
1261
  if (documentGroup.isShow === false || documentGroup.excludeRelatedContents) {
1265
1262
  return null;
1266
1263
  }
1267
-
1268
- var doc_url = cpModificationRequired ? getDocumentGroupUrl(documentGroup) : documentGroup.ancestor ? documentGroup.parent && !documentGroup.path.includes('/') ? '/' + documentGroup.ancestor + '/' + documentGroup.parent.identifier.current + '/' + documentGroup.path : '/' + documentGroup.ancestor + '/' + documentGroup.path : documentGroup.parent ? !documentGroup.path.includes('/') ? '/' + documentGroup.parent.identifier.current + '/' + documentGroup.path : '/' + documentGroup.path : '/' + documentGroup.path;
1269
- console.log("doc_url----------------", doc_url);
1270
- var href = '' + doc_url;
1271
- relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{ label: documentGroup.name, href: href }]);
1272
- // if (documentGroup.parent) {
1273
- // relatedLinks = [
1274
- // ...relatedLinks,
1275
- // {
1276
- // label: documentGroup.name,
1277
- // href: cpModificationRequired
1278
- // ? getDocumentGroupUrl(documentGroup)
1279
- // : documentGroup.parent.identifier && documentGroup.parent.identifier.current && !documentGroup.path.includes('/')
1280
- // ? `/${documentGroup.parent.identifier.current}/${documentGroup.path}`
1281
- // : `/${documentGroup.path}`
1282
- // }
1283
- // ]
1284
- // }
1264
+ if (documentGroup.parent) {
1265
+ relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{
1266
+ label: documentGroup.name,
1267
+ href: cpModificationRequired ? getDocumentGroupUrl(documentGroup) : documentGroup.parent.identifier && documentGroup.parent.identifier.current && !documentGroup.path.includes('/') ? '/' + documentGroup.parent.identifier.current + '/' + documentGroup.path : '/' + documentGroup.path
1268
+ }]);
1269
+ }
1285
1270
  });
1286
1271
  }
1287
1272
  if (content_placement && content_placement.length > 0) {
@@ -1291,10 +1276,8 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1291
1276
  if (cp.excludeRelatedContents) {
1292
1277
  return null;
1293
1278
  }
1294
-
1295
- var cp_url = cpModificationRequired ? getContentPlacementUrl(cp) : cp.ancestor ? cp.parent && !cp.path.includes('/') ? cp.ancestor + '/' + cp.parent + '/' + cp.path : cp.ancestor + '/' + cp.path : cp.parent ? !cp.path.includes('/') ? cp.parent + '/' + cp.path : '' + cp.path : '' + cp.path;
1279
+ var cp_url = cpModificationRequired ? getContentPlacementUrl(cp) : cp.path;
1296
1280
  var href = '/' + cp_url;
1297
- console.log("cp_url----------------------------", href);
1298
1281
  relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{ label: cp.name, href: href }]);
1299
1282
  });
1300
1283
  }
@@ -1315,7 +1298,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1315
1298
  { key: index, className: 'related-link' },
1316
1299
  React__default.createElement(
1317
1300
  'a',
1318
- { className: 'related-links article', style: { color: 'blue' }, href: relatedLink.href },
1301
+ { className: 'related-links', style: { color: 'blue' }, href: relatedLink.href },
1319
1302
  relatedLink.label
1320
1303
  ),
1321
1304
  React__default.createElement(
@@ -2390,8 +2373,6 @@ var View = function View(props) {
2390
2373
  var title = _props$article2.title,
2391
2374
  seriesShareOptions = _props$article2.seriesShareOptions;
2392
2375
 
2393
- console.log(props);
2394
-
2395
2376
  var _useState = useState(0),
2396
2377
  _useState2 = _slicedToArray(_useState, 2),
2397
2378
  currentPage = _useState2[0],
@@ -1,5 +1,5 @@
1
1
  import React__default from 'react';
2
- import { m as moment } from './moment-48faeb9c.js';
2
+ import { m as moment } from './moment-bc12cb97.js';
3
3
  import urlFor from './urlFor.js';
4
4
  import { c as clean_html_1 } from './entities-6d9154b4.js';
5
5
  import { A as AuthorComponent } from './AuthorComponent-d9653ae5.js';
@@ -564,7 +564,7 @@ proto.createDocumentFragment = function createDocumentFragment() {
564
564
  };
565
565
 
566
566
  proto.createEvent = function createEvent(family) {
567
- return new event()
567
+ return new event(family)
568
568
  };
569
569
 
570
570
  proto.createComment = function createComment(data) {
@@ -625,7 +625,7 @@ if (typeof window !== "undefined") {
625
625
 
626
626
  var window_1 = win;
627
627
 
628
- /*! @name @brightcove/react-player-loader @version 1.4.2 @license Apache-2.0 */
628
+ /*! @name @brightcove/react-player-loader @version 1.4.1 @license Apache-2.0 */
629
629
 
630
630
  function _extends() {
631
631
  _extends = Object.assign || function (target) {
@@ -2073,7 +2073,7 @@ function (_React$Component) {
2073
2073
 
2074
2074
  _proto.updatePlayer = function updatePlayer(changes) {
2075
2075
  // No player exists, player is disposed, or not using the catalog
2076
- if (!this.player || !this.player.el || !this.player.el()) {
2076
+ if (!this.player || !this.player.el()) {
2077
2077
  return;
2078
2078
  } // If the player is using the catalog plugin, we _may_ populate this
2079
2079
  // variable with an object.
@@ -37,7 +37,8 @@ function _asyncToGenerator(fn) {
37
37
  };
38
38
  }
39
39
 
40
- module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
40
+ module.exports = _asyncToGenerator;
41
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
41
42
  });
42
43
 
43
44
  var _asyncToGenerator = unwrapExports(asyncToGenerator);
@@ -58,7 +59,8 @@ function _defineProperty(obj, key, value) {
58
59
  return obj;
59
60
  }
60
61
 
61
- module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
62
+ module.exports = _defineProperty;
63
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
62
64
  });
63
65
 
64
66
  var _defineProperty = unwrapExports(defineProperty);