@mjhls/mjh-framework 1.0.819 → 1.0.821-url-pagination-v1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (184) hide show
  1. package/README.md +170 -170
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +4 -3
  4. package/dist/cjs/AD300x250x600.js +4 -3
  5. package/dist/cjs/AD728x90.js +5 -4
  6. package/dist/cjs/ADFloatingFooter.js +3 -2
  7. package/dist/cjs/ADGutter.js +3 -2
  8. package/dist/cjs/ADSkyscraper.js +3 -2
  9. package/dist/cjs/ADSponsoredResources.js +3 -2
  10. package/dist/cjs/ADWebcast.js +3 -2
  11. package/dist/cjs/ADWelcome.js +3 -2
  12. package/dist/cjs/AdSlot.js +3 -2
  13. package/dist/cjs/AdSlotsProvider.js +29 -6
  14. package/dist/cjs/AlgoliaSearch.js +14091 -17
  15. package/dist/cjs/ArticleCarousel.js +2 -1
  16. package/dist/cjs/ArticleProgramLandingPage.js +8 -6
  17. package/dist/cjs/ArticleSeriesLandingPage.js +7 -6
  18. package/dist/cjs/ArticleSeriesListing.js +6 -4
  19. package/dist/cjs/Auth.js +41 -6
  20. package/dist/cjs/AuthWrapper.js +228 -189
  21. package/dist/cjs/CMEDeck.js +5 -4
  22. package/dist/cjs/Column3.js +5 -4
  23. package/dist/cjs/ConferenceArticleCard.js +21 -26
  24. package/dist/cjs/DeckContent.js +23 -28
  25. package/dist/cjs/DeckQueue.js +14 -20
  26. package/dist/cjs/{Dfp-82f75e49.js → Dfp-391fd124.js} +2 -1
  27. package/dist/cjs/EventsDeck.js +21 -21
  28. package/dist/cjs/ExternalResources.js +8 -6
  29. package/dist/cjs/Feature.js +7 -11
  30. package/dist/cjs/ForbesHero.js +13 -15
  31. package/dist/cjs/GridContent.js +37 -36
  32. package/dist/cjs/GridHero.js +11 -20
  33. package/dist/cjs/GroupDeck.js +4 -8
  34. package/dist/cjs/HamMagazine.js +15 -15
  35. package/dist/cjs/Hero.js +3 -14
  36. package/dist/cjs/HighlightenVideo.js +1 -1
  37. package/dist/cjs/HorizontalArticleListing.js +7 -5
  38. package/dist/cjs/HorizontalHero.js +6 -7
  39. package/dist/cjs/IssueContentDeck.js +11 -28
  40. package/dist/cjs/IssueDeck.js +11 -13
  41. package/dist/cjs/IssueLanding.js +39 -37
  42. package/dist/cjs/KMTracker.js +15 -15
  43. package/dist/cjs/LeftNav.js +3 -2
  44. package/dist/cjs/MasterDeck.js +16 -15
  45. package/dist/cjs/MediaSeriesLanding.js +441 -574
  46. package/dist/cjs/NavMagazine.js +14 -14
  47. package/dist/cjs/NavNative.js +12 -12
  48. package/dist/cjs/OncliveHero.js +6 -7
  49. package/dist/cjs/OncliveLargeHero.js +22 -23
  50. package/dist/cjs/PartnerDetailListing.js +14 -17
  51. package/dist/cjs/PubSection.js +8 -6
  52. package/dist/cjs/PublicationDeck.js +10 -12
  53. package/dist/cjs/PublicationLanding.js +26 -29
  54. package/dist/cjs/QueueDeckExpanded.js +81 -79
  55. package/dist/cjs/RecentNews.js +1 -4
  56. package/dist/cjs/RelatedContent.js +36 -39
  57. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  58. package/dist/cjs/SeriesListingDeck.js +6 -4
  59. package/dist/cjs/{SeriesSlider-b79e7df9.js → SeriesSlider-b94509d5.js} +12 -17
  60. package/dist/cjs/SideFooter.js +2 -2
  61. package/dist/cjs/{SocialSearchComponent-560a666e.js → SocialSearchComponent-42b9d251.js} +3 -3
  62. package/dist/cjs/TaxonomyCard.js +11 -14
  63. package/dist/cjs/TaxonomyDescription.js +7 -5
  64. package/dist/cjs/TemplateNormal.js +4 -3
  65. package/dist/cjs/ThumbnailCard.js +6 -10
  66. package/dist/cjs/Ustream.js +2 -2
  67. package/dist/cjs/VerticalHero.js +4 -8
  68. package/dist/cjs/VideoProgramLandingPage.js +8 -6
  69. package/dist/cjs/VideoSeriesCard.js +10 -9
  70. package/dist/cjs/VideoSeriesLandingPage.js +8 -6
  71. package/dist/cjs/VideoSeriesListing.js +7 -5
  72. package/dist/cjs/View.js +24 -23
  73. package/dist/cjs/YahooHero.js +12 -14
  74. package/dist/cjs/YoutubeGroup.js +14 -18
  75. package/dist/cjs/{brightcove-react-player-loader.es-4ba0d3d5.js → brightcove-react-player-loader.es-5c98aec7.js} +4 -3
  76. package/dist/cjs/events-1b438fe7.js +469 -0
  77. package/dist/cjs/getRelatedArticle.js +62 -126
  78. package/dist/cjs/getSerializers.js +7 -5
  79. package/dist/cjs/{getTargeting-ea2ea5e7.js → getTargeting-15ad167c.js} +9 -9
  80. package/dist/cjs/getTargeting.js +1 -1
  81. package/dist/cjs/{index-e08f00ce.js → index-2cf30c83.js} +2 -467
  82. package/dist/cjs/{index-5be2866f.js → index-6367b7bf.js} +16 -17
  83. package/dist/cjs/index-e2e62963.js +89 -0
  84. package/dist/cjs/{index-35099a60.js → index-f671ac14.js} +59 -103
  85. package/dist/cjs/{index.es-13533f24.js → index.es-f3e47207.js} +20 -4
  86. package/dist/cjs/index.js +18 -31
  87. package/dist/cjs/{main-11ec04d2.js → main-7b5e57b0.js} +32 -28
  88. package/dist/cjs/{moment-66a6a284.js → moment-ca3bd9fb.js} +10 -8
  89. package/dist/cjs/timeDifferenceCalc.js +1 -1
  90. package/dist/cjs/urlFor.js +34 -2
  91. package/dist/esm/AD.js +1 -1
  92. package/dist/esm/AD300x250.js +4 -3
  93. package/dist/esm/AD300x250x600.js +4 -3
  94. package/dist/esm/AD728x90.js +5 -4
  95. package/dist/esm/ADFloatingFooter.js +3 -2
  96. package/dist/esm/ADGutter.js +3 -2
  97. package/dist/esm/ADSkyscraper.js +3 -2
  98. package/dist/esm/ADSponsoredResources.js +3 -2
  99. package/dist/esm/ADWebcast.js +3 -2
  100. package/dist/esm/ADWelcome.js +3 -2
  101. package/dist/esm/AdSlot.js +3 -2
  102. package/dist/esm/AdSlotsProvider.js +28 -6
  103. package/dist/esm/AlgoliaSearch.js +14093 -19
  104. package/dist/esm/ArticleCarousel.js +2 -1
  105. package/dist/esm/ArticleProgramLandingPage.js +8 -6
  106. package/dist/esm/ArticleSeriesLandingPage.js +7 -6
  107. package/dist/esm/ArticleSeriesListing.js +6 -4
  108. package/dist/esm/Auth.js +42 -7
  109. package/dist/esm/AuthWrapper.js +228 -189
  110. package/dist/esm/CMEDeck.js +5 -4
  111. package/dist/esm/Column3.js +5 -4
  112. package/dist/esm/ConferenceArticleCard.js +20 -25
  113. package/dist/esm/DeckContent.js +20 -25
  114. package/dist/esm/DeckQueue.js +11 -17
  115. package/dist/esm/{Dfp-cde02d85.js → Dfp-2f9796e1.js} +2 -1
  116. package/dist/esm/EventsDeck.js +21 -21
  117. package/dist/esm/ExternalResources.js +8 -6
  118. package/dist/esm/Feature.js +7 -11
  119. package/dist/esm/ForbesHero.js +7 -9
  120. package/dist/esm/GridContent.js +25 -24
  121. package/dist/esm/GridHero.js +5 -14
  122. package/dist/esm/GroupDeck.js +4 -8
  123. package/dist/esm/HamMagazine.js +15 -15
  124. package/dist/esm/Hero.js +3 -14
  125. package/dist/esm/HighlightenVideo.js +1 -1
  126. package/dist/esm/HorizontalArticleListing.js +7 -5
  127. package/dist/esm/HorizontalHero.js +6 -7
  128. package/dist/esm/IssueContentDeck.js +11 -28
  129. package/dist/esm/IssueDeck.js +11 -13
  130. package/dist/esm/IssueLanding.js +39 -37
  131. package/dist/esm/KMTracker.js +15 -15
  132. package/dist/esm/LeftNav.js +3 -2
  133. package/dist/esm/MasterDeck.js +16 -15
  134. package/dist/esm/MediaSeriesLanding.js +154 -287
  135. package/dist/esm/NavMagazine.js +14 -14
  136. package/dist/esm/NavNative.js +12 -12
  137. package/dist/esm/OncliveHero.js +6 -7
  138. package/dist/esm/OncliveLargeHero.js +9 -10
  139. package/dist/esm/PartnerDetailListing.js +14 -17
  140. package/dist/esm/PubSection.js +8 -6
  141. package/dist/esm/PublicationDeck.js +10 -12
  142. package/dist/esm/PublicationLanding.js +26 -29
  143. package/dist/esm/QueueDeckExpanded.js +39 -37
  144. package/dist/esm/RecentNews.js +1 -4
  145. package/dist/esm/RelatedContent.js +32 -35
  146. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  147. package/dist/esm/SeriesListingDeck.js +6 -4
  148. package/dist/esm/{SeriesSlider-1fa61a74.js → SeriesSlider-935e2b4e.js} +12 -17
  149. package/dist/esm/SideFooter.js +2 -2
  150. package/dist/esm/{SocialSearchComponent-82ac7d6d.js → SocialSearchComponent-94f6554c.js} +3 -3
  151. package/dist/esm/TaxonomyCard.js +8 -11
  152. package/dist/esm/TaxonomyDescription.js +7 -5
  153. package/dist/esm/TemplateNormal.js +4 -3
  154. package/dist/esm/ThumbnailCard.js +3 -7
  155. package/dist/esm/Ustream.js +2 -2
  156. package/dist/esm/VerticalHero.js +4 -8
  157. package/dist/esm/VideoProgramLandingPage.js +8 -6
  158. package/dist/esm/VideoSeriesCard.js +6 -5
  159. package/dist/esm/VideoSeriesLandingPage.js +8 -6
  160. package/dist/esm/VideoSeriesListing.js +7 -5
  161. package/dist/esm/View.js +24 -23
  162. package/dist/esm/YahooHero.js +7 -9
  163. package/dist/esm/YoutubeGroup.js +14 -18
  164. package/dist/esm/{brightcove-react-player-loader.es-e1c6b0f2.js → brightcove-react-player-loader.es-4abff0b1.js} +4 -3
  165. package/dist/esm/events-6c3a7a63.js +467 -0
  166. package/dist/esm/getRelatedArticle.js +62 -126
  167. package/dist/esm/getSerializers.js +7 -5
  168. package/dist/esm/{getTargeting-831bc794.js → getTargeting-82e86707.js} +9 -9
  169. package/dist/esm/getTargeting.js +1 -1
  170. package/dist/esm/{index-e887f3d1.js → index-7aec473d.js} +36 -80
  171. package/dist/esm/index-aaa2dae0.js +85 -0
  172. package/dist/esm/{index-d2f90501.js → index-c00b0bbb.js} +16 -17
  173. package/dist/esm/{index-acfb8079.js → index-f7fb1e25.js} +1 -466
  174. package/dist/esm/{index.es-7dda2f0a.js → index.es-c6222053.js} +20 -4
  175. package/dist/esm/index.js +18 -30
  176. package/dist/esm/{main-aef58dbc.js → main-747e7d25.js} +32 -28
  177. package/dist/esm/{moment-12415288.js → moment-b6f49411.js} +10 -8
  178. package/dist/esm/timeDifferenceCalc.js +1 -1
  179. package/dist/esm/urlFor.js +34 -2
  180. package/package.json +110 -110
  181. /package/dist/cjs/{ADInfeed-98f6bd26.js → ADInfeed-0158bee3.js} +0 -0
  182. /package/dist/cjs/{ADlgInfeed-6055cb1b.js → ADlgInfeed-3583144f.js} +0 -0
  183. /package/dist/esm/{ADInfeed-ba59666b.js → ADInfeed-427022e9.js} +0 -0
  184. /package/dist/esm/{ADlgInfeed-995322a1.js → ADlgInfeed-28d3f944.js} +0 -0
