@mjhls/mjh-framework 1.0.1091 → 1.0.1093

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 (180) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AD300x250.js +1 -1
  3. package/dist/cjs/AD300x250x600.js +1 -1
  4. package/dist/cjs/AD728x90.js +1 -1
  5. package/dist/cjs/ADFloatingFooter.js +1 -1
  6. package/dist/cjs/ADGutter.js +1 -1
  7. package/dist/cjs/{ADInfeed-25f53b70.js → ADInfeed-f7c65126.js} +1 -1
  8. package/dist/cjs/ADSkyscraper.js +1 -1
  9. package/dist/cjs/ADSponsoredResources.js +1 -1
  10. package/dist/cjs/ADWebcast.js +1 -1
  11. package/dist/cjs/ADWelcome.js +1 -1
  12. package/dist/cjs/{ADlgInfeed-5d21496c.js → ADlgInfeed-b6e86366.js} +1 -1
  13. package/dist/cjs/AdSlot.js +9 -1
  14. package/dist/cjs/AdSlotsProvider.js +1 -1
  15. package/dist/cjs/AlgoliaSearch.js +532 -248
  16. package/dist/cjs/ArticleCarousel.js +1 -1
  17. package/dist/cjs/ArticleProgramLandingPage.js +4 -4
  18. package/dist/cjs/ArticleSeriesLandingPage.js +4 -4
  19. package/dist/cjs/ArticleSeriesListing.js +2 -2
  20. package/dist/cjs/AuthWrapper.js +266 -642
  21. package/dist/cjs/CEDeckSupabase.js +2 -6
  22. package/dist/cjs/CMEDeck.js +2 -6
  23. package/dist/cjs/Column3.js +1 -1
  24. package/dist/cjs/ConferenceArticleCard.js +1 -1
  25. package/dist/cjs/ContentCardPaginated.js +3 -3
  26. package/dist/cjs/DeckContent.js +3 -3
  27. package/dist/cjs/DeckQueue.js +2 -2
  28. package/dist/cjs/DeckQueuePaginated.js +2 -2
  29. package/dist/cjs/EventsDeck.js +3 -3
  30. package/dist/cjs/ExternalResources.js +5 -5
  31. package/dist/cjs/Feature.js +1 -1
  32. package/dist/cjs/ForbesHero.js +1 -1
  33. package/dist/cjs/GridContent.js +4 -4
  34. package/dist/cjs/GridContentPaginated.js +4 -4
  35. package/dist/cjs/GridHero.js +1 -1
  36. package/dist/cjs/HamMagazine.js +2 -2
  37. package/dist/cjs/HighlightenVideo.js +1 -1
  38. package/dist/cjs/HorizontalArticleListing.js +4 -4
  39. package/dist/cjs/HorizontalHero.js +1 -1
  40. package/dist/cjs/{ImageSlider-984a697b.js → ImageSlider-d65bc9c8.js} +156 -116
  41. package/dist/cjs/IssueContentDeck.js +1 -1
  42. package/dist/cjs/IssueLanding.js +6 -6
  43. package/dist/cjs/LeftNav.js +1 -1
  44. package/dist/cjs/MasterDeck.js +4 -4
  45. package/dist/cjs/MasterDeckPaginated.js +3 -3
  46. package/dist/cjs/MediaSeriesCard.js +4 -4
  47. package/dist/cjs/MediaSeriesLanding.js +9 -9
  48. package/dist/cjs/MediaSeriesLandingPaginated.js +9 -9
  49. package/dist/cjs/NavMagazine.js +2 -2
  50. package/dist/cjs/NavNative.js +1 -1
  51. package/dist/cjs/OncliveHero.js +1 -1
  52. package/dist/cjs/OncliveLargeHero.js +1 -1
  53. package/dist/cjs/PartnerDetailListing.js +7 -8
  54. package/dist/cjs/PartnerDetailListingPaginated.js +7 -8
  55. package/dist/cjs/PodcastsLanding.js +7 -7
  56. package/dist/cjs/PtceDeck.js +1 -1
  57. package/dist/cjs/PubSection.js +4 -4
  58. package/dist/cjs/PublicationLanding.js +7 -5
  59. package/dist/cjs/QueueDeckExpanded.js +4 -4
  60. package/dist/cjs/QueueDeckExpandedPaginated.js +4 -4
  61. package/dist/cjs/RelatedContent.js +1 -1
  62. package/dist/cjs/SeriesListingDeck.js +2 -2
  63. package/dist/cjs/{SeriesSlider-086a8319.js → SeriesSlider-a8b51591.js} +1 -1
  64. package/dist/cjs/{SocialSearchComponent-d7e5d3a6.js → SocialSearchComponent-9d272141.js} +1 -1
  65. package/dist/cjs/TaxonomyDescription.js +4 -4
  66. package/dist/cjs/TemplateNormal.js +2 -2
  67. package/dist/cjs/{Tooltip-96fe6ef6.js → Tooltip-66c1a867.js} +159 -85
  68. package/dist/cjs/Ustream.js +1 -1
  69. package/dist/cjs/VerticalHero.js +1 -1
  70. package/dist/cjs/VideoProgramLandingPage.js +4 -4
  71. package/dist/cjs/VideoSeriesCard.js +1 -1
  72. package/dist/cjs/VideoSeriesLandingPage.js +4 -4
  73. package/dist/cjs/VideoSeriesListing.js +2 -2
  74. package/dist/cjs/View.js +5 -5
  75. package/dist/cjs/YahooHero.js +1 -1
  76. package/dist/cjs/YoutubeGroup.js +1 -1
  77. package/dist/cjs/{brightcove-react-player-loader.es-4c7825a1.js → brightcove-react-player-loader.es-35faab67.js} +3 -3
  78. package/dist/cjs/getRelatedArticle.js +33 -15
  79. package/dist/cjs/getSerializers.js +4 -4
  80. package/dist/cjs/{index-b0e9a7b6.js → index-1c8109ca.js} +234 -15
  81. package/dist/cjs/index-4d21663c.js +1573 -0
  82. package/dist/cjs/{index-50be6759.js → index-9ec837cc.js} +9 -25
  83. package/dist/cjs/index.js +11 -13
  84. package/dist/cjs/{main-ae8472f3.js → main-812888f1.js} +1 -1
  85. package/dist/cjs/{moment-aca40de1.js → moment-f730814d.js} +95 -80
  86. package/dist/cjs/timeDifferenceCalc.js +1 -1
  87. package/dist/esm/AD300x250.js +1 -1
  88. package/dist/esm/AD300x250x600.js +1 -1
  89. package/dist/esm/AD728x90.js +1 -1
  90. package/dist/esm/ADFloatingFooter.js +1 -1
  91. package/dist/esm/ADGutter.js +1 -1
  92. package/dist/esm/{ADInfeed-ca4bb13c.js → ADInfeed-b05502a1.js} +1 -1
  93. package/dist/esm/ADSkyscraper.js +1 -1
  94. package/dist/esm/ADSponsoredResources.js +1 -1
  95. package/dist/esm/ADWebcast.js +1 -1
  96. package/dist/esm/ADWelcome.js +1 -1
  97. package/dist/esm/{ADlgInfeed-142ddf4d.js → ADlgInfeed-6e892331.js} +1 -1
  98. package/dist/esm/AdSlot.js +9 -1
  99. package/dist/esm/AdSlotsProvider.js +1 -1
  100. package/dist/esm/AlgoliaSearch.js +531 -247
  101. package/dist/esm/ArticleCarousel.js +1 -1
  102. package/dist/esm/ArticleProgramLandingPage.js +4 -4
  103. package/dist/esm/ArticleSeriesLandingPage.js +4 -4
  104. package/dist/esm/ArticleSeriesListing.js +2 -2
  105. package/dist/esm/AuthWrapper.js +263 -639
  106. package/dist/esm/CEDeckSupabase.js +2 -6
  107. package/dist/esm/CMEDeck.js +2 -6
  108. package/dist/esm/Column3.js +1 -1
  109. package/dist/esm/ConferenceArticleCard.js +1 -1
  110. package/dist/esm/ContentCardPaginated.js +3 -3
  111. package/dist/esm/DeckContent.js +3 -3
  112. package/dist/esm/DeckQueue.js +2 -2
  113. package/dist/esm/DeckQueuePaginated.js +2 -2
  114. package/dist/esm/EventsDeck.js +3 -3
  115. package/dist/esm/ExternalResources.js +5 -5
  116. package/dist/esm/Feature.js +1 -1
  117. package/dist/esm/ForbesHero.js +1 -1
  118. package/dist/esm/GridContent.js +4 -4
  119. package/dist/esm/GridContentPaginated.js +4 -4
  120. package/dist/esm/GridHero.js +1 -1
  121. package/dist/esm/HamMagazine.js +2 -2
  122. package/dist/esm/HighlightenVideo.js +1 -1
  123. package/dist/esm/HorizontalArticleListing.js +4 -4
  124. package/dist/esm/HorizontalHero.js +1 -1
  125. package/dist/esm/{ImageSlider-9250ddc9.js → ImageSlider-801685f8.js} +157 -117
  126. package/dist/esm/IssueContentDeck.js +1 -1
  127. package/dist/esm/IssueLanding.js +6 -6
  128. package/dist/esm/LeftNav.js +1 -1
  129. package/dist/esm/MasterDeck.js +4 -4
  130. package/dist/esm/MasterDeckPaginated.js +3 -3
  131. package/dist/esm/MediaSeriesCard.js +4 -4
  132. package/dist/esm/MediaSeriesLanding.js +9 -9
  133. package/dist/esm/MediaSeriesLandingPaginated.js +9 -9
  134. package/dist/esm/NavMagazine.js +2 -2
  135. package/dist/esm/NavNative.js +1 -1
  136. package/dist/esm/OncliveHero.js +1 -1
  137. package/dist/esm/OncliveLargeHero.js +1 -1
  138. package/dist/esm/Pagination-9fe9f61d.js +1 -1
  139. package/dist/esm/PartnerDetailListing.js +7 -8
  140. package/dist/esm/PartnerDetailListingPaginated.js +7 -8
  141. package/dist/esm/PodcastsLanding.js +7 -7
  142. package/dist/esm/PtceDeck.js +1 -1
  143. package/dist/esm/PubSection.js +4 -4
  144. package/dist/esm/PublicationLanding.js +7 -5
  145. package/dist/esm/QueueDeckExpanded.js +4 -4
  146. package/dist/esm/QueueDeckExpandedPaginated.js +4 -4
  147. package/dist/esm/RelatedContent.js +1 -1
  148. package/dist/esm/SeriesListingDeck.js +2 -2
  149. package/dist/esm/{SeriesSlider-acbdf4c9.js → SeriesSlider-5757414b.js} +1 -1
  150. package/dist/esm/{SocialSearchComponent-9e65c8d6.js → SocialSearchComponent-98bfc990.js} +1 -1
  151. package/dist/esm/TaxonomyDescription.js +4 -4
  152. package/dist/esm/TemplateNormal.js +2 -2
  153. package/dist/esm/{Tooltip-bc98d17e.js → Tooltip-0b3b4558.js} +318 -244
  154. package/dist/esm/Ustream.js +1 -1
  155. package/dist/esm/VerticalHero.js +1 -1
  156. package/dist/esm/VideoProgramLandingPage.js +4 -4
  157. package/dist/esm/VideoSeriesCard.js +1 -1
  158. package/dist/esm/VideoSeriesLandingPage.js +4 -4
  159. package/dist/esm/VideoSeriesListing.js +2 -2
  160. package/dist/esm/View.js +5 -5
  161. package/dist/esm/YahooHero.js +1 -1
  162. package/dist/esm/YoutubeGroup.js +1 -1
  163. package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-a2422c4b.js} +3 -3
  164. package/dist/esm/getRelatedArticle.js +34 -16
  165. package/dist/esm/getSerializers.js +4 -4
  166. package/dist/esm/{index-98ca9cec.js → index-0ce54f8a.js} +10 -25
  167. package/dist/esm/index-887c1f5e.js +1571 -0
  168. package/dist/esm/{index-cf4b8124.js → index-9b83d509.js} +234 -15
  169. package/dist/esm/index.js +11 -13
  170. package/dist/esm/{main-754d4992.js → main-dde1592e.js} +1 -1
  171. package/dist/esm/{moment-bc12cb97.js → moment-48faeb9c.js} +95 -80
  172. package/dist/esm/timeDifferenceCalc.js +1 -1
  173. package/dist/esm/visibility-sensor-72fd8f8b.js +1 -1
  174. package/package.json +1 -1
  175. package/dist/cjs/defineProperty-e0fb52c5.js +0 -73
  176. package/dist/cjs/index-96c331fd.js +0 -1572
  177. package/dist/cjs/typeof-1358762e.js +0 -33
  178. package/dist/esm/defineProperty-23a8f8cd.js +0 -68
  179. package/dist/esm/index-30a6257d.js +0 -1570
  180. package/dist/esm/typeof-2f07d0e8.js +0 -30
