@mjhls/mjh-framework 1.0.1037-d4s-3508 → 1.0.1038

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 (154) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +2 -3
  4. package/dist/cjs/AD300x250x600.js +2 -3
  5. package/dist/cjs/AD728x90.js +2 -3
  6. package/dist/cjs/ADFloatingFooter.js +2 -3
  7. package/dist/cjs/ADGutter.js +2 -3
  8. package/dist/cjs/{ADInfeed-03783178.js → ADInfeed-b52ecddd.js} +1 -1
  9. package/dist/cjs/ADSkyscraper.js +2 -3
  10. package/dist/cjs/ADSponsoredResources.js +2 -3
  11. package/dist/cjs/ADWebcast.js +2 -3
  12. package/dist/cjs/ADWelcome.js +2 -3
  13. package/dist/cjs/{ADlgInfeed-0202e9e6.js → ADlgInfeed-59dcc040.js} +1 -1
  14. package/dist/cjs/AdSlot.js +2 -3
  15. package/dist/cjs/AdSlotsProvider.js +2 -3
  16. package/dist/cjs/AlgoliaSearch.js +1068 -521
  17. package/dist/cjs/ArticleCarousel.js +1 -1
  18. package/dist/cjs/ArticleProgramLandingPage.js +3 -4
  19. package/dist/cjs/ArticleSeriesLandingPage.js +4 -5
  20. package/dist/cjs/ArticleSeriesListing.js +2 -3
  21. package/dist/cjs/Auth.js +40 -11
  22. package/dist/cjs/AuthWrapper.js +89 -19
  23. package/dist/cjs/CEDeckSupabase.js +2 -3
  24. package/dist/cjs/CMEDeck.js +2 -3
  25. package/dist/cjs/Column3.js +2 -3
  26. package/dist/cjs/ContentCardPaginated.js +4 -5
  27. package/dist/cjs/DeckContent.js +3 -4
  28. package/dist/cjs/DeckQueue.js +2 -3
  29. package/dist/cjs/DeckQueuePaginated.js +3 -4
  30. package/dist/cjs/{Dfp-c313a700.js → Dfp-67646058.js} +1 -2
  31. package/dist/cjs/EventsDeck.js +2 -2
  32. package/dist/cjs/ExternalResources.js +4 -5
  33. package/dist/cjs/Feature.js +1 -1
  34. package/dist/cjs/GridContent.js +4 -5
  35. package/dist/cjs/GridContentPaginated.js +5 -6
  36. package/dist/cjs/HamMagazine.js +2 -2
  37. package/dist/cjs/HorizontalArticleListing.js +3 -4
  38. package/dist/cjs/{ImageSlider-984a697b.js → ImageSlider-d65bc9c8.js} +156 -116
  39. package/dist/cjs/IssueLanding.js +5 -6
  40. package/dist/cjs/LeftNav.js +2 -3
  41. package/dist/cjs/MasterDeck.js +4 -6
  42. package/dist/cjs/MasterDeckPaginated.js +5 -6
  43. package/dist/cjs/{MediaSeriesCard-646d8fb5.js → MediaSeriesCard-3759e7fb.js} +1 -1
  44. package/dist/cjs/MediaSeriesLanding.js +8 -9
  45. package/dist/cjs/MediaSeriesLandingPaginated.js +9 -10
  46. package/dist/cjs/NavMagazine.js +2 -2
  47. package/dist/cjs/NavNative.js +1 -1
  48. package/dist/cjs/{Pagination-842c556f.js → Pagination-6359861a.js} +1 -1
  49. package/dist/cjs/PartnerDetailListing.js +6 -8
  50. package/dist/cjs/PartnerDetailListingPaginated.js +7 -9
  51. package/dist/cjs/PodcastsLanding.js +6 -7
  52. package/dist/cjs/PubSection.js +4 -5
  53. package/dist/cjs/QueueDeckExpanded.js +4 -5
  54. package/dist/cjs/QueueDeckExpandedPaginated.js +5 -6
  55. package/dist/cjs/SeriesListingDeck.js +3 -4
  56. package/dist/cjs/{SeriesSlider-a2621860.js → SeriesSlider-086a8319.js} +1 -1
  57. package/dist/cjs/{SocialSearchComponent-e9ec9c63.js → SocialSearchComponent-d7e5d3a6.js} +1 -1
  58. package/dist/cjs/TaxonomyDescription.js +3 -4
  59. package/dist/cjs/TemplateNormal.js +3 -4
  60. package/dist/cjs/{Tooltip-4cb8849a.js → Tooltip-71754b2a.js} +355 -272
  61. package/dist/cjs/Ustream.js +1 -1
  62. package/dist/cjs/VideoProgramLandingPage.js +3 -4
  63. package/dist/cjs/VideoSeriesLandingPage.js +4 -5
  64. package/dist/cjs/VideoSeriesListing.js +2 -3
  65. package/dist/cjs/View.js +4 -5
  66. package/dist/cjs/YoutubeGroup.js +1 -1
  67. package/dist/cjs/getSerializers.js +3 -4
  68. package/dist/cjs/{index-53f4acd3.js → index-4b2706b8.js} +2 -2
  69. package/dist/cjs/{index-d2a6ef75.js → index-7435b964.js} +467 -2
  70. package/dist/cjs/{index-f86bb269.js → index-96c331fd.js} +53 -52
  71. package/dist/cjs/index-b95410f0.js +54 -0
  72. package/dist/cjs/index.js +10 -13
  73. package/dist/cjs/{main-47be4f9f.js → main-ae8472f3.js} +4 -9
  74. package/dist/esm/AD.js +1 -1
  75. package/dist/esm/AD300x250.js +2 -3
  76. package/dist/esm/AD300x250x600.js +2 -3
  77. package/dist/esm/AD728x90.js +2 -3
  78. package/dist/esm/ADFloatingFooter.js +2 -3
  79. package/dist/esm/ADGutter.js +2 -3
  80. package/dist/esm/{ADInfeed-b034e2e6.js → ADInfeed-2503361a.js} +1 -1
  81. package/dist/esm/ADSkyscraper.js +2 -3
  82. package/dist/esm/ADSponsoredResources.js +2 -3
  83. package/dist/esm/ADWebcast.js +2 -3
  84. package/dist/esm/ADWelcome.js +2 -3
  85. package/dist/esm/{ADlgInfeed-444f326d.js → ADlgInfeed-bc4a726f.js} +1 -1
  86. package/dist/esm/AdSlot.js +2 -3
  87. package/dist/esm/AdSlotsProvider.js +2 -3
  88. package/dist/esm/AlgoliaSearch.js +1065 -518
  89. package/dist/esm/ArticleCarousel.js +1 -1
  90. package/dist/esm/ArticleProgramLandingPage.js +3 -4
  91. package/dist/esm/ArticleSeriesLandingPage.js +4 -5
  92. package/dist/esm/ArticleSeriesListing.js +2 -3
  93. package/dist/esm/Auth.js +40 -11
  94. package/dist/esm/AuthWrapper.js +86 -16
  95. package/dist/esm/CEDeckSupabase.js +2 -3
  96. package/dist/esm/CMEDeck.js +2 -3
  97. package/dist/esm/Column3.js +2 -3
  98. package/dist/esm/ContentCardPaginated.js +4 -5
  99. package/dist/esm/DeckContent.js +3 -4
  100. package/dist/esm/DeckQueue.js +2 -3
  101. package/dist/esm/DeckQueuePaginated.js +3 -4
  102. package/dist/esm/{Dfp-102f0beb.js → Dfp-cf85d203.js} +1 -2
  103. package/dist/esm/EventsDeck.js +2 -2
  104. package/dist/esm/ExternalResources.js +4 -5
  105. package/dist/esm/Feature.js +1 -1
  106. package/dist/esm/GridContent.js +4 -5
  107. package/dist/esm/GridContentPaginated.js +5 -6
  108. package/dist/esm/HamMagazine.js +2 -2
  109. package/dist/esm/HorizontalArticleListing.js +3 -4
  110. package/dist/esm/{ImageSlider-497e9c88.js → ImageSlider-da225417.js} +157 -117
  111. package/dist/esm/IssueLanding.js +5 -6
  112. package/dist/esm/LeftNav.js +2 -3
  113. package/dist/esm/MasterDeck.js +4 -6
  114. package/dist/esm/MasterDeckPaginated.js +5 -6
  115. package/dist/esm/{MediaSeriesCard-77457d91.js → MediaSeriesCard-f3db58fa.js} +1 -1
  116. package/dist/esm/MediaSeriesLanding.js +8 -9
  117. package/dist/esm/MediaSeriesLandingPaginated.js +9 -10
  118. package/dist/esm/NavMagazine.js +2 -2
  119. package/dist/esm/NavNative.js +1 -1
  120. package/dist/esm/{Pagination-dc30727b.js → Pagination-9fe9f61d.js} +1 -1
  121. package/dist/esm/PartnerDetailListing.js +6 -8
  122. package/dist/esm/PartnerDetailListingPaginated.js +7 -9
  123. package/dist/esm/PodcastsLanding.js +6 -7
  124. package/dist/esm/PubSection.js +4 -5
  125. package/dist/esm/QueueDeckExpanded.js +4 -5
  126. package/dist/esm/QueueDeckExpandedPaginated.js +5 -6
  127. package/dist/esm/SeriesListingDeck.js +3 -4
  128. package/dist/esm/{SeriesSlider-07be99e0.js → SeriesSlider-a6b1d617.js} +1 -1
  129. package/dist/esm/{SocialSearchComponent-020f9e81.js → SocialSearchComponent-6065bff2.js} +1 -1
  130. package/dist/esm/TaxonomyDescription.js +3 -4
  131. package/dist/esm/TemplateNormal.js +3 -4
  132. package/dist/esm/{Tooltip-95655b44.js → Tooltip-8307d9d1.js} +150 -67
  133. package/dist/esm/Ustream.js +1 -1
  134. package/dist/esm/VideoProgramLandingPage.js +3 -4
  135. package/dist/esm/VideoSeriesLandingPage.js +4 -5
  136. package/dist/esm/VideoSeriesListing.js +2 -3
  137. package/dist/esm/View.js +4 -5
  138. package/dist/esm/YoutubeGroup.js +1 -1
  139. package/dist/esm/getSerializers.js +3 -4
  140. package/dist/esm/index-174b5baf.js +52 -0
  141. package/dist/esm/{index-79cfd25c.js → index-30a6257d.js} +53 -52
  142. package/dist/esm/{index-f0fc23eb.js → index-5cc7b406.js} +466 -1
  143. package/dist/esm/{index-9fdf6b2a.js → index-9d159a77.js} +2 -2
  144. package/dist/esm/index.js +10 -13
  145. package/dist/esm/{main-f97773b2.js → main-754d4992.js} +4 -9
  146. package/package.json +1 -1
  147. package/dist/cjs/defineProperty-e0fb52c5.js +0 -73
  148. package/dist/cjs/events-1b438fe7.js +0 -469
  149. package/dist/cjs/index-50be6759.js +0 -105
  150. package/dist/cjs/typeof-1358762e.js +0 -33
  151. package/dist/esm/defineProperty-23a8f8cd.js +0 -68
  152. package/dist/esm/events-6c3a7a63.js +0 -467
  153. package/dist/esm/index-98ca9cec.js +0 -100
  154. package/dist/esm/typeof-2f07d0e8.js +0 -30