@@ -14,23 +14,25 @@ import './web.dom.iterable-4439f05a.js';
14
14
  import { _ as _typeof } from './typeof-af9c50d8.js';
15
15
  import './_is-array-58e95429.js';
16
16
  import React, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
17
- import './index-acfb8079.js';
17
+ import './events-6c3a7a63.js';
18
+ import './index-f7fb1e25.js';
18
19
  import PropTypes from 'prop-types';
19
20
  import 'react-bootstrap/Container';
20
21
  import 'react-bootstrap/Row';
21
22
  import 'react-bootstrap/Col';
22
23
  import 'react-bootstrap/Card';
23
- import { m as moment } from './moment-12415288.js';
24
+ import { m as moment } from './moment-b6f49411.js';
24
25
  import 'next/router';
25
26
  import './isSymbol-1981418f.js';
26
27
  import './debounce-9207d8ee.js';
27
28
  import './toNumber-2f7a84cd.js';
28
- import './index.es-7dda2f0a.js';
29
+ import './index.es-c6222053.js';
29
30
  import ReactDOM from 'react-dom';
30
31
  import './visibility-sensor-f40c2564.js';
31
- import { i as imageUrlBuilder } from './index-51a80699.js';
32
+ import './index-51a80699.js';
33
+ import urlFor from './urlFor.js';
32
34
  import { L as LazyLoad } from './index-6c12bdd5.js';