@@ -31,7 +31,7 @@ require('./_library-dd23b178.js');
31
31
  require('./_set-species-0c7864a2.js');
32
32
  require('./_iter-detect-b1df62f0.js');
33
33
  require('./Segment.js');
34
- require('./main-ae8472f3.js');
34
+ require('./main-812888f1.js');
35
35
  require('next/head');
36
36
  require('@mjhls/mjh-framework/dist/cjs/urlFor');
37
37
  require('react-bootstrap/Row');
@@ -56,7 +56,7 @@ require('./iconBase-be4097c0.js');
56
56
  require('./index.esm-d81454e7.js');
57
57
  require('./NavFooter-b7b16d48.js');
58
58
  require('./index.esm-2ea9e9ff.js');
59
- require('./SocialSearchComponent-d7e5d3a6.js');
59
+ require('./SocialSearchComponent-9d272141.js');
60
60
  require('./SocialIcons.js');
61
61
  require('react-bootstrap/Form');
62
62
  require('react-bootstrap/FormControl');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-50be6759.js');
3
+ var index = require('./index-9ec837cc.js');
4
4
  var React = require('react');
5
5
  var PropTypes = require('prop-types');
6
6
  var ReactDOM = require('react-dom');
@@ -120,7 +120,7 @@ function useUncontrolled(props, config) {
120
120
  function _inheritsLoose(subClass, superClass) {
121
121
  subClass.prototype = Object.create(superClass.prototype);
122
122
  subClass.prototype.constructor = subClass;
123
- index._setPrototypeOf(subClass, superClass);
123
+ subClass.__proto__ = superClass;
124
124
  }
125
125
 
126
126
  var ThemeContext = React__default["default"].createContext({});
@@ -420,6 +420,10 @@ process.env.NODE_ENV !== 'production' ? PropTypes__default["default"].oneOfType(
420
420
 
421
421
  var TransitionGroupContext = React__default["default"].createContext(null);
422
422
 
423
+ var forceReflow = function forceReflow(node) {
424
+ return node.scrollTop;
425
+ };
426
+
423
427
  var UNMOUNTED = 'unmounted';
424
428
  var EXITED = 'exited';
425
429
  var ENTERING = 'entering';
@@ -639,6 +643,14 @@ var Transition = /*#__PURE__*/function (_React$Component) {
639
643
  this.cancelNextCallback();
640
644
 
641
645
  if (nextStatus === ENTERING) {
646
+ if (this.props.unmountOnExit || this.props.mountOnEnter) {
647
+ var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM__default["default"].findDOMNode(this); // https://github.com/reactjs/react-transition-group/pull/749
648
+ // With unmountOnExit or mountOnEnter, the enter animation should happen at the transition between `exited` and `entering`.
649
+ // To make the animation happen, we have to separate each rendering and avoid being processed as batched.
650
+
651
+ if (node) forceReflow(node);
652
+ }
653
+
642
654
  this.performEnter(mounting);
643
655
  } else {
644
656
  this.performExit();
@@ -2583,6 +2595,34 @@ function useForceUpdate() {
2583
2595
 
2584
2596
  var DropdownContext = /*#__PURE__*/React__default["default"].createContext(null);
2585
2597
 
2598
+ function _extends() {
2599
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
2600
+ for (var i = 1; i < arguments.length; i++) {
2601
+ var source = arguments[i];
2602
+ for (var key in source) {
2603
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
2604
+ target[key] = source[key];
2605
+ }
2606
+ }
2607
+ }
2608
+ return target;
2609
+ };
2610
+ return _extends.apply(this, arguments);
2611
+ }
2612
+
2613
+ function _objectWithoutPropertiesLoose(source, excluded) {
2614
+ if (source == null) return {};
2615
+ var target = {};
2616
+ var sourceKeys = Object.keys(source);
2617
+ var key, i;
2618
+ for (i = 0; i < sourceKeys.length; i++) {
2619
+ key = sourceKeys[i];
2620
+ if (excluded.indexOf(key) >= 0) continue;
2621
+ target[key] = source[key];
2622
+ }
2623
+ return target;
2624
+ }
2625
+
2586
2626
  function useSafeState(state) {
2587
2627
  var isMounted = useMounted();
2588
2628
  return [state[0], React.useCallback(function (nextState) {
@@ -2664,38 +2704,57 @@ var max = Math.max;
2664
2704
  var min = Math.min;
2665
2705
  var round = Math.round;
2666
2706
 
2667
- function getBoundingClientRect(element, includeScale) {
2707
+ function getUAString() {
2708
+ var uaData = navigator.userAgentData;
2709
+
2710
+ if (uaData != null && uaData.brands) {
2711
+ return uaData.brands.map(function (item) {
2712
+ return item.brand + "/" + item.version;
2713
+ }).join(' ');
2714
+ }
2715
+
2716
+ return navigator.userAgent;
2717
+ }
2718
+
2719
+ function isLayoutViewport() {
2720
+ return !/^((?!chrome|android).)*safari/i.test(getUAString());
2721
+ }
2722
+
2723
+ function getBoundingClientRect(element, includeScale, isFixedStrategy) {
2668
2724
  if (includeScale === void 0) {
2669
2725
  includeScale = false;
2670
2726
  }
2671
2727
 
2672
- var rect = element.getBoundingClientRect();
2728
+ if (isFixedStrategy === void 0) {
2729
+ isFixedStrategy = false;
2730
+ }
2731
+
2732
+ var clientRect = element.getBoundingClientRect();
2673
2733
  var scaleX = 1;
2674
2734
  var scaleY = 1;
2675
2735
 
2676
- if (isHTMLElement(element) && includeScale) {
2677
- var offsetHeight = element.offsetHeight;
2678
- var offsetWidth = element.offsetWidth; // Do not attempt to divide by 0, otherwise we get `Infinity` as scale
2679
- // Fallback to 1 in case both values are `0`
2680
-
2681
- if (offsetWidth > 0) {
2682
- scaleX = round(rect.width) / offsetWidth || 1;
2683
- }
2684
-
2685
- if (offsetHeight > 0) {
2686
- scaleY = round(rect.height) / offsetHeight || 1;
2687
- }
2736
+ if (includeScale && isHTMLElement(element)) {
2737
+ scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;
2738
+ scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
2688
2739
  }
2689
2740
 
2741
+ var _ref = isElement(element) ? getWindow(element) : window,
2742
+ visualViewport = _ref.visualViewport;
2743
+
2744
+ var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
2745
+ var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
2746
+ var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
2747
+ var width = clientRect.width / scaleX;
2748
+ var height = clientRect.height / scaleY;
2690
2749
  return {
2691
- width: rect.width / scaleX,
2692
- height: rect.height / scaleY,
2693
- top: rect.top / scaleY,
2694
- right: rect.right / scaleX,
2695
- bottom: rect.bottom / scaleY,
2696
- left: rect.left / scaleX,
2697
- x: rect.left / scaleX,
2698
- y: rect.top / scaleY
2750
+ width: width,
2751
+ height: height,
2752
+ top: y,
2753
+ right: x + width,
2754
+ bottom: y + height,
2755
+ left: x,
2756
+ x: x,
2757
+ y: y
2699
2758
  };
2700
2759
  }
2701
2760
 
@@ -2794,8 +2853,8 @@ function getTrueOffsetParent(element) {
2794
2853
 
2795
2854
 
2796
2855
  function getContainingBlock(element) {
2797
- var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
2798
- var isIE = navigator.userAgent.indexOf('Trident') !== -1;
2856
+ var isFirefox = /firefox/i.test(getUAString());
2857
+ var isIE = /Trident/i.test(getUAString());
2799
2858
 
2800
2859
  if (isIE && isHTMLElement(element)) {
2801
2860
  // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
@@ -2808,6 +2867,10 @@ function getContainingBlock(element) {
2808
2867
 
2809
2868
  var currentNode = getParentNode(element);
2810
2869
 
2870
+ if (isShadowRoot(currentNode)) {
2871
+ currentNode = currentNode.host;
2872
+ }
2873
+
2811
2874
  while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
2812
2875
  var css = getComputedStyle$1(currentNode); // This is non-exhaustive but covers the most common CSS properties that
2813
2876
  // create a containing block.
@@ -3000,13 +3063,21 @@ function mapToStyles(_ref2) {
3000
3063
  adaptive = _ref2.adaptive,
3001
3064
  roundOffsets = _ref2.roundOffsets,
3002
3065
  isFixed = _ref2.isFixed;
3066
+ var _offsets$x = offsets.x,
3067
+ x = _offsets$x === void 0 ? 0 : _offsets$x,
3068
+ _offsets$y = offsets.y,
3069
+ y = _offsets$y === void 0 ? 0 : _offsets$y;
3003
3070
 
3004
- var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === 'function' ? roundOffsets(offsets) : offsets,
3005
- _ref3$x = _ref3.x,
3006
- x = _ref3$x === void 0 ? 0 : _ref3$x,
3007
- _ref3$y = _ref3.y,
3008
- y = _ref3$y === void 0 ? 0 : _ref3$y;
3071
+ var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({
3072
+ x: x,
3073
+ y: y
3074
+ }) : {
3075
+ x: x,
3076
+ y: y
3077
+ };
3009
3078
 
3079
+ x = _ref3.x;
3080
+ y = _ref3.y;
3010
3081
  var hasX = offsets.hasOwnProperty('x');
3011
3082
  var hasY = offsets.hasOwnProperty('y');
3012
3083
  var sideX = left;
@@ -3032,7 +3103,7 @@ function mapToStyles(_ref2) {
3032
3103
 
3033
3104
  if (placement === top || (placement === left || placement === right) && variation === end) {
3034
3105
  sideY = bottom;
3035
- var offsetY = isFixed && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]
3106
+ var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]
3036
3107
  offsetParent[heightProp];
3037
3108
  y -= offsetY - popperRect.height;
3038
3109
  y *= gpuAcceleration ? 1 : -1;
@@ -3040,7 +3111,7 @@ function mapToStyles(_ref2) {
3040
3111
 
3041
3112
  if (placement === left || (placement === top || placement === bottom) && variation === end) {
3042
3113
  sideX = right;
3043
- var offsetX = isFixed && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]
3114
+ var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]
3044
3115
  offsetParent[widthProp];
3045
3116
  x -= offsetX - popperRect.width;
3046
3117
  x *= gpuAcceleration ? 1 : -1;
@@ -3051,6 +3122,17 @@ function mapToStyles(_ref2) {
3051
3122
  position: position
3052
3123
  }, adaptive && unsetSides);
3053
3124
 
3125
+ var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
3126
+ x: x,
3127
+ y: y
3128
+ }) : {
3129
+ x: x,
3130
+ y: y
3131
+ };
3132
+
3133
+ x = _ref4.x;
3134
+ y = _ref4.y;
3135
+
3054
3136
  if (gpuAcceleration) {
3055
3137
  var _Object$assign;
3056
3138
 
@@ -3060,9 +3142,9 @@ function mapToStyles(_ref2) {
3060
3142
  return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
3061
3143
  }
3062
3144
 
3063
- function computeStyles(_ref4) {
3064
- var state = _ref4.state,
3065
- options = _ref4.options;
3145
+ function computeStyles(_ref5) {
3146
+ var state = _ref5.state,
3147
+ options = _ref5.options;
3066
3148
  var _options$gpuAccelerat = options.gpuAcceleration,
3067
3149
  gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
3068
3150
  _options$adaptive = options.adaptive,
@@ -3212,31 +3294,21 @@ function getWindowScrollBarX(element) {
3212
3294
  return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
3213
3295
  }
3214
3296
 
3215
- function getViewportRect(element) {
3297
+ function getViewportRect(element, strategy) {
3216
3298
  var win = getWindow(element);
3217
3299
  var html = getDocumentElement(element);
3218
3300
  var visualViewport = win.visualViewport;
3219
3301
  var width = html.clientWidth;
3220
3302
  var height = html.clientHeight;
3221
3303
  var x = 0;
3222
- var y = 0; // NB: This isn't supported on iOS <= 12. If the keyboard is open, the popper
3223
- // can be obscured underneath it.
3224
- // Also, `html.clientHeight` adds the bottom bar height in Safari iOS, even
3225
- // if it isn't open, so if this isn't available, the popper will be detected
3226
- // to overflow the bottom of the screen too early.
3304
+ var y = 0;
3227
3305
 
3228
3306
  if (visualViewport) {
3229
3307
  width = visualViewport.width;
3230
- height = visualViewport.height; // Uses Layout Viewport (like Chrome; Safari does not currently)
3231
- // In Chrome, it returns a value very close to 0 (+/-) but contains rounding
3232
- // errors due to floating point numbers, so we need to check precision.
3233
- // Safari returns a number <= 0, usually < -1 when pinch-zoomed
3234
- // Feature detection fails in mobile emulation mode in Chrome.
3235
- // Math.abs(win.innerWidth / visualViewport.scale - visualViewport.width) <
3236
- // 0.001
3237
- // Fallback here: "Not Safari" userAgent
3238
-
3239
- if (!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {
3308
+ height = visualViewport.height;
3309
+ var layoutViewport = isLayoutViewport();
3310
+
3311
+ if (layoutViewport || !layoutViewport && strategy === 'fixed') {
3240
3312
  x = visualViewport.offsetLeft;
3241
3313
  y = visualViewport.offsetTop;
3242
3314
  }
@@ -3330,8 +3402,8 @@ function rectToClientRect(rect) {
3330
3402
  });
3331
3403
  }
3332
3404
 
3333
- function getInnerBoundingClientRect(element) {
3334
- var rect = getBoundingClientRect(element);
3405
+ function getInnerBoundingClientRect(element, strategy) {
3406
+ var rect = getBoundingClientRect(element, false, strategy === 'fixed');
3335
3407
  rect.top = rect.top + element.clientTop;
3336
3408
  rect.left = rect.left + element.clientLeft;
3337
3409
  rect.bottom = rect.top + element.clientHeight;
@@ -3343,8 +3415,8 @@ function getInnerBoundingClientRect(element) {
3343
3415
  return rect;
3344
3416
  }
3345
3417
 
3346
- function getClientRectFromMixedType(element, clippingParent) {
3347
- return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
3418
+ function getClientRectFromMixedType(element, clippingParent, strategy) {
3419
+ return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
3348
3420
  } // A "clipping parent" is an overflowable container with the characteristic of
3349
3421
  // clipping (or hiding) overflowing elements with a position different from
3350
3422
  // `initial`
@@ -3361,24 +3433,24 @@ function getClippingParents(element) {
3361
3433
 
3362
3434
 
3363
3435
  return clippingParents.filter(function (clippingParent) {
3364
- return isElement(clippingParent) && contains$1(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body' && (canEscapeClipping ? getComputedStyle$1(clippingParent).position !== 'static' : true);
3436
+ return isElement(clippingParent) && contains$1(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
3365
3437
  });
3366
3438
  } // Gets the maximum area that the element is visible in due to any number of
3367
3439
  // clipping parents
3368
3440
 
3369
3441
 
3370
- function getClippingRect(element, boundary, rootBoundary) {
3442
+ function getClippingRect(element, boundary, rootBoundary, strategy) {
3371
3443
  var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);
3372
3444
  var clippingParents = [].concat(mainClippingParents, [rootBoundary]);
3373
3445
  var firstClippingParent = clippingParents[0];
3374
3446
  var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
3375
- var rect = getClientRectFromMixedType(element, clippingParent);
3447
+ var rect = getClientRectFromMixedType(element, clippingParent, strategy);
3376
3448
  accRect.top = max(rect.top, accRect.top);
3377
3449
  accRect.right = min(rect.right, accRect.right);
3378
3450
  accRect.bottom = min(rect.bottom, accRect.bottom);
3379
3451
  accRect.left = max(rect.left, accRect.left);
3380
3452
  return accRect;
3381
- }, getClientRectFromMixedType(element, firstClippingParent));
3453
+ }, getClientRectFromMixedType(element, firstClippingParent, strategy));
3382
3454
  clippingRect.width = clippingRect.right - clippingRect.left;
3383
3455
  clippingRect.height = clippingRect.bottom - clippingRect.top;
3384
3456
  clippingRect.x = clippingRect.left;
@@ -3459,6 +3531,8 @@ function detectOverflow(state, options) {
3459
3531
  var _options = options,
3460
3532
  _options$placement = _options.placement,
3461
3533
  placement = _options$placement === void 0 ? state.placement : _options$placement,
3534
+ _options$strategy = _options.strategy,
3535
+ strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,
3462
3536
  _options$boundary = _options.boundary,
3463
3537
  boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,
3464
3538
  _options$rootBoundary = _options.rootBoundary,
@@ -3473,7 +3547,7 @@ function detectOverflow(state, options) {
3473
3547
  var altContext = elementContext === popper ? reference : popper;
3474
3548
  var popperRect = state.rects.popper;
3475
3549
  var element = state.elements[altBoundary ? altContext : elementContext];
3476
- var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);
3550
+ var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);
3477
3551
  var referenceClientRect = getBoundingClientRect(state.elements.reference);
3478
3552
  var popperOffsets = computeOffsets({
3479
3553
  reference: referenceClientRect,
@@ -3991,7 +4065,7 @@ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
3991
4065
  var isOffsetParentAnElement = isHTMLElement(offsetParent);
3992
4066
  var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
3993
4067
  var documentElement = getDocumentElement(offsetParent);
3994
- var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);
4068
+ var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);
3995
4069
  var scroll = {
3996
4070
  scrollLeft: 0,
3997
4071
  scrollTop: 0
@@ -4531,7 +4605,7 @@ function usePopper(referenceElement, popperElement, _temp) {
4531
4605
  strategy = _ref3$strategy === void 0 ? 'absolute' : _ref3$strategy,
4532
4606
  _ref3$modifiers = _ref3.modifiers,
4533
4607
  modifiers = _ref3$modifiers === void 0 ? EMPTY_MODIFIERS : _ref3$modifiers,
4534
- config = index._objectWithoutPropertiesLoose(_ref3, ["enabled", "placement", "strategy", "modifiers"]);
4608
+ config = _objectWithoutPropertiesLoose(_ref3, ["enabled", "placement", "strategy", "modifiers"]);
4535
4609
 
4536
4610
  var popperInstanceRef = React.useRef();
4537
4611
  var update = React.useCallback(function () {
@@ -4597,7 +4671,7 @@ function usePopper(referenceElement, popperElement, _temp) {
4597
4671
  return undefined;
4598
4672
  }
4599
4673
 
4600
- popperInstanceRef.current = createPopper(referenceElement, popperElement, index._extends({}, config, {
4674
+ popperInstanceRef.current = createPopper(referenceElement, popperElement, _extends({}, config, {
4601
4675
  placement: placement,
4602
4676
  strategy: strategy,
4603
4677
  modifiers: [].concat(modifiers, [ariaDescribedByModifier, updateModifier])
@@ -4607,7 +4681,7 @@ function usePopper(referenceElement, popperElement, _temp) {
4607
4681
  popperInstanceRef.current.destroy();
4608
4682
  popperInstanceRef.current = undefined;
4609
4683
  setState(function (s) {
4610
- return index._extends({}, s, {
4684
+ return _extends({}, s, {
4611
4685
  attributes: {},
4612
4686
  styles: {
4613
4687
  popper: initialPopperStyles(strategy)
@@ -4844,30 +4918,30 @@ function mergeOptionsWithPopperConfig(_ref) {
4844
4918
  _ref$popperConfig = _ref.popperConfig,
4845
4919
  popperConfig = _ref$popperConfig === void 0 ? {} : _ref$popperConfig;
4846
4920
  var modifiers = toModifierMap(popperConfig.modifiers);
4847
- return index._extends({}, popperConfig, {
4921
+ return _extends({}, popperConfig, {
4848
4922
  placement: placement,
4849
4923
  enabled: enabled,
4850
- modifiers: toModifierArray(index._extends({}, modifiers, {
4924
+ modifiers: toModifierArray(_extends({}, modifiers, {
4851
4925
  eventListeners: {
4852
4926
  enabled: enableEvents
4853
4927
  },
4854
- preventOverflow: index._extends({}, modifiers.preventOverflow, {
4855
- options: containerPadding ? index._extends({
4928
+ preventOverflow: _extends({}, modifiers.preventOverflow, {
4929
+ options: containerPadding ? _extends({
4856
4930
  padding: containerPadding
4857
4931
  }, (_modifiers$preventOve = modifiers.preventOverflow) == null ? void 0 : _modifiers$preventOve.options) : (_modifiers$preventOve2 = modifiers.preventOverflow) == null ? void 0 : _modifiers$preventOve2.options
4858
4932
  }),
4859
4933
  offset: {
4860
- options: index._extends({
4934
+ options: _extends({
4861
4935
  offset: offset
4862
4936
  }, (_modifiers$offset = modifiers.offset) == null ? void 0 : _modifiers$offset.options)
4863
4937
  },
4864
- arrow: index._extends({}, modifiers.arrow, {
4938
+ arrow: _extends({}, modifiers.arrow, {
4865
4939
  enabled: !!arrowElement,
4866
- options: index._extends({}, (_modifiers$arrow = modifiers.arrow) == null ? void 0 : _modifiers$arrow.options, {
4940
+ options: _extends({}, (_modifiers$arrow = modifiers.arrow) == null ? void 0 : _modifiers$arrow.options, {
4867
4941
  element: arrowElement
4868
4942
  })
4869
4943
  }),
4870
- flip: index._extends({
4944
+ flip: _extends({
4871
4945
  enabled: !!flip
4872
4946
  }, modifiers.flip)
4873
4947
  }))
@@ -4938,7 +5012,7 @@ function useDropdownMenu(options) {
4938
5012
  })),
4939
5013
  styles = _usePopper.styles,
4940
5014
  attributes = _usePopper.attributes,
4941
- popper = index._objectWithoutPropertiesLoose(_usePopper, ["styles", "attributes"]);
5015
+ popper = _objectWithoutPropertiesLoose(_usePopper, ["styles", "attributes"]);
4942
5016
 
4943
5017
  var menu;
4944
5018
  var menuProps = {
@@ -4953,15 +5027,15 @@ function useDropdownMenu(options) {
4953
5027
  };
4954
5028
 
4955
5029
  if (!shouldUsePopper) {
4956
- menu = index._extends({}, childArgs, {
5030
+ menu = _extends({}, childArgs, {
4957
5031
  props: menuProps
4958
5032
  });
4959
5033
  } else {
4960
- menu = index._extends({}, popper, childArgs, {
4961
- props: index._extends({}, menuProps, attributes.popper, {
5034
+ menu = _extends({}, popper, childArgs, {
5035
+ props: _extends({}, menuProps, attributes.popper, {
4962
5036
  style: styles.popper
4963
5037
  }),
4964
- arrowProps: index._extends({
5038
+ arrowProps: _extends({
4965
5039
  ref: attachArrowRef
4966
5040
  }, attributes.arrow, {
4967
5041
  style: styles.arrow
@@ -5044,7 +5118,7 @@ var defaultProps$r = {
5044
5118
  */
5045
5119
  function DropdownMenu$1(_ref2) {
5046
5120
  var children = _ref2.children,
5047
- options = index._objectWithoutPropertiesLoose(_ref2, ["children"]);
5121
+ options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
5048
5122
 
5049
5123
  var args = useDropdownMenu(options);
5050
5124
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, args.hasShown ? children(args) : null);
@@ -7281,7 +7355,7 @@ var Modal$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
7281
7355
  onEnter = _ref.onEnter,
7282
7356
  onEntering = _ref.onEntering,
7283
7357
  onEntered = _ref.onEntered,
7284
- rest = index._objectWithoutPropertiesLoose(_ref, ["show", "role", "className", "style", "children", "backdrop", "keyboard", "onBackdropClick", "onEscapeKeyDown", "transition", "backdropTransition", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "renderDialog", "renderBackdrop", "manager", "container", "containerClassName", "onShow", "onHide", "onExit", "onExited", "onExiting", "onEnter", "onEntering", "onEntered"]);
7358
+ rest = _objectWithoutPropertiesLoose(_ref, ["show", "role", "className", "style", "children", "backdrop", "keyboard", "onBackdropClick", "onEscapeKeyDown", "transition", "backdropTransition", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "renderDialog", "renderBackdrop", "manager", "container", "containerClassName", "onShow", "onHide", "onExit", "onExited", "onExiting", "onEnter", "onEntering", "onEntered"]);
7285
7359
 
7286
7360
  var container = useWaitForDOMRef(containerRef);
7287
7361
  var modal = useModalManager(providedManager);
@@ -7414,7 +7488,7 @@ var Modal$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
7414
7488
  return null;
7415
7489
  }
7416
7490
 
7417
- var dialogProps = index._extends({
7491
+ var dialogProps = _extends({
7418
7492
  role: role,
7419
7493
  ref: modal.setDialogRef,
7420
7494
  // apparently only works on the dialog role element
@@ -8401,7 +8475,7 @@ var Overlay = /*#__PURE__*/React__default["default"].forwardRef(function (props,
8401
8475
  })),
8402
8476
  styles = _usePopper.styles,
8403
8477
  attributes = _usePopper.attributes,
8404
- popper = index._objectWithoutPropertiesLoose(_usePopper, ["styles", "attributes"]);
8478
+ popper = _objectWithoutPropertiesLoose(_usePopper, ["styles", "attributes"]);
8405
8479
 
8406
8480
  if (props.show) {
8407
8481
  if (exited) setExited(false);
@@ -8429,13 +8503,13 @@ var Overlay = /*#__PURE__*/React__default["default"].forwardRef(function (props,
8429
8503
  return null;
8430
8504
  }
8431
8505
 
8432
- var child = props.children(index._extends({}, popper, {
8506
+ var child = props.children(_extends({}, popper, {
8433
8507
  show: !!props.show,
8434
- props: index._extends({}, attributes.popper, {
8508
+ props: _extends({}, attributes.popper, {
8435
8509
  style: styles.popper,
8436
8510
  ref: mergedRef
8437
8511
  }),
8438
- arrowProps: index._extends({}, attributes.arrow, {
8512
+ arrowProps: _extends({}, attributes.arrow, {
8439
8513
  style: styles.arrow,
8440
8514
  ref: attachArrowRef
8441
8515
  })
@@ -4,7 +4,7 @@ var asyncToGenerator = require('./asyncToGenerator-65df6bf8.js');
4
4
  var slicedToArray = require('./slicedToArray-067dd3bc.js');
5
5
  var React = require('react');
6
6
  var index_esm = require('./index.esm-d51c9ac6.js');
7
- var main = require('./main-ae8472f3.js');
7
+ var main = require('./main-812888f1.js');
8
8
  require('./_commonjsHelpers-06173234.js');
9
9
  require('./core.get-iterator-method-5643aa10.js');
10
10
  require('./web.dom.iterable-d98303e0.js');
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var React = require('react');
4
- require('./moment-aca40de1.js');
4
+ require('./moment-f730814d.js');
5
5
  var urlFor = require('./urlFor.js');
6
6
  require('./_commonjsHelpers-06173234.js');
7
7
  require('./slicedToArray-067dd3bc.js');
@@ -7,7 +7,7 @@ var BlockContent = require('./BlockContent-96b44364.js');
7
7
  var Col = require('react-bootstrap/Col');
8
8
  var Form = require('react-bootstrap/Form');
9
9
  var Button = require('react-bootstrap/Button');
10
- var getSerializers = require('./index-b0e9a7b6.js');
10
+ var getSerializers = require('./index-1c8109ca.js');
11
11
  var VideoSeriesListing = require('./VideoSeriesListing.js');
12
12
  require('./_commonjsHelpers-06173234.js');
13
13
  require('./core.get-iterator-method-5643aa10.js');
@@ -26,13 +26,13 @@ require('./index-187c967e.js');
26
26
  require('./Beam.js');
27
27
  require('./stringify-f7a37a8d.js');
28
28
  require('./Segment.js');
29
- require('./main-ae8472f3.js');
29
+ require('./main-812888f1.js');
30
30
  require('./urlForFile-5084fc48.js');
31
31
  require('./index-65621b6c.js');
32
32
  require('react-dom');
33
33
  require('./typeof-220bbf73.js');
34
34
  require('./_is-array-54228b29.js');
35
- require('./brightcove-react-player-loader.es-4c7825a1.js');
35
+ require('./brightcove-react-player-loader.es-35faab67.js');
36
36
  require('./_object-to-array-9337ba83.js');
37
37
  require('./keys-e982b3fa.js');
38
38
  require('./_object-sap-d1978572.js');
@@ -40,7 +40,7 @@ require('react-bootstrap/Modal');
40
40
  require('react-ga');
41
41
  require('./GroupDeck.js');
42
42
  require('./smoothscroll-99df7f93.js');
43
- require('./moment-aca40de1.js');
43
+ require('./moment-f730814d.js');
44
44
  require('./SocialShare.js');
45
45
  require('next/head');
46
46
  require('react-share');
@@ -4,7 +4,7 @@ var _typeof = require('./typeof-220bbf73.js');
4
4
  var React = require('react');
5
5
  var index = require('./index-65621b6c.js');
6
6
  var urlFor = require('./urlFor.js');
7
- var moment = require('./moment-aca40de1.js');
7
+ var moment = require('./moment-f730814d.js');
8
8
  var styleInject_es = require('./style-inject.es-dcee06b6.js');
9
9
  require('prop-types');
10
10
  require('./_commonjsHelpers-06173234.js');
@@ -3,7 +3,7 @@
3
3
  var asyncToGenerator = require('./asyncToGenerator-65df6bf8.js');
4
4
  var _typeof = require('./typeof-220bbf73.js');
5
5
  var React = require('react');
6
- var moment = require('./moment-aca40de1.js');
6
+ var moment = require('./moment-f730814d.js');
7
7
  var index = require('./index-187c967e.js');
8
8
  var Breadcrumbs = require('./Breadcrumbs.js');
9
9
  var MasterDeck = require('./MasterDeck.js');
@@ -37,13 +37,13 @@ require('./index.es-1ab8dda7.js');
37
37
  require('./visibility-sensor-56020df6.js');
38
38
  require('react-dom');
39
39
  require('./index-d48b231c.js');
40
- require('./ADlgInfeed-5d21496c.js');
40
+ require('./ADlgInfeed-b6e86366.js');
41
41
  require('./AdSlot.js');
42
42
  require('./Beam.js');
43
43
  require('./stringify-f7a37a8d.js');
44
44
  require('./Segment.js');
45
- require('./main-ae8472f3.js');
46
- require('./ADInfeed-25f53b70.js');
45
+ require('./main-812888f1.js');
46
+ require('./ADInfeed-f7c65126.js');
47
47
  require('./index-65621b6c.js');
48
48
  require('./urlFor.js');
49
49
  require('./style-inject.es-dcee06b6.js');
@@ -7,7 +7,7 @@ var index = require('./index-7435b964.js');
7
7
  var Container = require('react-bootstrap/Container');
8
8
  var visibilitySensor = require('./visibility-sensor-56020df6.js');
9
9
  var index_esm = require('./index.esm-d81454e7.js');
10
- var moment = require('./moment-aca40de1.js');
10
+ var moment = require('./moment-f730814d.js');
11
11
  var Router = require('next/router');
12
12
  var YoutubeGroup = require('./YoutubeGroup.js');
13
13
  var debounce = require('./debounce-d4a2369b.js');
@@ -29,7 +29,7 @@ require('./index-65621b6c.js');
29
29
  require('./smoothscroll-99df7f93.js');
30
30
  require('./urlFor.js');
31
31
  require('./index-d48b231c.js');
32
- require('./main-ae8472f3.js');
32
+ require('./main-812888f1.js');
33
33
  require('./isSymbol-03abbdf0.js');
34
34
  require('./toNumber-5e1fac58.js');
35
35