@@ -18,8 +18,7 @@ import './core.get-iterator-method-ea258bb1.js';
18
18
  import './AdSlot.js';
19
19
  import './extends-1559c147.js';
20
20
  import 'prop-types';
21
- import './index-f0fc23eb.js';
22
- import './events-6c3a7a63.js';
21
+ import './index-5cc7b406.js';
23
22
  import './debounce-533d9748.js';
24
23
  import './isSymbol-a7e9aafe.js';
25
24
  import './toNumber-5aeba6e7.js';
@@ -30,7 +29,7 @@ import './_library-528f1934.js';
30
29
  import './_set-species-2cd9340f.js';
31
30
  import './_iter-detect-98db3b07.js';
32
31
  import './Segment.js';
33
- import './main-f97773b2.js';
32
+ import './main-754d4992.js';
34
33
  import 'next/head';
35
34
  import '@mjhls/mjh-framework/dist/cjs/urlFor';
36
35
  import 'react-bootstrap/Row';
@@ -55,7 +54,7 @@ import './iconBase-ccc56b97.js';
55
54
  import './index.esm-eb1e8e80.js';
56
55
  import './NavFooter-1546a102.js';
57
56
  import './index.esm-35a42e7d.js';
58
- import './SocialSearchComponent-020f9e81.js';
57
+ import './SocialSearchComponent-6065bff2.js';
59
58
  import './SocialIcons.js';