33
- import './main-aef58dbc.js';
35
+ import './main-747e7d25.js';
34
36
  import './entities-7cc3bf45.js';
35
37
  import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
36
38
  import './stringify-4330ccdc.js';
@@ -38,9 +40,9 @@ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1
38
40
  import './Segment.js';
39
41
  import './Beam.js';
40
42
  import './AdSlot.js';
41
- import './ADInfeed-ba59666b.js';
43
+ import './ADInfeed-427022e9.js';
42
44
  import './lodash-ec8c6b48.js';
43
- import './ADlgInfeed-995322a1.js';
45
+ import './ADlgInfeed-28d3f944.js';
44
46
  import { B as BlockContent } from './BlockContent-d05b5b23.js';
45
47
  import './index-c7e2ac95.js';
46
48
  import './smoothscroll-0cd4c7a6.js';
@@ -48,9 +50,9 @@ import './GroupDeck.js';
48
50
  import 'react-bootstrap';
49
51
  import './iconBase-602d52fe.js';
50
52
  import './index.esm-3fdda599.js';
51
- import { g as getSerializers } from './index-e887f3d1.js';
53
+ import { g as getSerializers } from './index-7aec473d.js';
52
54
  import './util-7700fc59.js';
53
- import './brightcove-react-player-loader.es-e1c6b0f2.js';
55
+ import './brightcove-react-player-loader.es-4abff0b1.js';
54
56
  import 'next/head';
55
57
  import 'react-share';
56
58
  import './SocialShare.js';
@@ -60,91 +62,10 @@ import 'react-bootstrap/Button';
60
62
  import 'react-bootstrap/Figure';
61
63
  import MasterDeck from './MasterDeck.js';
62
64
  import { _ as _defineProperty } from './defineProperty-94fd8bfc.js';
65
+ import { _ as _objectWithoutPropertiesLoose, a as _extends, c as classnames } from './index-aaa2dae0.js';
63
66
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
64
67
  import Link from 'next/link';
65
68
 
66
- function _extends() {
67
- _extends = Object.assign || function (target) {
68
- for (var i = 1; i < arguments.length; i++) {
69
- var source = arguments[i];
70
-
71
- for (var key in source) {
72
- if (Object.prototype.hasOwnProperty.call(source, key)) {
73
- target[key] = source[key];
74
- }
75
- }
76
- }
77
-
78
- return target;
79
- };
80
-
81
- return _extends.apply(this, arguments);
82
- }
83
-
84
- function _objectWithoutPropertiesLoose(source, excluded) {
85
- if (source == null) return {};
86
- var target = {};
87
- var sourceKeys = Object.keys(source);
88
- var key, i;
89
-
90
- for (i = 0; i < sourceKeys.length; i++) {
91
- key = sourceKeys[i];
92
- if (excluded.indexOf(key) >= 0) continue;
93
- target[key] = source[key];
94
- }
95
-
96
- return target;
97
- }
98
-
99
- var classnames = createCommonjsModule(function (module) {
100
- /*!
101
- Copyright (c) 2017 Jed Watson.
102
- Licensed under the MIT License (MIT), see
103
- http://jedwatson.github.io/classnames
104
- */
105
- /* global define */
106
-
107
- (function () {
108
-
109
- var hasOwn = {}.hasOwnProperty;
110
-
111
- function classNames () {
112
- var classes = [];
113
-
114
- for (var i = 0; i < arguments.length; i++) {
115
- var arg = arguments[i];
116
- if (!arg) continue;
117
-
118
- var argType = typeof arg;
119
-
120
- if (argType === 'string' || argType === 'number') {
121
- classes.push(arg);
122
- } else if (Array.isArray(arg) && arg.length) {
123
- var inner = classNames.apply(null, arg);
124
- if (inner) {
125
- classes.push(inner);
126
- }
127
- } else if (argType === 'object') {
128
- for (var key in arg) {
129
- if (hasOwn.call(arg, key) && arg[key]) {
130
- classes.push(key);
131
- }
132
- }
133
- }
134
- }
135
-
136
- return classes.join(' ');
137
- }
138
-
139
- if ( module.exports) {
140
- classNames.default = classNames;
141
- module.exports = classNames;
142
- } else {
143
- window.classNames = classNames;
144
- }
145
- }());
146
- });
147
-
148
69
  /**
149
70
  * Copyright (c) 2013-present, Facebook, Inc.
150
71
  *
@@ -250,19 +171,10 @@ function useUncontrolled(props, config) {
250
171
  }, props);
251
172
  }
252
173
 
253
- function _setPrototypeOf(o, p) {
254
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
255
- o.__proto__ = p;
256
- return o;
257
- };
258
-
259
- return _setPrototypeOf(o, p);
260
- }
261
-
262
174
  function _inheritsLoose(subClass, superClass) {
263
175
  subClass.prototype = Object.create(superClass.prototype);
264
176
  subClass.prototype.constructor = subClass;
265
- _setPrototypeOf(subClass, superClass);
177
+ subClass.__proto__ = superClass;
266
178
  }
267
179
 
268
180
  var ThemeContext = React.createContext({});
@@ -1931,20 +1843,6 @@ function setChainedTimeout(handleRef, fn, timeoutAtMs) {
1931
1843
  /**
1932
1844
  * Returns a controller object for setting a timeout that is properly cleaned up
1933
1845
  * once the component unmounts. New timeouts cancel and replace existing ones.
1934
- *
1935
- *
1936
- *
1937
- * ```tsx
1938
- * const { set, clear } = useTimeout();
1939
- * const [hello, showHello] = useState(false);
1940
- * //Display hello after 5 seconds
1941
- * set(() => showHello(true), 5000);
1942
- * return (
1943
- * <div className="App">
1944
- * {hello ? <h3>Hello</h3> : null}
1945
- * </div>
1946
- * );
1947
- * ```
1948
1846
  */
1949
1847
 
1950
1848
 
@@ -2703,50 +2601,21 @@ function getBasePlacement(placement) {
2703
2601
  return placement.split('-')[0];
2704
2602
  }
2705
2603
 
2706
- function getBoundingClientRect(element) {
2707
- var rect = element.getBoundingClientRect();
2708
- return {
2709
- width: rect.width,
2710
- height: rect.height,
2711
- top: rect.top,
2712
- right: rect.right,
2713
- bottom: rect.bottom,
2714
- left: rect.left,
2715
- x: rect.left,
2716
- y: rect.top
2717
- };
2718
- }
2719
-
2604
+ // Returns the layout rect of an element relative to its offsetParent. Layout
2720
2605
  // means it doesn't take into account transforms.
2721
-
2722
2606
  function getLayoutRect(element) {
2723
- var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
2724
- // Fixes https://github.com/popperjs/popper-core/issues/1223
2725
-
2726
- var width = element.offsetWidth;
2727
- var height = element.offsetHeight;
2728
-
2729
- if (Math.abs(clientRect.width - width) <= 1) {
2730
- width = clientRect.width;
2731
- }
2732
-
2733
- if (Math.abs(clientRect.height - height) <= 1) {
2734
- height = clientRect.height;
2735
- }
2736
-
2737
2607
  return {
2738
2608
  x: element.offsetLeft,
2739
2609
  y: element.offsetTop,
2740
- width: width,
2741
- height: height
2610
+ width: element.offsetWidth,
2611
+ height: element.offsetHeight
2742
2612
  };
2743
2613
  }
2744
2614
 
2745
- function getWindow(node) {
2746
- if (node == null) {
2747
- return window;
2748
- }
2615
+ /*:: import type { Window } from '../types'; */
2749
2616
 
2617
+ /*:: declare function getWindow(node: Node | Window): Window; */
2618
+ function getWindow(node) {
2750
2619
  if (node.toString() !== '[object Window]') {
2751
2620
  var ownerDocument = node.ownerDocument;
2752
2621
  return ownerDocument ? ownerDocument.defaultView || window : window;
@@ -2755,22 +2624,26 @@ function getWindow(node) {
2755
2624
  return node;
2756
2625
  }
2757
2626
 
2627
+ /*:: declare function isElement(node: mixed): boolean %checks(node instanceof
2628
+ Element); */
2629
+
2758
2630
  function isElement(node) {
2759
2631
  var OwnElement = getWindow(node).Element;
2760
2632
  return node instanceof OwnElement || node instanceof Element;
2761
2633
  }
2634
+ /*:: declare function isHTMLElement(node: mixed): boolean %checks(node instanceof
2635
+ HTMLElement); */
2636
+
2762
2637
 
2763
2638
  function isHTMLElement(node) {
2764
2639
  var OwnElement = getWindow(node).HTMLElement;
2765
2640
  return node instanceof OwnElement || node instanceof HTMLElement;
2766
2641
  }
2642
+ /*:: declare function isShadowRoot(node: mixed): boolean %checks(node instanceof
2643
+ ShadowRoot); */
2767
2644
 
2768
- function isShadowRoot(node) {
2769
- // IE 11 has no ShadowRoot
2770
- if (typeof ShadowRoot === 'undefined') {
2771
- return false;
2772
- }
2773
2645
 
2646
+ function isShadowRoot(node) {
2774
2647
  var OwnElement = getWindow(node).ShadowRoot;
2775
2648
  return node instanceof OwnElement || node instanceof ShadowRoot;
2776
2649
  }
@@ -2787,7 +2660,7 @@ function contains(parent, child) {
2787
2660
  do {
2788
2661
  if (next && parent.isSameNode(next)) {
2789
2662
  return true;
2790
- } // $FlowFixMe[prop-missing]: need a better way to handle this...
2663
+ } // $FlowFixMe: need a better way to handle this...
2791
2664
 
2792
2665
 
2793
2666
  next = next.parentNode || next.host;
@@ -2811,9 +2684,8 @@ function isTableElement(element) {
2811
2684
  }
2812
2685
 
2813
2686
  function getDocumentElement(element) {
2814
- // $FlowFixMe[incompatible-return]: assume body is always available
2815
- return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
2816
- element.document) || window.document).documentElement;
2687
+ // $FlowFixMe: assume body is always available
2688
+ return ((isElement(element) ? element.ownerDocument : element.document) || window.document).documentElement;
2817
2689
  }
2818
2690
 
2819
2691
  function getParentNode(element) {
@@ -2821,13 +2693,12 @@ function getParentNode(element) {
2821
2693
  return element;
2822
2694
  }
2823
2695
 
2824
- return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
2825
- // $FlowFixMe[incompatible-return]
2826
- // $FlowFixMe[prop-missing]
2696
+ return (// $FlowFixMe: this is a quicker (but less type safe) way to save quite some bytes from the bundle
2827
2697
  element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
2828
- element.parentNode || ( // DOM Element detected
2829
- isShadowRoot(element) ? element.host : null) || // ShadowRoot detected
2830
- // $FlowFixMe[incompatible-call]: HTMLElement is a Node
2698
+ element.parentNode || // DOM Element detected
2699
+ // $FlowFixMe: need a better way to handle this...
2700
+ element.host || // ShadowRoot detected
2701
+ // $FlowFixMe: HTMLElement is a Node
2831
2702
  getDocumentElement(element) // fallback
2832
2703
 
2833
2704
  );
@@ -2839,21 +2710,29 @@ function getTrueOffsetParent(element) {
2839
2710
  return null;
2840
2711
  }
2841
2712
 
2842
- return element.offsetParent;
2713
+ var offsetParent = element.offsetParent;
2714
+
2715
+ if (offsetParent) {
2716
+ var html = getDocumentElement(offsetParent);
2717
+
2718
+ if (getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static' && getComputedStyle$2(html).position !== 'static') {
2719
+ return html;
2720
+ }
2721
+ }
2722
+
2723
+ return offsetParent;
2843
2724
  } // `.offsetParent` reports `null` for fixed elements, while absolute elements
2844
2725
  // return the containing block
2845
2726
 
2846
2727
 
2847
2728
  function getContainingBlock(element) {
2848
- var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
2849
2729
  var currentNode = getParentNode(element);
2850
2730
 
2851
2731
  while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
2852
2732
  var css = getComputedStyle$2(currentNode); // This is non-exhaustive but covers the most common CSS properties that
2853
2733
  // create a containing block.
2854
- // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
2855
2734
 
2856
- if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {
2735
+ if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== 'auto') {
2857
2736
  return currentNode;
2858
2737
  } else {
2859
2738
  currentNode = currentNode.parentNode;
@@ -2873,7 +2752,7 @@ function getOffsetParent(element) {
2873
2752
  offsetParent = getTrueOffsetParent(offsetParent);
2874
2753
  }
2875
2754
 
2876
- if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static')) {
2755
+ if (offsetParent && getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static') {
2877
2756
  return window;
2878
2757
  }
2879
2758
 
@@ -2884,12 +2763,8 @@ function getMainAxisFromPlacement(placement) {
2884
2763
  return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
2885
2764
  }
2886
2765
 
2887
- var max = Math.max;
2888
- var min = Math.min;
2889
- var round = Math.round;
2890
-
2891
- function within(min$1, value, max$1) {
2892
- return max(min$1, min(value, max$1));
2766
+ function within(min, value, max) {
2767
+ return Math.max(min, Math.min(value, max));
2893
2768
  }
2894
2769
 
2895
2770
  function getFreshSideObject() {
@@ -2902,7 +2777,7 @@ function getFreshSideObject() {
2902
2777
  }
2903
2778
 
2904
2779
  function mergePaddingObject(paddingObject) {
2905
- return Object.assign({}, getFreshSideObject(), paddingObject);
2780
+ return Object.assign(Object.assign({}, getFreshSideObject()), paddingObject);
2906
2781
  }
2907
2782
 
2908
2783
  function expandToHashMap(value, keys) {
@@ -2912,19 +2787,11 @@ function expandToHashMap(value, keys) {
2912
2787
  }, {});
2913
2788
  }
2914
2789
 
2915
- var toPaddingObject = function toPaddingObject(padding, state) {
2916
- padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
2917
- placement: state.placement
2918
- })) : padding;
2919
- return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
2920
- };
2921
-
2922
2790
  function arrow(_ref) {
2923
2791
  var _state$modifiersData$;
2924
2792
 
2925
2793
  var state = _ref.state,
2926
- name = _ref.name,
2927
- options = _ref.options;
2794
+ name = _ref.name;
2928
2795
  var arrowElement = state.elements.arrow;
2929
2796
  var popperOffsets = state.modifiersData.popperOffsets;
2930
2797
  var basePlacement = getBasePlacement(state.placement);
@@ -2936,7 +2803,7 @@ function arrow(_ref) {
2936
2803
  return;
2937
2804
  }
2938
2805
 
2939
- var paddingObject = toPaddingObject(options.padding, state);
2806
+ var paddingObject = state.modifiersData[name + "#persistent"].padding;
2940
2807
  var arrowRect = getLayoutRect(arrowElement);
2941
2808
  var minProp = axis === 'y' ? top : left;
2942
2809
  var maxProp = axis === 'y' ? bottom : right;
@@ -2958,9 +2825,12 @@ function arrow(_ref) {
2958
2825
 
2959
2826
  function effect(_ref2) {
2960
2827
  var state = _ref2.state,
2961
- options = _ref2.options;
2828
+ options = _ref2.options,
2829
+ name = _ref2.name;
2962
2830
  var _options$element = options.element,
2963
- arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;
2831
+ arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element,
2832
+ _options$padding = options.padding,
2833
+ padding = _options$padding === void 0 ? 0 : _options$padding;
2964
2834
 
2965
2835
  if (arrowElement == null) {
2966
2836
  return;
@@ -2990,6 +2860,9 @@ function effect(_ref2) {
2990
2860
  }
2991
2861
 
2992
2862
  state.elements.arrow = arrowElement;
2863
+ state.modifiersData[name + "#persistent"] = {
2864
+ padding: mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements))
2865
+ };
2993
2866
  } // eslint-disable-next-line import/no-unused-modules
2994
2867
 
2995
2868
 
@@ -3012,14 +2885,14 @@ var unsetSides = {
3012
2885
  // Zooming can change the DPR, but it seems to report a value that will
3013
2886
  // cleanly divide the values into the appropriate subpixels.
3014
2887
 
3015
- function roundOffsetsByDPR(_ref) {
2888
+ function roundOffsets(_ref) {
3016
2889
  var x = _ref.x,
3017
2890
  y = _ref.y;
3018
2891
  var win = window;
3019
2892
  var dpr = win.devicePixelRatio || 1;
3020
2893
  return {
3021
- x: round(round(x * dpr) / dpr) || 0,
3022
- y: round(round(y * dpr) / dpr) || 0
2894
+ x: Math.round(x * dpr) / dpr || 0,
2895
+ y: Math.round(y * dpr) / dpr || 0
3023
2896
  };
3024
2897
  }
3025
2898
 
@@ -3032,14 +2905,11 @@ function mapToStyles(_ref2) {
3032
2905
  offsets = _ref2.offsets,
3033
2906
  position = _ref2.position,
3034
2907
  gpuAcceleration = _ref2.gpuAcceleration,
3035
- adaptive = _ref2.adaptive,
3036
- roundOffsets = _ref2.roundOffsets;
2908
+ adaptive = _ref2.adaptive;
3037
2909
 
3038
- var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === 'function' ? roundOffsets(offsets) : offsets,
3039
- _ref3$x = _ref3.x,
3040
- x = _ref3$x === void 0 ? 0 : _ref3$x,
3041
- _ref3$y = _ref3.y,
3042
- y = _ref3$y === void 0 ? 0 : _ref3$y;
2910
+ var _roundOffsets = roundOffsets(offsets),
2911
+ x = _roundOffsets.x,
2912
+ y = _roundOffsets.y;
3043
2913
 
3044
2914
  var hasX = offsets.hasOwnProperty('x');
3045
2915
  var hasY = offsets.hasOwnProperty('y');
@@ -3049,32 +2919,23 @@ function mapToStyles(_ref2) {
3049
2919
 
3050
2920
  if (adaptive) {
3051
2921
  var offsetParent = getOffsetParent(popper);
3052
- var heightProp = 'clientHeight';
3053
- var widthProp = 'clientWidth';
3054
2922
 
3055
2923
  if (offsetParent === getWindow(popper)) {
3056
2924
  offsetParent = getDocumentElement(popper);
2925
+ } // $FlowFixMe: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
3057
2926
 
3058
- if (getComputedStyle$2(offsetParent).position !== 'static') {
3059
- heightProp = 'scrollHeight';
3060
- widthProp = 'scrollWidth';
3061
- }
3062
- } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
3063
-
2927
+ /*:: offsetParent = (offsetParent: Element); */
3064
2928
 
3065
- offsetParent = offsetParent;
3066
2929
 
3067
2930
  if (placement === top) {
3068
- sideY = bottom; // $FlowFixMe[prop-missing]
3069
-
3070
- y -= offsetParent[heightProp] - popperRect.height;
2931
+ sideY = bottom;
2932
+ y -= offsetParent.clientHeight - popperRect.height;
3071
2933
  y *= gpuAcceleration ? 1 : -1;
3072
2934
  }
3073
2935
 
3074
2936
  if (placement === left) {
3075
- sideX = right; // $FlowFixMe[prop-missing]
3076
-
3077
- x -= offsetParent[widthProp] - popperRect.width;
2937
+ sideX = right;
2938
+ x -= offsetParent.clientWidth - popperRect.width;
3078
2939
  x *= gpuAcceleration ? 1 : -1;
3079
2940
  }
3080
2941
  }
@@ -3086,21 +2947,19 @@ function mapToStyles(_ref2) {
3086
2947
  if (gpuAcceleration) {
3087
2948
  var _Object$assign;
3088
2949
 
3089
- 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));
2950
+ return Object.assign(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));
3090
2951
  }
3091
2952
 
3092
- return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
2953
+ return Object.assign(Object.assign({}, commonStyles), {}, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
3093
2954
  }
3094
2955
 
3095
- function computeStyles(_ref4) {
3096
- var state = _ref4.state,
3097
- options = _ref4.options;
2956
+ function computeStyles(_ref3) {
2957
+ var state = _ref3.state,
2958
+ options = _ref3.options;
3098
2959
  var _options$gpuAccelerat = options.gpuAcceleration,
3099
2960
  gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
3100
2961
  _options$adaptive = options.adaptive,
3101
- adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
3102
- _options$roundOffsets = options.roundOffsets,
3103
- roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
2962
+ adaptive = _options$adaptive === void 0 ? true : _options$adaptive;
3104
2963
 
3105
2964
  if (process.env.NODE_ENV !== "production") {
3106
2965
  var transitionProperty = getComputedStyle$2(state.elements.popper).transitionProperty || '';
@@ -3120,24 +2979,22 @@ function computeStyles(_ref4) {
3120
2979
  };
3121
2980
 
3122
2981
  if (state.modifiersData.popperOffsets != null) {
3123
- state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
2982
+ state.styles.popper = Object.assign(Object.assign({}, state.styles.popper), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
3124
2983
  offsets: state.modifiersData.popperOffsets,
3125
2984
  position: state.options.strategy,
3126
- adaptive: adaptive,
3127
- roundOffsets: roundOffsets
2985
+ adaptive: adaptive
3128
2986
  })));
3129
2987
  }
3130
2988
 
3131
2989
  if (state.modifiersData.arrow != null) {
3132
- state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
2990
+ state.styles.arrow = Object.assign(Object.assign({}, state.styles.arrow), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
3133
2991
  offsets: state.modifiersData.arrow,
3134
2992
  position: 'absolute',
3135
- adaptive: false,
3136
- roundOffsets: roundOffsets
2993
+ adaptive: false
3137
2994
  })));
3138
2995
  }
3139
2996
 
3140
- state.attributes.popper = Object.assign({}, state.attributes.popper, {
2997
+ state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
3141
2998
  'data-popper-placement': state.placement
3142
2999
  });
3143
3000
  } // eslint-disable-next-line import/no-unused-modules
@@ -3221,6 +3078,20 @@ function getOppositeVariationPlacement(placement) {
3221
3078
  });