60
59
  import 'react-bootstrap/Form';
61
60
  import 'react-bootstrap/FormControl';
@@ -1,9 +1,42 @@
1
- import { _ as _objectWithoutPropertiesLoose, b as _extends, a as _setPrototypeOf, c as classnames } from './index-98ca9cec.js';
1
+ import { c as classnames } from './index-174b5baf.js';
2
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';
6
6
 
7
+ function _extends() {
8
+ _extends = Object.assign || function (target) {
9
+ for (var i = 1; i < arguments.length; i++) {
10
+ var source = arguments[i];
11
+
12
+ for (var key in source) {
13
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
14
+ target[key] = source[key];
15
+ }
16
+ }
17
+ }
18
+
19
+ return target;
20
+ };
21
+
22
+ return _extends.apply(this, arguments);
23
+ }
24
+
25
+ function _objectWithoutPropertiesLoose(source, excluded) {
26
+ if (source == null) return {};
27
+ var target = {};
28
+ var sourceKeys = Object.keys(source);
29
+ var key, i;
30
+
31
+ for (i = 0; i < sourceKeys.length; i++) {
32
+ key = sourceKeys[i];
33
+ if (excluded.indexOf(key) >= 0) continue;
34
+ target[key] = source[key];
35
+ }
36
+
37
+ return target;
38
+ }
39
+
7
40
  /**
8
41
  * Copyright (c) 2013-present, Facebook, Inc.
9
42
  *
@@ -109,6 +142,15 @@ function useUncontrolled(props, config) {
109
142
  }, props);
110
143
  }
111
144
 
145
+ function _setPrototypeOf(o, p) {
146
+ _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
147
+ o.__proto__ = p;
148
+ return o;
149
+ };
150
+
151
+ return _setPrototypeOf(o, p);
152
+ }
153
+
112
154
  function _inheritsLoose(subClass, superClass) {
113
155
  subClass.prototype = Object.create(superClass.prototype);
114
156
  subClass.prototype.constructor = subClass;
@@ -2652,7 +2694,10 @@ function isShadowRoot(node) {
2652
2694
  return node instanceof OwnElement || node instanceof ShadowRoot;
2653
2695
  }
2654
2696
 
2655
- var round$1 = Math.round;
2697
+ var max = Math.max;
2698
+ var min = Math.min;
2699
+ var round = Math.round;
2700
+
2656
2701
  function getBoundingClientRect(element, includeScale) {
2657
2702
  if (includeScale === void 0) {
2658
2703
  includeScale = false;
@@ -2663,20 +2708,28 @@ function getBoundingClientRect(element, includeScale) {
2663
2708
  var scaleY = 1;
2664
2709
 
2665
2710
  if (isHTMLElement(element) && includeScale) {
2711
+ var offsetHeight = element.offsetHeight;
2712
+ var offsetWidth = element.offsetWidth; // Do not attempt to divide by 0, otherwise we get `Infinity` as scale
2666
2713
  // Fallback to 1 in case both values are `0`
2667
- scaleX = rect.width / element.offsetWidth || 1;
2668
- scaleY = rect.height / element.offsetHeight || 1;
2714
+
2715
+ if (offsetWidth > 0) {
2716
+ scaleX = round(rect.width) / offsetWidth || 1;
2717
+ }
2718
+
2719
+ if (offsetHeight > 0) {
2720
+ scaleY = round(rect.height) / offsetHeight || 1;
2721
+ }
2669
2722
  }
2670
2723
 
2671
2724
  return {
2672
- width: round$1(rect.width / scaleX),
2673
- height: round$1(rect.height / scaleY),
2674
- top: round$1(rect.top / scaleY),
2675
- right: round$1(rect.right / scaleX),
2676
- bottom: round$1(rect.bottom / scaleY),
2677
- left: round$1(rect.left / scaleX),
2678
- x: round$1(rect.left / scaleX),
2679
- y: round$1(rect.top / scaleY)
2725
+ width: rect.width / scaleX,
2726
+ height: rect.height / scaleY,
2727
+ top: rect.top / scaleY,
2728
+ right: rect.right / scaleX,
2729
+ bottom: rect.bottom / scaleY,
2730
+ left: rect.left / scaleX,
2731
+ x: rect.left / scaleX,
2732
+ y: rect.top / scaleY
2680
2733
  };
2681
2734
  }
2682
2735
 
@@ -2825,13 +2878,13 @@ function getMainAxisFromPlacement(placement) {
2825
2878
  return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
2826
2879
  }
2827
2880
 
2828
- var max = Math.max;
2829
- var min = Math.min;
2830
- var round = Math.round;
2831
-
2832
2881
  function within(min$1, value, max$1) {
2833
2882
  return max(min$1, min(value, max$1));
2834
2883
  }
2884
+ function withinMaxClamp(min, value, max) {
2885
+ var v = within(min, value, max);
2886
+ return v > max ? max : v;
2887
+ }
2835
2888
 
2836
2889
  function getFreshSideObject() {
2837
2890
  return {
@@ -2944,6 +2997,10 @@ var arrow$1 = {
2944
2997
  requiresIfExists: ['preventOverflow']
2945
2998
  };
2946
2999
 
3000
+ function getVariation(placement) {
3001
+ return placement.split('-')[1];
3002
+ }
3003
+
2947
3004
  var unsetSides = {
2948
3005
  top: 'auto',
2949
3006
  right: 'auto',
@@ -2959,8 +3016,8 @@ function roundOffsetsByDPR(_ref) {
2959
3016
  var win = window;
2960
3017
  var dpr = win.devicePixelRatio || 1;
2961
3018
  return {
2962
- x: round(round(x * dpr) / dpr) || 0,
2963
- y: round(round(y * dpr) / dpr) || 0
3019
+ x: round(x * dpr) / dpr || 0,
3020
+ y: round(y * dpr) / dpr || 0
2964
3021
  };
2965
3022
  }
2966
3023
 
@@ -2970,11 +3027,13 @@ function mapToStyles(_ref2) {
2970
3027
  var popper = _ref2.popper,
2971
3028
  popperRect = _ref2.popperRect,
2972
3029
  placement = _ref2.placement,
3030
+ variation = _ref2.variation,
2973
3031
  offsets = _ref2.offsets,
2974
3032
  position = _ref2.position,
2975
3033
  gpuAcceleration = _ref2.gpuAcceleration,
2976
3034
  adaptive = _ref2.adaptive,
2977
- roundOffsets = _ref2.roundOffsets;
3035
+ roundOffsets = _ref2.roundOffsets,
3036
+ isFixed = _ref2.isFixed;
2978
3037
 
2979
3038
  var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === 'function' ? roundOffsets(offsets) : offsets,
2980
3039
  _ref3$x = _ref3.x,
@@ -2996,7 +3055,7 @@ function mapToStyles(_ref2) {
2996
3055
  if (offsetParent === getWindow(popper)) {
2997
3056
  offsetParent = getDocumentElement(popper);
2998
3057
 
2999
- if (getComputedStyle$1(offsetParent).position !== 'static') {
3058
+ if (getComputedStyle$1(offsetParent).position !== 'static' && position === 'absolute') {
3000
3059
  heightProp = 'scrollHeight';
3001
3060
  widthProp = 'scrollWidth';
3002
3061
  }
@@ -3005,17 +3064,19 @@ function mapToStyles(_ref2) {
3005
3064
 
3006
3065
  offsetParent = offsetParent;
3007
3066
 
3008
- if (placement === top) {
3009
- sideY = bottom; // $FlowFixMe[prop-missing]
3010
-
3011
- y -= offsetParent[heightProp] - popperRect.height;
3067
+ if (placement === top || (placement === left || placement === right) && variation === end) {
3068
+ sideY = bottom;
3069
+ var offsetY = isFixed && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]
3070
+ offsetParent[heightProp];
3071
+ y -= offsetY - popperRect.height;
3012
3072
  y *= gpuAcceleration ? 1 : -1;
3013
3073
  }
3014
3074
 
3015
- if (placement === left) {
3016
- sideX = right; // $FlowFixMe[prop-missing]
3017
-
3018
- x -= offsetParent[widthProp] - popperRect.width;
3075
+ if (placement === left || (placement === top || placement === bottom) && variation === end) {
3076
+ sideX = right;
3077
+ var offsetX = isFixed && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]
3078
+ offsetParent[widthProp];
3079
+ x -= offsetX - popperRect.width;
3019
3080
  x *= gpuAcceleration ? 1 : -1;
3020
3081
  }
3021
3082
  }
@@ -3027,7 +3088,7 @@ function mapToStyles(_ref2) {
3027
3088
  if (gpuAcceleration) {
3028
3089
  var _Object$assign;
3029
3090
 
3030
- return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) < 2 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
3091
+ return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
3031
3092
  }
3032
3093
 
3033
3094
  return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
@@ -3055,9 +3116,11 @@ function computeStyles(_ref4) {
3055
3116
 
3056
3117
  var commonStyles = {
3057
3118
  placement: getBasePlacement(state.placement),
3119
+ variation: getVariation(state.placement),
3058
3120
  popper: state.elements.popper,
3059
3121
  popperRect: state.rects.popper,
3060
- gpuAcceleration: gpuAcceleration
3122
+ gpuAcceleration: gpuAcceleration,
3123
+ isFixed: state.options.strategy === 'fixed'
3061
3124
  };
3062
3125
 
3063
3126
  if (state.modifiersData.popperOffsets != null) {
@@ -3315,7 +3378,7 @@ function getInnerBoundingClientRect(element) {
3315
3378
  }
3316
3379
 
3317
3380
  function getClientRectFromMixedType(element, clippingParent) {
3318
- return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isHTMLElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
3381
+ return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
3319
3382
  } // A "clipping parent" is an overflowable container with the characteristic of
3320
3383
  // clipping (or hiding) overflowing elements with a position different from
3321
3384
  // `initial`
@@ -3332,7 +3395,7 @@ function getClippingParents(element) {
3332
3395
 
3333
3396
 
3334
3397
  return clippingParents.filter(function (clippingParent) {
3335
- return isElement(clippingParent) && contains$1(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
3398
+ return isElement(clippingParent) && contains$1(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body' && (canEscapeClipping ? getComputedStyle$1(clippingParent).position !== 'static' : true);
3336
3399
  });
3337
3400
  } // Gets the maximum area that the element is visible in due to any number of
3338
3401
  // clipping parents
@@ -3357,10 +3420,6 @@ function getClippingRect(element, boundary, rootBoundary) {
3357
3420
  return clippingRect;
3358
3421
  }
3359
3422
 
3360
- function getVariation(placement) {
3361
- return placement.split('-')[1];
3362
- }
3363
-
3364
3423
  function computeOffsets(_ref) {
3365
3424
  var reference = _ref.reference,
3366
3425
  element = _ref.element,
@@ -3446,11 +3505,10 @@ function detectOverflow(state, options) {
3446
3505
  padding = _options$padding === void 0 ? 0 : _options$padding;
3447
3506
  var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
3448
3507
  var altContext = elementContext === popper ? reference : popper;
3449
- var referenceElement = state.elements.reference;
3450
3508
  var popperRect = state.rects.popper;
3451
3509
  var element = state.elements[altBoundary ? altContext : elementContext];
3452
3510
  var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);
3453
- var referenceClientRect = getBoundingClientRect(referenceElement);
3511
+ var referenceClientRect = getBoundingClientRect(state.elements.reference);
3454
3512
  var popperOffsets = computeOffsets({
3455
3513
  reference: referenceClientRect,
3456
3514
  element: popperRect,
@@ -3837,6 +3895,14 @@ function preventOverflow(_ref) {
3837
3895
  var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
3838
3896
  placement: state.placement
3839
3897
  })) : tetherOffset;
3898
+ var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {
3899
+ mainAxis: tetherOffsetValue,
3900
+ altAxis: tetherOffsetValue
3901
+ } : Object.assign({
3902
+ mainAxis: 0,
3903
+ altAxis: 0
3904
+ }, tetherOffsetValue);
3905
+ var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;
3840
3906
  var data = {
3841
3907
  x: 0,
3842
3908
  y: 0
@@ -3846,13 +3912,15 @@ function preventOverflow(_ref) {
3846
3912
  return;
3847
3913
  }
3848
3914
 
3849
- if (checkMainAxis || checkAltAxis) {
3915
+ if (checkMainAxis) {
3916
+ var _offsetModifierState$;
3917
+
3850
3918
  var mainSide = mainAxis === 'y' ? top : left;
3851
3919
  var altSide = mainAxis === 'y' ? bottom : right;
3852
3920
  var len = mainAxis === 'y' ? 'height' : 'width';
3853
3921
  var offset = popperOffsets[mainAxis];
3854
- var min$1 = popperOffsets[mainAxis] + overflow[mainSide];
3855
- var max$1 = popperOffsets[mainAxis] - overflow[altSide];
3922
+ var min$1 = offset + overflow[mainSide];
3923
+ var max$1 = offset - overflow[altSide];
3856
3924
  var additive = tether ? -popperRect[len] / 2 : 0;
3857
3925
  var minLen = variation === start ? referenceRect[len] : popperRect[len];
3858
3926
  var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
@@ -3872,36 +3940,45 @@ function preventOverflow(_ref) {
3872
3940
  // width or height)
3873
3941
 
3874
3942
  var arrowLen = within(0, referenceRect[len], arrowRect[len]);
3875
- var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - tetherOffsetValue : minLen - arrowLen - arrowPaddingMin - tetherOffsetValue;
3876
- var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + tetherOffsetValue : maxLen + arrowLen + arrowPaddingMax + tetherOffsetValue;
3943
+ var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;
3944
+ var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;
3877
3945
  var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);
3878
3946
  var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
3879
- var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
3880
- var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
3881
- var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
3947
+ var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;
3948
+ var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;
3949
+ var tetherMax = offset + maxOffset - offsetModifierValue;
3950
+ var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset, tether ? max(max$1, tetherMax) : max$1);
3951
+ popperOffsets[mainAxis] = preventedOffset;
3952
+ data[mainAxis] = preventedOffset - offset;
3953
+ }
3882
3954
 
3883
- if (checkMainAxis) {
3884
- var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset, tether ? max(max$1, tetherMax) : max$1);
3885
- popperOffsets[mainAxis] = preventedOffset;
3886
- data[mainAxis] = preventedOffset - offset;
3887
- }
3955
+ if (checkAltAxis) {
3956
+ var _offsetModifierState$2;
3888
3957
 
3889
- if (checkAltAxis) {
3890
- var _mainSide = mainAxis === 'x' ? top : left;
3958
+ var _mainSide = mainAxis === 'x' ? top : left;
3891
3959
 
3892
- var _altSide = mainAxis === 'x' ? bottom : right;
3960
+ var _altSide = mainAxis === 'x' ? bottom : right;
3893
3961
 
3894
- var _offset = popperOffsets[altAxis];
3962
+ var _offset = popperOffsets[altAxis];
3895
3963
 
3896
- var _min = _offset + overflow[_mainSide];
3964
+ var _len = altAxis === 'y' ? 'height' : 'width';
3897
3965
 
3898
- var _max = _offset - overflow[_altSide];
3966
+ var _min = _offset + overflow[_mainSide];
3899
3967
 
3900
- var _preventedOffset = within(tether ? min(_min, tetherMin) : _min, _offset, tether ? max(_max, tetherMax) : _max);
3968
+ var _max = _offset - overflow[_altSide];
3901
3969
 
3902
- popperOffsets[altAxis] = _preventedOffset;
3903
- data[altAxis] = _preventedOffset - _offset;
3904
- }
3970
+ var isOriginSide = [top, left].indexOf(basePlacement) !== -1;
3971
+
3972
+ var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;
3973
+
3974
+ var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;
3975
+
3976
+ var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;
3977
+
3978
+ var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);
3979
+
3980
+ popperOffsets[altAxis] = _preventedOffset;
3981
+ data[altAxis] = _preventedOffset - _offset;
3905
3982
  }
3906
3983
 
3907
3984
  state.modifiersData[name] = data;
@@ -3933,8 +4010,8 @@ function getNodeScroll(node) {
3933
4010
 
3934
4011
  function isElementScaled(element) {
3935
4012
  var rect = element.getBoundingClientRect();
3936
- var scaleX = rect.width / element.offsetWidth || 1;
3937
- var scaleY = rect.height / element.offsetHeight || 1;
4013
+ var scaleX = round(rect.width) / element.offsetWidth || 1;
4014
+ var scaleY = round(rect.height) / element.offsetHeight || 1;
3938
4015
  return scaleX !== 1 || scaleY !== 1;
3939
4016
  } // Returns the composite rect of an element relative to its offsetParent.
3940
4017
  // Composite means it takes into account transforms as well as layout.
@@ -4055,7 +4132,10 @@ var MISSING_DEPENDENCY_ERROR = 'Popper: modifier "%s" requires "%s", but "%s" mo
4055
4132
  var VALID_PROPERTIES = ['name', 'enabled', 'phase', 'fn', 'effect', 'requires', 'options'];
4056
4133
  function validateModifiers(modifiers) {
4057
4134
  modifiers.forEach(function (modifier) {
4058
- Object.keys(modifier).forEach(function (key) {
4135
+ [].concat(Object.keys(modifier), VALID_PROPERTIES) // IE11-compatible replacement for `new Set(iterable)`
4136
+ .filter(function (value, index, self) {
4137
+ return self.indexOf(value) === index;
4138
+ }).forEach(function (key) {
4059
4139
  switch (key) {
4060
4140
  case 'name':
4061
4141
  if (typeof modifier.name !== 'string') {
@@ -4069,6 +4149,8 @@ function validateModifiers(modifiers) {
4069
4149
  console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"enabled"', '"boolean"', "\"" + String(modifier.enabled) + "\""));
4070
4150
  }
4071
4151
 
4152
+ break;
4153
+
4072
4154
  case 'phase':
4073
4155
  if (modifierPhases.indexOf(modifier.phase) < 0) {
4074
4156
  console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"phase"', "either " + modifierPhases.join(', '), "\"" + String(modifier.phase) + "\""));
@@ -4084,14 +4166,14 @@ function validateModifiers(modifiers) {
4084
4166
  break;
4085
4167
 
4086
4168
  case 'effect':
4087
- if (typeof modifier.effect !== 'function') {
4169
+ if (modifier.effect != null && typeof modifier.effect !== 'function') {
4088
4170
  console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"effect"', '"function"', "\"" + String(modifier.fn) + "\""));
4089
4171
  }
4090
4172
 
4091
4173
  break;
4092
4174
 
4093
4175
  case 'requires':
4094
- if (!Array.isArray(modifier.requires)) {
4176
+ if (modifier.requires != null && !Array.isArray(modifier.requires)) {
4095
4177
  console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"requires"', '"array"', "\"" + String(modifier.requires) + "\""));
4096
4178
  }
4097
4179
 
@@ -4201,7 +4283,8 @@ function popperGenerator(generatorOptions) {
4201
4283
  var isDestroyed = false;
4202
4284
  var instance = {
4203
4285
  state: state,
4204
- setOptions: function setOptions(options) {
4286
+ setOptions: function setOptions(setOptionsAction) {
4287
+ var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;
4205
4288
  cleanupModifierEffects();
4206
4289
  state.options = Object.assign({}, defaultOptions, state.options, options);
4207
4290
  state.scrollParents = {
@@ -2,7 +2,7 @@ import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-648
2
2
  import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
3
3
  import React__default, { useState, useRef, useEffect } from 'react';
4
4
  import { F as FaWindowClose } from './index.esm-1bd8a0a8.js';
5
- import { m as main_43 } from './main-f97773b2.js';
5
+ import { m as main_43 } from './main-754d4992.js';
6
6
  import './_commonjsHelpers-0c4b6f40.js';
7
7
  import './core.get-iterator-method-ea258bb1.js';
8
8
  import './web.dom.iterable-ab4dea5c.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-9fdf6b2a.js';
8
+ import { g as getSerializers } from './index-9d159a77.js';
9
9
  import VideoSeriesListing from './VideoSeriesListing.js';
10
10
  import './_commonjsHelpers-0c4b6f40.js';
11
11
  import './core.get-iterator-method-ea258bb1.js';
@@ -18,15 +18,14 @@ import './index-3f5c03b2.js';
18
18
  import './slicedToArray-6ebcbfea.js';
19
19
  import 'react-bootstrap';
20
20
  import './urlFor.js';
21
- import './index-f0fc23eb.js';
22
- import './events-6c3a7a63.js';
21
+ import './index-5cc7b406.js';
23
22
  import 'next/router';
24
23
  import './index-c7e2ac95.js';
25
24
  import './util-8ed16d48.js';
26
25
  import './Beam.js';
27
26
  import './stringify-2b084bee.js';
28
27
  import './Segment.js';
29
- import './main-f97773b2.js';
28
+ import './main-754d4992.js';
30
29
  import './urlForFile-f6485737.js';
31
30
  import './index-755f2cc2.js';
32
31
  import 'react-dom';
@@ -20,8 +20,7 @@ import './toConsumableArray-f7074d7c.js';
20
20
  import './inherits-d21b4ef9.js';
21
21
  import './_object-sap-7cee6f84.js';
22
22
  import './define-property-5f1bda73.js';
23
- import './index-f0fc23eb.js';
24
- import './events-6c3a7a63.js';
23
+ import './index-5cc7b406.js';
25
24
  import 'prop-types';
26
25
  import 'react-bootstrap/Container';
27
26
  import 'react-bootstrap/Row';
@@ -36,13 +35,13 @@ import './index.es-a6137319.js';
36
35
  import './visibility-sensor-72fd8f8b.js';
37
36
  import 'react-dom';
38
37
  import './index-3f5c03b2.js';
39
- import './ADlgInfeed-444f326d.js';
38
+ import './ADlgInfeed-bc4a726f.js';
40
39
  import './AdSlot.js';
41
40
  import './Beam.js';
42
41
  import './stringify-2b084bee.js';
43
42
  import './Segment.js';
44
- import './main-f97773b2.js';
45
- import './ADInfeed-b034e2e6.js';
43
+ import './main-754d4992.js';
44
+ import './ADInfeed-2503361a.js';
46
45
  import './index-755f2cc2.js';
47
46
  import './urlFor.js';
48
47
  import './style-inject.es-1f59c1d0.js';
@@ -1,7 +1,7 @@
1
1
  import { _ as _extends } from './extends-1559c147.js';
2
2
  import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-d21b4ef9.js';
3
3
  import React__default from 'react';
4
- import { l as lib_3 } from './index-f0fc23eb.js';
4
+ 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';
@@ -18,7 +18,6 @@ import './typeof-657f25da.js';
18
18
  import './web.dom.iterable-ab4dea5c.js';
19
19
  import './_is-array-8d21b9e3.js';
20
20
  import './_library-528f1934.js';
21
- import './events-6c3a7a63.js';
22
21
  import 'prop-types';
23
22
  import 'react-dom';
24
23
  import './iconBase-ccc56b97.js';
@@ -28,7 +27,7 @@ import './index-755f2cc2.js';
28
27
  import './smoothscroll-fa4e3f8c.js';
29
28
  import './urlFor.js';
30
29
  import './index-3f5c03b2.js';
31
- import './main-f97773b2.js';
30
+ import './main-754d4992.js';
32
31
  import './isSymbol-a7e9aafe.js';
33
32
  import './toNumber-5aeba6e7.js';
34
33
 
package/dist/esm/View.js CHANGED
@@ -8,16 +8,16 @@ import { _ as _JSON$stringify } from './stringify-2b084bee.js';
8
8
  import { _ as _toConsumableArray } from './toConsumableArray-f7074d7c.js';
9
9
  import { m as moment } from './moment-bc12cb97.js';
10
10
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
11
- import { m as main_43 } from './main-f97773b2.js';
11
+ import { m as main_43 } from './main-754d4992.js';
12
12
  import 'react-bootstrap/Dropdown';
13
13
  import Form from 'react-bootstrap/Form';
14
14
  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-9fdf6b2a.js';
18
+ import { r as renderAuthor, g as getSerializers } from './index-9d159a77.js';
19
19
  import DFPAdSlot from './AdSlot.js';
20
- import { S as SeriesSlider } from './SeriesSlider-07be99e0.js';
20
+ import { S as SeriesSlider } from './SeriesSlider-a6b1d617.js';
21
21
  import { a as getContentPlacementUrl, g as getTargeting } from './getTargeting-5a281334.js';
22
22
  import getKeywords from './getKeywords.js';
23
23
  import urlFor from './urlFor.js';
@@ -33,7 +33,7 @@ import { PixelTrackingArticle } from './PixelTracking.js';
33
33
  import './Segment.js';
34
34
  import { _ as _Object$keys } from './keys-31dcdb31.js';
35
35
  import { I as InfiniteScroll } from './index.es-a6137319.js';
36
- import { l as lib_3 } from './index-f0fc23eb.js';
36
+ import { l as lib_3 } from './index-5cc7b406.js';
37
37
  import getRelatedArticle from './getRelatedArticle.js';
38
38
  import getQuery from './getQuery.js';
39
39
  import getSeriesDetail from './getSeriesDetail.js';
@@ -74,7 +74,6 @@ import './checkSisterSite-a7218fda.js';
74
74
  import './debounce-533d9748.js';
75
75
  import './isSymbol-a7e9aafe.js';
76
76
  import './toNumber-5aeba6e7.js';
77
- import './events-6c3a7a63.js';
78
77
  import './index-db3bb315.js';
79
78
 
80
79
  var getArticleSummary = function getArticleSummary(article) {
@@ -4,7 +4,7 @@ import { g as getYoutubeId } from './index-c7e2ac95.js';
4
4
  import { L as LazyLoad } from './index-755f2cc2.js';
5
5
  import { s as smoothscroll } from './smoothscroll-fa4e3f8c.js';
6
6
  import urlFor from './urlFor.js';
7
- import { m as main_43, a as main_49, b as main_42 } from './main-f97773b2.js';
7
+ import { m as main_43, a as main_49, b as main_42 } from './main-754d4992.js';
8
8
  import './_commonjsHelpers-0c4b6f40.js';
9
9
  import './web.dom.iterable-ab4dea5c.js';
10
10
  import './core.get-iterator-method-ea258bb1.js';
@@ -1,5 +1,5 @@
1
1
  import 'react';
2
- export { g as default } from './index-9fdf6b2a.js';
2
+ export { g as default } from './index-9d159a77.js';
3
3
  import './BlockContent-1e73bd2c.js';
4
4
  import './entities-6d9154b4.js';
5
5
  import './slicedToArray-6ebcbfea.js';
@@ -10,8 +10,7 @@ import 'react-bootstrap';
10
10
  import './urlFor.js';
11
11
  import './extends-1559c147.js';
12
12
  import './index-3f5c03b2.js';
13
- import './index-f0fc23eb.js';
14
- import './events-6c3a7a63.js';
13
+ import './index-5cc7b406.js';
15
14
  import 'prop-types';
16
15
  import 'next/router';
17
16
  import './index-c7e2ac95.js';
@@ -23,7 +22,7 @@ import './_library-528f1934.js';
23
22
  import './_set-species-2cd9340f.js';
24
23
  import './_iter-detect-98db3b07.js';
25
24
  import './Segment.js';
26
- import './main-f97773b2.js';
25
+ import './main-754d4992.js';
27
26
  import './urlForFile-f6485737.js';
28
27
  import './index-755f2cc2.js';
29
28
  import 'react-dom';
@@ -0,0 +1,52 @@
1
+ import { c as createCommonjsModule } from './_commonjsHelpers-0c4b6f40.js';
2
+
3
+ var classnames = createCommonjsModule(function (module) {
4
+ /*!
5
+ Copyright (c) 2017 Jed Watson.
6
+ Licensed under the MIT License (MIT), see
7
+ http://jedwatson.github.io/classnames
8
+ */
9
+ /* global define */
10
+
11
+ (function () {
12
+
13
+ var hasOwn = {}.hasOwnProperty;
14
+
15
+ function classNames () {
16
+ var classes = [];
17
+
18
+ for (var i = 0; i < arguments.length; i++) {
19
+ var arg = arguments[i];
20
+ if (!arg) continue;
21
+
22
+ var argType = typeof arg;
23
+
24
+ if (argType === 'string' || argType === 'number') {
25
+ classes.push(arg);
26
+ } else if (Array.isArray(arg) && arg.length) {
27
+ var inner = classNames.apply(null, arg);
28
+ if (inner) {
29
+ classes.push(inner);
30
+ }
31
+ } else if (argType === 'object') {
32
+ for (var key in arg) {
33
+ if (hasOwn.call(arg, key) && arg[key]) {
34
+ classes.push(key);
35
+ }
36
+ }
37
+ }
38
+ }
39
+
40
+ return classes.join(' ');
41
+ }
42
+
43
+ if (module.exports) {
44
+ classNames.default = classNames;
45
+ module.exports = classNames;
46
+ } else {
47
+ window.classNames = classNames;
48
+ }
49
+ }());
50
+ });
51
+
52
+ export { classnames as c };