3222
3079
  }
3223
3080
 
3081
+ function getBoundingClientRect(element) {
3082
+ var rect = element.getBoundingClientRect();
3083
+ return {
3084
+ width: rect.width,
3085
+ height: rect.height,
3086
+ top: rect.top,
3087
+ right: rect.right,
3088
+ bottom: rect.bottom,
3089
+ left: rect.left,
3090
+ x: rect.left,
3091
+ y: rect.top
3092
+ };
3093
+ }
3094
+
3224
3095
  function getWindowScroll(node) {
3225
3096
  var win = getWindow(node);
3226
3097
  var scrollLeft = win.pageXOffset;
@@ -3283,18 +3154,16 @@ function getViewportRect(element) {
3283
3154
  // of the `<html>` and `<body>` rect bounds if horizontally scrollable
3284
3155
 
3285
3156
  function getDocumentRect(element) {
3286
- var _element$ownerDocumen;
3287
-
3288
3157
  var html = getDocumentElement(element);
3289
3158
  var winScroll = getWindowScroll(element);
3290
- var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
3291
- var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
3292
- var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
3159
+ var body = element.ownerDocument.body;
3160
+ var width = Math.max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
3161
+ var height = Math.max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
3293
3162
  var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
3294
3163
  var y = -winScroll.scrollTop;
3295
3164
 
3296
3165
  if (getComputedStyle$2(body || html).direction === 'rtl') {
3297
- x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
3166
+ x += Math.max(html.clientWidth, body ? body.clientWidth : 0) - width;
3298
3167
  }
3299
3168
 
3300
3169
  return {
@@ -3317,7 +3186,7 @@ function isScrollParent(element) {
3317
3186
 
3318
3187
  function getScrollParent(node) {
3319
3188
  if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
3320
- // $FlowFixMe[incompatible-return]: assume body is always available
3189
+ // $FlowFixMe: assume body is always available
3321
3190
  return node.ownerDocument.body;
3322
3191
  }
3323
3192
 
@@ -3331,28 +3200,26 @@ function getScrollParent(node) {
3331
3200
  /*
3332
3201
  given a DOM element, return the list of all scroll parents, up the list of ancesors
3333
3202
  until we get to the top window object. This list is what we attach scroll listeners
3334
- to, because if any of these parent elements scroll, we'll need to re-calculate the
3203
+ to, because if any of these parent elements scroll, we'll need to re-calculate the
3335
3204
  reference element's position.
3336
3205
  */
3337
3206
 
3338
3207
  function listScrollParents(element, list) {
3339
- var _element$ownerDocumen;
3340
-
3341
3208
  if (list === void 0) {
3342
3209
  list = [];
3343
3210
  }
3344
3211
 
3345
3212
  var scrollParent = getScrollParent(element);
3346
- var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);
3213
+ var isBody = getNodeName(scrollParent) === 'body';
3347
3214
  var win = getWindow(scrollParent);
3348
3215
  var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
3349
3216
  var updatedList = list.concat(target);
3350
- return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
3217
+ return isBody ? updatedList : // $FlowFixMe: isBody tells us target will be an HTMLElement here
3351
3218
  updatedList.concat(listScrollParents(getParentNode(target)));
3352
3219
  }
3353
3220
 
3354
3221
  function rectToClientRect(rect) {
3355
- return Object.assign({}, rect, {
3222
+ return Object.assign(Object.assign({}, rect), {}, {
3356
3223
  left: rect.x,
3357
3224
  top: rect.y,
3358
3225
  right: rect.x + rect.width,
@@ -3387,7 +3254,7 @@ function getClippingParents(element) {
3387
3254
 
3388
3255
  if (!isElement(clipperElement)) {
3389
3256
  return [];
3390
- } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
3257
+ } // $FlowFixMe: https://github.com/facebook/flow/issues/1414
3391
3258
 
3392
3259
 
3393
3260
  return clippingParents.filter(function (clippingParent) {
@@ -3403,10 +3270,10 @@ function getClippingRect(element, boundary, rootBoundary) {
3403
3270
  var firstClippingParent = clippingParents[0];
3404
3271
  var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
3405
3272
  var rect = getClientRectFromMixedType(element, clippingParent);
3406
- accRect.top = max(rect.top, accRect.top);
3407
- accRect.right = min(rect.right, accRect.right);
3408
- accRect.bottom = min(rect.bottom, accRect.bottom);
3409
- accRect.left = max(rect.left, accRect.left);
3273
+ accRect.top = Math.max(rect.top, accRect.top);
3274
+ accRect.right = Math.min(rect.right, accRect.right);
3275
+ accRect.bottom = Math.min(rect.bottom, accRect.bottom);
3276
+ accRect.left = Math.max(rect.left, accRect.left);
3410
3277
  return accRect;
3411
3278
  }, getClientRectFromMixedType(element, firstClippingParent));
3412
3279
  clippingRect.width = clippingRect.right - clippingRect.left;
@@ -3473,11 +3340,11 @@ function computeOffsets(_ref) {
3473
3340
 
3474
3341
  switch (variation) {
3475
3342
  case start:
3476
- offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
3343
+ offsets[mainAxis] = Math.floor(offsets[mainAxis]) - Math.floor(reference[len] / 2 - element[len] / 2);
3477
3344
  break;
3478
3345
 
3479
3346
  case end:
3480
- offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
3347
+ offsets[mainAxis] = Math.floor(offsets[mainAxis]) + Math.ceil(reference[len] / 2 - element[len] / 2);
3481
3348
  break;
3482
3349
  }
3483
3350
  }
@@ -3516,7 +3383,7 @@ function detectOverflow(state, options) {
3516
3383
  strategy: 'absolute',
3517
3384
  placement: placement
3518
3385
  });
3519
- var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
3386
+ var popperClientRect = rectToClientRect(Object.assign(Object.assign({}, popperRect), popperOffsets));
3520
3387
  var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
3521
3388
  // 0 or negative = within the clipping rect
3522
3389
 
@@ -3540,6 +3407,9 @@ function detectOverflow(state, options) {
3540
3407
  return overflowOffsets;
3541
3408
  }
3542
3409
 
3410
+ /*:: type OverflowsMap = { [ComputedPlacement]: number }; */
3411
+
3412
+ /*;; type OverflowsMap = { [key in ComputedPlacement]: number }; */
3543
3413
  function computeAutoPlacement(state, options) {
3544
3414
  if (options === void 0) {
3545
3415
  options = {};
@@ -3556,7 +3426,8 @@ function computeAutoPlacement(state, options) {
3556
3426
  var variation = getVariation(placement);
3557
3427
  var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
3558
3428
  return getVariation(placement) === variation;
3559
- }) : basePlacements;
3429
+ }) : basePlacements; // $FlowFixMe
3430
+
3560
3431
  var allowedPlacements = placements$1.filter(function (placement) {
3561
3432
  return allowedAutoPlacements.indexOf(placement) >= 0;
3562
3433
  });
@@ -3567,7 +3438,7 @@ function computeAutoPlacement(state, options) {
3567
3438
  if (process.env.NODE_ENV !== "production") {
3568
3439
  console.error(['Popper: The `allowedAutoPlacements` option did not allow any', 'placements. Ensure the `placement` option matches the variation', 'of the allowed placements.', 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(' '));
3569
3440
  }
3570
- } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
3441
+ } // $FlowFixMe: Flow seems to have problems with two array unions...
3571
3442
 
3572
3443
 
3573
3444
  var overflows = allowedPlacements.reduce(function (acc, placement) {
@@ -3768,7 +3639,7 @@ function hide(_ref) {
3768
3639
  isReferenceHidden: isReferenceHidden,
3769
3640
  hasPopperEscaped: hasPopperEscaped
3770
3641
  };
3771
- state.attributes.popper = Object.assign({}, state.attributes.popper, {
3642
+ state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
3772
3643
  'data-popper-reference-hidden': isReferenceHidden,
3773
3644
  'data-popper-escaped': hasPopperEscaped
3774
3645
  });
@@ -3787,7 +3658,7 @@ function distanceAndSkiddingToXY(placement, rects, offset) {
3787
3658
  var basePlacement = getBasePlacement(placement);
3788
3659
  var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
3789
3660
 
3790
- var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
3661
+ var _ref = typeof offset === 'function' ? offset(Object.assign(Object.assign({}, rects), {}, {
3791
3662
  placement: placement
3792
3663
  })) : offset,
3793
3664
  skidding = _ref[0],
@@ -3893,7 +3764,7 @@ function preventOverflow(_ref) {
3893
3764
  var popperOffsets = state.modifiersData.popperOffsets;
3894
3765
  var referenceRect = state.rects.reference;
3895
3766
  var popperRect = state.rects.popper;
3896
- var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
3767
+ var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign(Object.assign({}, state.rects), {}, {
3897
3768
  placement: state.placement
3898
3769
  })) : tetherOffset;
3899
3770
  var data = {
@@ -3905,13 +3776,13 @@ function preventOverflow(_ref) {
3905
3776
  return;
3906
3777
  }
3907
3778
 
3908
- if (checkMainAxis || checkAltAxis) {
3779
+ if (checkMainAxis) {
3909
3780
  var mainSide = mainAxis === 'y' ? top : left;
3910
3781
  var altSide = mainAxis === 'y' ? bottom : right;
3911
3782
  var len = mainAxis === 'y' ? 'height' : 'width';
3912
3783
  var offset = popperOffsets[mainAxis];
3913
- var min$1 = popperOffsets[mainAxis] + overflow[mainSide];
3914
- var max$1 = popperOffsets[mainAxis] - overflow[altSide];
3784
+ var min = popperOffsets[mainAxis] + overflow[mainSide];
3785
+ var max = popperOffsets[mainAxis] - overflow[altSide];
3915
3786
  var additive = tether ? -popperRect[len] / 2 : 0;
3916
3787
  var minLen = variation === start ? referenceRect[len] : popperRect[len];
3917
3788
  var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
@@ -3938,29 +3809,26 @@ function preventOverflow(_ref) {
3938
3809
  var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
3939
3810
  var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
3940
3811
  var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
3812
+ var preventedOffset = within(tether ? Math.min(min, tetherMin) : min, offset, tether ? Math.max(max, tetherMax) : max);
3813
+ popperOffsets[mainAxis] = preventedOffset;
3814
+ data[mainAxis] = preventedOffset - offset;
3815
+ }
3941
3816
 
3942
- if (checkMainAxis) {
3943
- var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset, tether ? max(max$1, tetherMax) : max$1);
3944
- popperOffsets[mainAxis] = preventedOffset;
3945
- data[mainAxis] = preventedOffset - offset;
3946
- }
3947
-
3948
- if (checkAltAxis) {
3949
- var _mainSide = mainAxis === 'x' ? top : left;
3817
+ if (checkAltAxis) {
3818
+ var _mainSide = mainAxis === 'x' ? top : left;
3950
3819
 
3951
- var _altSide = mainAxis === 'x' ? bottom : right;
3820
+ var _altSide = mainAxis === 'x' ? bottom : right;
3952
3821
 
3953
- var _offset = popperOffsets[altAxis];
3822
+ var _offset = popperOffsets[altAxis];
3954
3823
 
3955
- var _min = _offset + overflow[_mainSide];
3824
+ var _min = _offset + overflow[_mainSide];
3956
3825
 
3957
- var _max = _offset - overflow[_altSide];
3826
+ var _max = _offset - overflow[_altSide];
3958
3827
 
3959
- var _preventedOffset = within(tether ? min(_min, tetherMin) : _min, _offset, tether ? max(_max, tetherMax) : _max);
3828
+ var _preventedOffset = within(_min, _offset, _max);
3960
3829
 
3961
- popperOffsets[altAxis] = _preventedOffset;
3962
- data[altAxis] = _preventedOffset - _offset;
3963
- }
3830
+ popperOffsets[altAxis] = _preventedOffset;
3831
+ data[altAxis] = _preventedOffset - _offset;
3964
3832
  }
3965
3833
 
3966
3834
  state.modifiersData[name] = data;
@@ -4191,9 +4059,9 @@ function uniqueBy(arr, fn) {
4191
4059
  function mergeByName(modifiers) {
4192
4060
  var merged = modifiers.reduce(function (merged, current) {
4193
4061
  var existing = merged[current.name];
4194
- merged[current.name] = existing ? Object.assign({}, existing, current, {
4195
- options: Object.assign({}, existing.options, current.options),
4196
- data: Object.assign({}, existing.data, current.data)
4062
+ merged[current.name] = existing ? Object.assign(Object.assign(Object.assign({}, existing), current), {}, {
4063
+ options: Object.assign(Object.assign({}, existing.options), current.options),
4064
+ data: Object.assign(Object.assign({}, existing.data), current.data)
4197
4065
  }) : current;
4198
4066
  return merged;
4199
4067
  }, {}); // IE11 does not support Object.values
@@ -4239,7 +4107,7 @@ function popperGenerator(generatorOptions) {
4239
4107
  var state = {
4240
4108
  placement: 'bottom',
4241
4109
  orderedModifiers: [],
4242
- options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
4110
+ options: Object.assign(Object.assign({}, DEFAULT_OPTIONS), defaultOptions),
4243
4111
  modifiersData: {},
4244
4112
  elements: {
4245
4113
  reference: reference,
@@ -4254,7 +4122,7 @@ function popperGenerator(generatorOptions) {
4254
4122
  state: state,
4255
4123
  setOptions: function setOptions(options) {
4256
4124
  cleanupModifierEffects();
4257
- state.options = Object.assign({}, defaultOptions, state.options, options);
4125
+ state.options = Object.assign(Object.assign(Object.assign({}, defaultOptions), state.options), options);
4258
4126
  state.scrollParents = {
4259
4127
  reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
4260
4128
  popper: listScrollParents(popper)
@@ -9466,7 +9334,7 @@ var Tooltip = React.forwardRef(function (_ref, ref) {
9466
9334
  Tooltip.defaultProps = defaultProps$E;
9467
9335
  Tooltip.displayName = 'Tooltip';
9468
9336
 
9469
- var css = ".MediaSeriesCard-module_article__SAFYK {\n width: 100%;\n margin: 0 0 1rem 0;\n}\n.MediaSeriesCard-module_article__SAFYK a {\n display: flex;\n width: 100%;\n color: #000000;\n}\n.MediaSeriesCard-module_thumb__3jRAU {\n width: 25%;\n}\n.MediaSeriesCard-module_thumb__3jRAU img {\n width: 100%;\n height: auto;\n}\n.MediaSeriesCard-module_info__3L7_o {\n width: 75%;\n font-size: 1rem;\n}\n.MediaSeriesCard-module_info__3L7_o h2 {\n font-weight: bold;\n font-size: 1.25rem;\n margin: 0;\n}\n.MediaSeriesCard-module_published__E4oiz {\n color: #6d6d6d;\n margin: 0;\n}\n.MediaSeriesCard-module_summary__1xanh {\n margin: 0.5rem 0 0 0;\n}\n.MediaSeriesCard-module_author__e5fuR {\n margin: 0;\n}\n.MediaSeriesCard-module_author__e5fuR span {\n color: #6d6d6d;\n}\n.MediaSeriesCard-module_name__2m5KY {\n font-size: 1.3rem;\n font-weight: bold;\n}\n@media only screen and (max-width: 568px) {\n .MediaSeriesCard-module_article__SAFYK {\n margin: 1rem 0;\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\n }\n .MediaSeriesCard-module_article__SAFYK a {\n flex-direction: column;\n align-items: center;\n }\n .MediaSeriesCard-module_thumb__3jRAU {\n overflow: hidden;\n width: 100%;\n margin-bottom: 1rem;\n }\n .MediaSeriesCard-module_thumb__3jRAU img{\n border-radius: 10px 10px 0 0; \n }\n .MediaSeriesCard-module_thumb__3jRAU figure {\n margin: 0;\n }\n .MediaSeriesCard-module_info__3L7_o {\n width: 90%;\n padding: 0rem !important;\n }\n .MediaSeriesCard-module_info__3L7_o h2 {\n font-size: 1rem;\n }\n .MediaSeriesCard-module_name__2m5KY {\n font-size: 1rem;\n \n }\n}\n";
9337
+ var css = ".MediaSeriesCard-module_article__SAFYK {\r\n width: 100%;\r\n margin: 0 0 1rem 0;\r\n}\r\n.MediaSeriesCard-module_article__SAFYK a {\r\n display: flex;\r\n width: 100%;\r\n color: #000000;\r\n}\r\n.MediaSeriesCard-module_thumb__3jRAU {\r\n width: 25%;\r\n}\r\n.MediaSeriesCard-module_thumb__3jRAU img {\r\n width: 100%;\r\n height: auto;\r\n}\r\n.MediaSeriesCard-module_info__3L7_o {\r\n width: 75%;\r\n font-size: 1rem;\r\n}\r\n.MediaSeriesCard-module_info__3L7_o h2 {\r\n font-weight: bold;\r\n font-size: 1.25rem;\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_published__E4oiz {\r\n color: #6d6d6d;\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_summary__1xanh {\r\n margin: 0.5rem 0 0 0;\r\n}\r\n.MediaSeriesCard-module_author__e5fuR {\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_author__e5fuR span {\r\n color: #6d6d6d;\r\n}\r\n.MediaSeriesCard-module_name__2m5KY {\r\n font-size: 1.3rem;\r\n font-weight: bold;\r\n}\r\n@media only screen and (max-width: 568px) {\r\n .MediaSeriesCard-module_article__SAFYK {\r\n margin: 1rem 0;\r\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\r\n }\r\n .MediaSeriesCard-module_article__SAFYK a {\r\n flex-direction: column;\r\n align-items: center;\r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU {\r\n overflow: hidden;\r\n width: 100%;\r\n margin-bottom: 1rem;\r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU img{\r\n border-radius: 10px 10px 0 0; \r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU figure {\r\n margin: 0;\r\n }\r\n .MediaSeriesCard-module_info__3L7_o {\r\n width: 90%;\r\n padding: 0rem !important;\r\n }\r\n .MediaSeriesCard-module_info__3L7_o h2 {\r\n font-size: 1rem;\r\n }\r\n .MediaSeriesCard-module_name__2m5KY {\r\n font-size: 1rem;\r\n \r\n }\r\n}\r\n";
9470
9338
  var styles = { "article": "MediaSeriesCard-module_article__SAFYK", "thumb": "MediaSeriesCard-module_thumb__3jRAU", "info": "MediaSeriesCard-module_info__3L7_o", "published": "MediaSeriesCard-module_published__E4oiz", "summary": "MediaSeriesCard-module_summary__1xanh", "author": "MediaSeriesCard-module_author__e5fuR", "name": "MediaSeriesCard-module_name__2m5KY" };
9471
9339
  styleInject(css);
9472
9340
 
@@ -9476,7 +9344,6 @@ var MediaSeriesCard = function MediaSeriesCard(props) {
9476
9344
  defaultImage = props.defaultImage,
9477
9345
  client = props.client;
9478
9346
 
9479
- var builder = imageUrlBuilder(client);
9480
9347
 
9481
9348
  return React.createElement(
9482
9349
  'div',
@@ -9494,7 +9361,7 @@ var MediaSeriesCard = function MediaSeriesCard(props) {
9494
9361
  LazyLoad,
9495
9362
  null,
9496
9363
  React.createElement('img', {
9497
- src: data.thumbnail && data.thumbnail.asset ? builder.image(data.thumbnail).url() : data.thumbnail && _typeof(data.thumbnail == 'string') ? data.thumbnail : defaultImage
9364
+ src: data.thumbnail && data.thumbnail.asset ? urlFor({ client: client, source: data.thumbnail }) : data.thumbnail && _typeof(data.thumbnail == 'string') ? data.thumbnail : defaultImage
9498
9365
  })
9499
9366
  )
9500
9367
  )
@@ -9554,11 +9421,11 @@ var Filter = function Filter(_ref) {
9554
9421
  _useState6 = _slicedToArray(_useState5, 2),
9555
9422
  grandChildData = _useState6[0],
9556
9423
  setGrandChildData = _useState6[1];
9557
- /*
9558
- {parent: showAll,
9559
- chidlren: show selected from parent,
9560
- grandchildren: show selected from children
9561
- }
9424
+ /*
9425
+ {parent: showAll,
9426
+ chidlren: show selected from parent,
9427
+ grandchildren: show selected from children
9428
+ }
9562
9429
  */
9563
9430
 
9564
9431