@planningcenter/react-beautiful-dnd 13.4.0 → 13.4.1

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.
@@ -1,11 +1,8 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('react-dom')) :
3
3
  typeof define === 'function' && define.amd ? define(['exports', 'react', 'react-dom'], factory) :
4
- (global = global || self, factory(global.ReactBeautifulDnd = {}, global.React, global.ReactDOM));
5
- }(this, (function (exports, React, ReactDOM) { 'use strict';
6
-
7
- var React__default = 'default' in React ? React['default'] : React;
8
- var ReactDOM__default = 'default' in ReactDOM ? ReactDOM['default'] : ReactDOM;
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ReactBeautifulDnd = {}, global.React, global.ReactDOM));
5
+ })(this, (function (exports, React, ReactDOM) { 'use strict';
9
6
 
10
7
  function _inheritsLoose(subClass, superClass) {
11
8
  subClass.prototype = Object.create(superClass.prototype);
@@ -16,12 +13,12 @@
16
13
  var spacesAndTabs = /[ \t]{2,}/g;
17
14
  var lineStartWithSpaces = /^[ \t]*/gm;
18
15
 
19
- var clean = function clean(value) {
16
+ var clean$2 = function clean(value) {
20
17
  return value.replace(spacesAndTabs, ' ').replace(lineStartWithSpaces, '').trim();
21
18
  };
22
19
 
23
20
  var getDevMessage = function getDevMessage(message) {
24
- return clean("\n %creact-beautiful-dnd\n\n %c" + clean(message) + "\n\n %c\uD83D\uDC77\u200D This is a development only message. It will be removed in production builds.\n");
21
+ return clean$2("\n %creact-beautiful-dnd\n\n %c" + clean$2(message) + "\n\n %c\uD83D\uDC77\u200D This is a development only message. It will be removed in production builds.\n");
25
22
  };
26
23
 
27
24
  var getFormattedMessage = function getFormattedMessage(message) {
@@ -37,13 +34,13 @@
37
34
 
38
35
  (_console = console)[type].apply(_console, getFormattedMessage(message));
39
36
  }
40
- var warning = log.bind(null, 'warn');
37
+ var warning$2 = log.bind(null, 'warn');
41
38
  var error = log.bind(null, 'error');
42
39
 
43
- function noop() {}
40
+ function noop$2() {}
44
41
 
45
- function _extends() {
46
- _extends = Object.assign || function (target) {
42
+ function _extends$1() {
43
+ _extends$1 = Object.assign || function (target) {
47
44
  for (var i = 1; i < arguments.length; i++) {
48
45
  var source = arguments[i];
49
46
 
@@ -57,11 +54,11 @@
57
54
  return target;
58
55
  };
59
56
 
60
- return _extends.apply(this, arguments);
57
+ return _extends$1.apply(this, arguments);
61
58
  }
62
59
 
63
60
  function getOptions(shared, fromBinding) {
64
- return _extends({}, shared, {}, fromBinding);
61
+ return _extends$1({}, shared, {}, fromBinding);
65
62
  }
66
63
 
67
64
  function bindEvents(el, bindings, sharedOptions) {
@@ -79,7 +76,8 @@
79
76
  };
80
77
  }
81
78
 
82
- var prefix = 'Invariant failed';
79
+ var isProduction$1 = "development" === 'production';
80
+ var prefix$2 = 'Invariant failed';
83
81
  function RbdInvariant(message) {
84
82
  this.message = message;
85
83
  }
@@ -88,13 +86,15 @@
88
86
  return this.message;
89
87
  };
90
88
 
91
- function invariant(condition, message) {
89
+ function invariant$1(condition, message) {
92
90
  if (condition) {
93
91
  return;
94
92
  }
95
93
 
96
- {
97
- throw new RbdInvariant(prefix + ": " + (message || ''));
94
+ if (isProduction$1) {
95
+ throw new RbdInvariant(prefix$2);
96
+ } else {
97
+ throw new RbdInvariant(prefix$2 + ": " + (message || ''));
98
98
  }
99
99
  }
100
100
 
@@ -110,14 +110,14 @@
110
110
 
111
111
  _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
112
112
  _this.callbacks = null;
113
- _this.unbind = noop;
113
+ _this.unbind = noop$2;
114
114
 
115
115
  _this.onWindowError = function (event) {
116
116
  var callbacks = _this.getCallbacks();
117
117
 
118
118
  if (callbacks.isDragging()) {
119
119
  callbacks.tryAbort();
120
- warning("\n An error was caught by our window 'error' event listener while a drag was occurring.\n The active drag has been aborted.\n ") ;
120
+ warning$2("\n An error was caught by our window 'error' event listener while a drag was occurring.\n The active drag has been aborted.\n ") ;
121
121
  }
122
122
 
123
123
  var err = event.error;
@@ -177,7 +177,7 @@
177
177
  };
178
178
 
179
179
  return ErrorBoundary;
180
- }(React__default.Component);
180
+ }(React.Component);
181
181
 
182
182
  var dragHandleUsageInstructions = "\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n";
183
183
 
@@ -256,6 +256,7 @@
256
256
  onDragUpdate: onDragUpdate,
257
257
  onDragEnd: onDragEnd
258
258
  };
259
+ var preset$1 = preset;
259
260
 
260
261
  function symbolObservablePonyfill(root) {
261
262
  var result;
@@ -315,7 +316,7 @@
315
316
  * @param {any} obj The object to inspect.
316
317
  * @returns {boolean} True if the argument appears to be a plain object.
317
318
  */
318
- function isPlainObject(obj) {
319
+ function isPlainObject$1(obj) {
319
320
  if (typeof obj !== 'object' || obj === null) return false;
320
321
  var proto = obj;
321
322
 
@@ -352,7 +353,7 @@
352
353
  * and subscribe to changes.
353
354
  */
354
355
 
355
- function createStore(reducer, preloadedState, enhancer) {
356
+ function createStore$1(reducer, preloadedState, enhancer) {
356
357
  var _ref2;
357
358
 
358
359
  if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') {
@@ -369,7 +370,7 @@
369
370
  throw new Error('Expected the enhancer to be a function.');
370
371
  }
371
372
 
372
- return enhancer(createStore)(reducer, preloadedState);
373
+ return enhancer(createStore$1)(reducer, preloadedState);
373
374
  }
374
375
 
375
376
  if (typeof reducer !== 'function') {
@@ -489,7 +490,7 @@
489
490
 
490
491
 
491
492
  function dispatch(action) {
492
- if (!isPlainObject(action)) {
493
+ if (!isPlainObject$1(action)) {
493
494
  throw new Error('Actions must be plain objects. ' + 'Use custom middleware for async actions.');
494
495
  }
495
496
 
@@ -807,7 +808,7 @@
807
808
 
808
809
  function isCrushed() {}
809
810
 
810
- if ( typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') {
811
+ if (typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') {
811
812
  warning$1('You are currently using minified code outside of NODE_ENV === "production". ' + 'This means that you are running a slower development build of Redux. ' + 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + 'or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) ' + 'to ensure you have the correct code for your production build.');
812
813
  }
813
814
 
@@ -829,34 +830,34 @@
829
830
  });
830
831
 
831
832
  unwrapExports(reactIs_production_min);
832
- var reactIs_production_min_1 = reactIs_production_min.typeOf;
833
- var reactIs_production_min_2 = reactIs_production_min.AsyncMode;
834
- var reactIs_production_min_3 = reactIs_production_min.ConcurrentMode;
835
- var reactIs_production_min_4 = reactIs_production_min.ContextConsumer;
836
- var reactIs_production_min_5 = reactIs_production_min.ContextProvider;
837
- var reactIs_production_min_6 = reactIs_production_min.Element;
838
- var reactIs_production_min_7 = reactIs_production_min.ForwardRef;
839
- var reactIs_production_min_8 = reactIs_production_min.Fragment;
840
- var reactIs_production_min_9 = reactIs_production_min.Lazy;
841
- var reactIs_production_min_10 = reactIs_production_min.Memo;
842
- var reactIs_production_min_11 = reactIs_production_min.Portal;
843
- var reactIs_production_min_12 = reactIs_production_min.Profiler;
844
- var reactIs_production_min_13 = reactIs_production_min.StrictMode;
845
- var reactIs_production_min_14 = reactIs_production_min.Suspense;
846
- var reactIs_production_min_15 = reactIs_production_min.isValidElementType;
847
- var reactIs_production_min_16 = reactIs_production_min.isAsyncMode;
848
- var reactIs_production_min_17 = reactIs_production_min.isConcurrentMode;
849
- var reactIs_production_min_18 = reactIs_production_min.isContextConsumer;
850
- var reactIs_production_min_19 = reactIs_production_min.isContextProvider;
851
- var reactIs_production_min_20 = reactIs_production_min.isElement;
852
- var reactIs_production_min_21 = reactIs_production_min.isForwardRef;
853
- var reactIs_production_min_22 = reactIs_production_min.isFragment;
854
- var reactIs_production_min_23 = reactIs_production_min.isLazy;
855
- var reactIs_production_min_24 = reactIs_production_min.isMemo;
856
- var reactIs_production_min_25 = reactIs_production_min.isPortal;
857
- var reactIs_production_min_26 = reactIs_production_min.isProfiler;
858
- var reactIs_production_min_27 = reactIs_production_min.isStrictMode;
859
- var reactIs_production_min_28 = reactIs_production_min.isSuspense;
833
+ reactIs_production_min.typeOf;
834
+ reactIs_production_min.AsyncMode;
835
+ reactIs_production_min.ConcurrentMode;
836
+ reactIs_production_min.ContextConsumer;
837
+ reactIs_production_min.ContextProvider;
838
+ reactIs_production_min.Element;
839
+ reactIs_production_min.ForwardRef;
840
+ reactIs_production_min.Fragment;
841
+ reactIs_production_min.Lazy;
842
+ reactIs_production_min.Memo;
843
+ reactIs_production_min.Portal;
844
+ reactIs_production_min.Profiler;
845
+ reactIs_production_min.StrictMode;
846
+ reactIs_production_min.Suspense;
847
+ reactIs_production_min.isValidElementType;
848
+ reactIs_production_min.isAsyncMode;
849
+ reactIs_production_min.isConcurrentMode;
850
+ reactIs_production_min.isContextConsumer;
851
+ reactIs_production_min.isContextProvider;
852
+ reactIs_production_min.isElement;
853
+ reactIs_production_min.isForwardRef;
854
+ reactIs_production_min.isFragment;
855
+ reactIs_production_min.isLazy;
856
+ reactIs_production_min.isMemo;
857
+ reactIs_production_min.isPortal;
858
+ reactIs_production_min.isProfiler;
859
+ reactIs_production_min.isStrictMode;
860
+ reactIs_production_min.isSuspense;
860
861
 
861
862
  var reactIs_development = createCommonjsModule(function (module, exports) {
862
863
 
@@ -1087,34 +1088,34 @@
1087
1088
  });
1088
1089
 
1089
1090
  unwrapExports(reactIs_development);
1090
- var reactIs_development_1 = reactIs_development.typeOf;
1091
- var reactIs_development_2 = reactIs_development.AsyncMode;
1092
- var reactIs_development_3 = reactIs_development.ConcurrentMode;
1093
- var reactIs_development_4 = reactIs_development.ContextConsumer;
1094
- var reactIs_development_5 = reactIs_development.ContextProvider;
1095
- var reactIs_development_6 = reactIs_development.Element;
1096
- var reactIs_development_7 = reactIs_development.ForwardRef;
1097
- var reactIs_development_8 = reactIs_development.Fragment;
1098
- var reactIs_development_9 = reactIs_development.Lazy;
1099
- var reactIs_development_10 = reactIs_development.Memo;
1100
- var reactIs_development_11 = reactIs_development.Portal;
1101
- var reactIs_development_12 = reactIs_development.Profiler;
1102
- var reactIs_development_13 = reactIs_development.StrictMode;
1103
- var reactIs_development_14 = reactIs_development.Suspense;
1104
- var reactIs_development_15 = reactIs_development.isValidElementType;
1105
- var reactIs_development_16 = reactIs_development.isAsyncMode;
1106
- var reactIs_development_17 = reactIs_development.isConcurrentMode;
1107
- var reactIs_development_18 = reactIs_development.isContextConsumer;
1108
- var reactIs_development_19 = reactIs_development.isContextProvider;
1109
- var reactIs_development_20 = reactIs_development.isElement;
1110
- var reactIs_development_21 = reactIs_development.isForwardRef;
1111
- var reactIs_development_22 = reactIs_development.isFragment;
1112
- var reactIs_development_23 = reactIs_development.isLazy;
1113
- var reactIs_development_24 = reactIs_development.isMemo;
1114
- var reactIs_development_25 = reactIs_development.isPortal;
1115
- var reactIs_development_26 = reactIs_development.isProfiler;
1116
- var reactIs_development_27 = reactIs_development.isStrictMode;
1117
- var reactIs_development_28 = reactIs_development.isSuspense;
1091
+ reactIs_development.typeOf;
1092
+ reactIs_development.AsyncMode;
1093
+ reactIs_development.ConcurrentMode;
1094
+ reactIs_development.ContextConsumer;
1095
+ reactIs_development.ContextProvider;
1096
+ reactIs_development.Element;
1097
+ reactIs_development.ForwardRef;
1098
+ reactIs_development.Fragment;
1099
+ reactIs_development.Lazy;
1100
+ reactIs_development.Memo;
1101
+ reactIs_development.Portal;
1102
+ reactIs_development.Profiler;
1103
+ reactIs_development.StrictMode;
1104
+ reactIs_development.Suspense;
1105
+ reactIs_development.isValidElementType;
1106
+ reactIs_development.isAsyncMode;
1107
+ reactIs_development.isConcurrentMode;
1108
+ reactIs_development.isContextConsumer;
1109
+ reactIs_development.isContextProvider;
1110
+ reactIs_development.isElement;
1111
+ reactIs_development.isForwardRef;
1112
+ reactIs_development.isFragment;
1113
+ reactIs_development.isLazy;
1114
+ reactIs_development.isMemo;
1115
+ reactIs_development.isPortal;
1116
+ reactIs_development.isProfiler;
1117
+ reactIs_development.isStrictMode;
1118
+ reactIs_development.isSuspense;
1118
1119
 
1119
1120
  var reactIs = createCommonjsModule(function (module) {
1120
1121
 
@@ -1130,8 +1131,9 @@
1130
1131
  (c) Sindre Sorhus
1131
1132
  @license MIT
1132
1133
  */
1134
+
1133
1135
  /* eslint-disable no-unused-vars */
1134
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
1136
+ var getOwnPropertySymbols$1 = Object.getOwnPropertySymbols;
1135
1137
  var hasOwnProperty = Object.prototype.hasOwnProperty;
1136
1138
  var propIsEnumerable = Object.prototype.propertyIsEnumerable;
1137
1139
 
@@ -1201,8 +1203,8 @@
1201
1203
  }
1202
1204
  }
1203
1205
 
1204
- if (getOwnPropertySymbols) {
1205
- symbols = getOwnPropertySymbols(from);
1206
+ if (getOwnPropertySymbols$1) {
1207
+ symbols = getOwnPropertySymbols$1(from);
1206
1208
  for (var i = 0; i < symbols.length; i++) {
1207
1209
  if (propIsEnumerable.call(from, symbols[i])) {
1208
1210
  to[symbols[i]] = from[symbols[i]];
@@ -1221,18 +1223,19 @@
1221
1223
  * LICENSE file in the root directory of this source tree.
1222
1224
  */
1223
1225
 
1224
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
1225
1226
 
1226
- var ReactPropTypesSecret_1 = ReactPropTypesSecret;
1227
+ var ReactPropTypesSecret$1 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
1227
1228
 
1228
- var printWarning = function() {};
1229
+ var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
1230
+
1231
+ var printWarning$1 = function() {};
1229
1232
 
1230
1233
  {
1231
- var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
1234
+ var ReactPropTypesSecret = ReactPropTypesSecret_1;
1232
1235
  var loggedTypeFailures = {};
1233
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
1236
+ var has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
1234
1237
 
1235
- printWarning = function(text) {
1238
+ printWarning$1 = function(text) {
1236
1239
  var message = 'Warning: ' + text;
1237
1240
  if (typeof console !== 'undefined') {
1238
1241
  console.error(message);
@@ -1260,7 +1263,7 @@
1260
1263
  function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
1261
1264
  {
1262
1265
  for (var typeSpecName in typeSpecs) {
1263
- if (has(typeSpecs, typeSpecName)) {
1266
+ if (has$1(typeSpecs, typeSpecName)) {
1264
1267
  var error;
1265
1268
  // Prop type validation may throw. In case they do, we don't want to
1266
1269
  // fail the render phase where it didn't fail before. So we log it.
@@ -1276,12 +1279,12 @@
1276
1279
  err.name = 'Invariant Violation';
1277
1280
  throw err;
1278
1281
  }
1279
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$1);
1282
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
1280
1283
  } catch (ex) {
1281
1284
  error = ex;
1282
1285
  }
1283
1286
  if (error && !(error instanceof Error)) {
1284
- printWarning(
1287
+ printWarning$1(
1285
1288
  (componentName || 'React class') + ': type specification of ' +
1286
1289
  location + ' `' + typeSpecName + '` is invalid; the type checker ' +
1287
1290
  'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
@@ -1297,7 +1300,7 @@
1297
1300
 
1298
1301
  var stack = getStack ? getStack() : '';
1299
1302
 
1300
- printWarning(
1303
+ printWarning$1(
1301
1304
  'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
1302
1305
  );
1303
1306
  }
@@ -1319,11 +1322,11 @@
1319
1322
 
1320
1323
  var checkPropTypes_1 = checkPropTypes;
1321
1324
 
1322
- var has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
1323
- var printWarning$1 = function() {};
1325
+ var has = Function.call.bind(Object.prototype.hasOwnProperty);
1326
+ var printWarning = function() {};
1324
1327
 
1325
1328
  {
1326
- printWarning$1 = function(text) {
1329
+ printWarning = function(text) {
1327
1330
  var message = 'Warning: ' + text;
1328
1331
  if (typeof console !== 'undefined') {
1329
1332
  console.error(message);
@@ -1491,7 +1494,7 @@
1491
1494
  );
1492
1495
  err.name = 'Invariant Violation';
1493
1496
  throw err;
1494
- } else if ( typeof console !== 'undefined') {
1497
+ } else if (typeof console !== 'undefined') {
1495
1498
  // Old behavior for people using React.PropTypes
1496
1499
  var cacheKey = componentName + ':' + propName;
1497
1500
  if (
@@ -1499,7 +1502,7 @@
1499
1502
  // Avoid spamming the console because they are often not actionable except for lib authors
1500
1503
  manualPropTypeWarningCount < 3
1501
1504
  ) {
1502
- printWarning$1(
1505
+ printWarning(
1503
1506
  'You are manually calling a React.PropTypes validation ' +
1504
1507
  'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
1505
1508
  'and will throw in the standalone `prop-types` package. ' +
@@ -1612,12 +1615,12 @@
1612
1615
  if (!Array.isArray(expectedValues)) {
1613
1616
  {
1614
1617
  if (arguments.length > 1) {
1615
- printWarning$1(
1618
+ printWarning(
1616
1619
  'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
1617
1620
  'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
1618
1621
  );
1619
1622
  } else {
1620
- printWarning$1('Invalid argument supplied to oneOf, expected an array.');
1623
+ printWarning('Invalid argument supplied to oneOf, expected an array.');
1621
1624
  }
1622
1625
  }
1623
1626
  return emptyFunctionThatReturnsNull;
@@ -1654,7 +1657,7 @@
1654
1657
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
1655
1658
  }
1656
1659
  for (var key in propValue) {
1657
- if (has$1(propValue, key)) {
1660
+ if (has(propValue, key)) {
1658
1661
  var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
1659
1662
  if (error instanceof Error) {
1660
1663
  return error;
@@ -1668,14 +1671,14 @@
1668
1671
 
1669
1672
  function createUnionTypeChecker(arrayOfTypeCheckers) {
1670
1673
  if (!Array.isArray(arrayOfTypeCheckers)) {
1671
- printWarning$1('Invalid argument supplied to oneOfType, expected an instance of array.') ;
1674
+ printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') ;
1672
1675
  return emptyFunctionThatReturnsNull;
1673
1676
  }
1674
1677
 
1675
1678
  for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1676
1679
  var checker = arrayOfTypeCheckers[i];
1677
1680
  if (typeof checker !== 'function') {
1678
- printWarning$1(
1681
+ printWarning(
1679
1682
  'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
1680
1683
  'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
1681
1684
  );
@@ -1916,7 +1919,7 @@
1916
1919
 
1917
1920
  var ReactReduxContext =
1918
1921
  /*#__PURE__*/
1919
- React__default.createContext(null);
1922
+ React.createContext(null);
1920
1923
 
1921
1924
  {
1922
1925
  ReactReduxContext.displayName = 'ReactRedux';
@@ -2088,7 +2091,7 @@
2088
2091
  };
2089
2092
  }, [contextValue, previousState]);
2090
2093
  var Context = context || ReactReduxContext;
2091
- return React__default.createElement(Context.Provider, {
2094
+ return React.createElement(Context.Provider, {
2092
2095
  value: contextValue
2093
2096
  }, children);
2094
2097
  }
@@ -2105,8 +2108,8 @@
2105
2108
  };
2106
2109
  }
2107
2110
 
2108
- function _extends$1() {
2109
- _extends$1 = Object.assign || function (target) {
2111
+ function _extends() {
2112
+ _extends = Object.assign || function (target) {
2110
2113
  for (var i = 1; i < arguments.length; i++) {
2111
2114
  var source = arguments[i];
2112
2115
 
@@ -2120,7 +2123,7 @@
2120
2123
  return target;
2121
2124
  };
2122
2125
 
2123
- return _extends$1.apply(this, arguments);
2126
+ return _extends.apply(this, arguments);
2124
2127
  }
2125
2128
 
2126
2129
  function _objectWithoutPropertiesLoose(source, excluded) {
@@ -2195,7 +2198,7 @@
2195
2198
 
2196
2199
  var defineProperty = Object.defineProperty;
2197
2200
  var getOwnPropertyNames = Object.getOwnPropertyNames;
2198
- var getOwnPropertySymbols$1 = Object.getOwnPropertySymbols;
2201
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
2199
2202
  var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
2200
2203
  var getPrototypeOf = Object.getPrototypeOf;
2201
2204
  var objectPrototype = Object.prototype;
@@ -2212,8 +2215,8 @@
2212
2215
 
2213
2216
  var keys = getOwnPropertyNames(sourceComponent);
2214
2217
 
2215
- if (getOwnPropertySymbols$1) {
2216
- keys = keys.concat(getOwnPropertySymbols$1(sourceComponent));
2218
+ if (getOwnPropertySymbols) {
2219
+ keys = keys.concat(getOwnPropertySymbols(sourceComponent));
2217
2220
  }
2218
2221
 
2219
2222
  var targetStatics = getStatics(targetComponent);
@@ -2246,7 +2249,7 @@
2246
2249
  // is created synchronously, otherwise a store update may occur before the
2247
2250
  // subscription is created and an inconsistent state may be observed
2248
2251
 
2249
- var useIsomorphicLayoutEffect = typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined' ? React.useLayoutEffect : React.useEffect;
2252
+ var useIsomorphicLayoutEffect$1 = typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined' ? React.useLayoutEffect : React.useEffect;
2250
2253
 
2251
2254
  var EMPTY_ARRAY = [];
2252
2255
  var NO_SUBSCRIPTION_ARRAY = [null, null];
@@ -2265,7 +2268,7 @@
2265
2268
  }
2266
2269
 
2267
2270
  function useIsomorphicLayoutEffectWithArgs(effectFunc, effectArgs, dependencies) {
2268
- useIsomorphicLayoutEffect(function () {
2271
+ useIsomorphicLayoutEffect$1(function () {
2269
2272
  return effectFunc.apply(void 0, effectArgs);
2270
2273
  }, dependencies);
2271
2274
  }
@@ -2424,14 +2427,14 @@
2424
2427
 
2425
2428
  var Context = context;
2426
2429
  return function wrapWithConnect(WrappedComponent) {
2427
- if ( !reactIs_1(WrappedComponent)) {
2430
+ if (!reactIs_1(WrappedComponent)) {
2428
2431
  throw new Error("You must pass a component to the function returned by " + (methodName + ". Instead received " + stringifyComponent(WrappedComponent)));
2429
2432
  }
2430
2433
 
2431
2434
  var wrappedComponentName = WrappedComponent.displayName || WrappedComponent.name || 'Component';
2432
2435
  var displayName = getDisplayName(wrappedComponentName);
2433
2436
 
2434
- var selectorFactoryOptions = _extends$1({}, connectOptions, {
2437
+ var selectorFactoryOptions = _extends({}, connectOptions, {
2435
2438
  getDisplayName: getDisplayName,
2436
2439
  methodName: methodName,
2437
2440
  renderCountProp: renderCountProp,
@@ -2472,7 +2475,7 @@
2472
2475
  var ContextToUse = React.useMemo(function () {
2473
2476
  // Users may optionally pass in a custom context instance to use instead of our ReactReduxContext.
2474
2477
  // Memoize the check that determines which context instance we should use.
2475
- return propsContext && propsContext.Consumer && reactIs_2(React__default.createElement(propsContext.Consumer, null)) ? propsContext : Context;
2478
+ return propsContext && propsContext.Consumer && reactIs_2(React.createElement(propsContext.Consumer, null)) ? propsContext : Context;
2476
2479
  }, [propsContext, Context]); // Retrieve the store and ancestor subscription via context, if available
2477
2480
 
2478
2481
  var contextValue = React.useContext(ContextToUse); // The store _must_ exist as either a prop or in context.
@@ -2482,7 +2485,7 @@
2482
2485
  var didStoreComeFromProps = Boolean(props.store) && Boolean(props.store.getState) && Boolean(props.store.dispatch);
2483
2486
  var didStoreComeFromContext = Boolean(contextValue) && Boolean(contextValue.store);
2484
2487
 
2485
- if ( !didStoreComeFromProps && !didStoreComeFromContext) {
2488
+ if (!didStoreComeFromProps && !didStoreComeFromContext) {
2486
2489
  throw new Error("Could not find \"store\" in the context of " + ("\"" + displayName + "\". Either wrap the root component in a <Provider>, ") + "or pass a custom React context provider to <Provider> and the corresponding " + ("React context consumer to " + displayName + " in connect options."));
2487
2490
  } // Based on the previous check, one of these must be true
2488
2491
 
@@ -2521,7 +2524,7 @@
2521
2524
  // connected descendants won't update until after this component is done
2522
2525
 
2523
2526
 
2524
- return _extends$1({}, contextValue, {
2527
+ return _extends({}, contextValue, {
2525
2528
  subscription: subscription
2526
2529
  });
2527
2530
  }, [didStoreComeFromProps, contextValue, subscription]); // We need to force this wrapper component to re-render whenever a Redux store update
@@ -2568,7 +2571,7 @@
2568
2571
  // We memoize the elements for the rendered child component as an optimization.
2569
2572
 
2570
2573
  var renderedWrappedComponent = React.useMemo(function () {
2571
- return React__default.createElement(WrappedComponent, _extends$1({}, actualChildProps, {
2574
+ return React.createElement(WrappedComponent, _extends({}, actualChildProps, {
2572
2575
  ref: forwardedRef
2573
2576
  }));
2574
2577
  }, [forwardedRef, WrappedComponent, actualChildProps]); // If React sees the exact same element reference as last time, it bails out of re-rendering
@@ -2579,7 +2582,7 @@
2579
2582
  // If this component is subscribed to store updates, we need to pass its own
2580
2583
  // subscription instance down to our descendants. That means rendering the same
2581
2584
  // Context instance, and putting a different value into the context.
2582
- return React__default.createElement(ContextToUse.Provider, {
2585
+ return React.createElement(ContextToUse.Provider, {
2583
2586
  value: overriddenContextValue
2584
2587
  }, renderedWrappedComponent);
2585
2588
  }
@@ -2590,13 +2593,13 @@
2590
2593
  } // If we're in "pure" mode, ensure our wrapper component only re-renders when incoming props have changed.
2591
2594
 
2592
2595
 
2593
- var Connect = pure ? React__default.memo(ConnectFunction) : ConnectFunction;
2596
+ var Connect = pure ? React.memo(ConnectFunction) : ConnectFunction;
2594
2597
  Connect.WrappedComponent = WrappedComponent;
2595
2598
  Connect.displayName = displayName;
2596
2599
 
2597
2600
  if (forwardRef) {
2598
- var forwarded = React__default.forwardRef(function forwardConnectRef(props, ref) {
2599
- return React__default.createElement(Connect, _extends$1({}, props, {
2601
+ var forwarded = React.forwardRef(function forwardConnectRef(props, ref) {
2602
+ return React.createElement(Connect, _extends({}, props, {
2600
2603
  forwardedRef: ref
2601
2604
  }));
2602
2605
  });
@@ -2641,7 +2644,7 @@
2641
2644
  * @param {any} obj The object to inspect.
2642
2645
  * @returns {boolean} True if the argument appears to be a plain object.
2643
2646
  */
2644
- function isPlainObject$1(obj) {
2647
+ function isPlainObject(obj) {
2645
2648
  if (typeof obj !== 'object' || obj === null) return false;
2646
2649
  var proto = Object.getPrototypeOf(obj);
2647
2650
  if (proto === null) return true;
@@ -2660,7 +2663,7 @@
2660
2663
  * @param {String} message The warning message.
2661
2664
  * @returns {void}
2662
2665
  */
2663
- function warning$2(message) {
2666
+ function warning(message) {
2664
2667
  /* eslint-disable no-console */
2665
2668
  if (typeof console !== 'undefined' && typeof console.error === 'function') {
2666
2669
  console.error(message);
@@ -2680,8 +2683,8 @@
2680
2683
  }
2681
2684
 
2682
2685
  function verifyPlainObject(value, displayName, methodName) {
2683
- if (!isPlainObject$1(value)) {
2684
- warning$2(methodName + "() in " + displayName + " must return a plain object. Instead received " + value + ".");
2686
+ if (!isPlainObject(value)) {
2687
+ warning(methodName + "() in " + displayName + " must return a plain object. Instead received " + value + ".");
2685
2688
  }
2686
2689
  }
2687
2690
 
@@ -2777,7 +2780,7 @@
2777
2780
  var defaultMapStateToPropsFactories = [whenMapStateToPropsIsFunction, whenMapStateToPropsIsMissing];
2778
2781
 
2779
2782
  function defaultMergeProps(stateProps, dispatchProps, ownProps) {
2780
- return _extends$1({}, ownProps, {}, stateProps, {}, dispatchProps);
2783
+ return _extends({}, ownProps, {}, stateProps, {}, dispatchProps);
2781
2784
  }
2782
2785
  function wrapMergePropsFunc(mergeProps) {
2783
2786
  return function initMergePropsProxy(dispatch, _ref) {
@@ -2816,7 +2819,7 @@
2816
2819
  throw new Error("Unexpected value for " + methodName + " in " + displayName + ".");
2817
2820
  } else if (methodName === 'mapStateToProps' || methodName === 'mapDispatchToProps') {
2818
2821
  if (!Object.prototype.hasOwnProperty.call(selector, 'dependsOnOwnProps')) {
2819
- warning$2("The selector for " + methodName + " of " + displayName + " did not specify a value for dependsOnOwnProps.");
2822
+ warning("The selector for " + methodName + " of " + displayName + " did not specify a value for dependsOnOwnProps.");
2820
2823
  }
2821
2824
  }
2822
2825
  }
@@ -2981,7 +2984,7 @@
2981
2984
  var initMapStateToProps = match(mapStateToProps, mapStateToPropsFactories, 'mapStateToProps');
2982
2985
  var initMapDispatchToProps = match(mapDispatchToProps, mapDispatchToPropsFactories, 'mapDispatchToProps');
2983
2986
  var initMergeProps = match(mergeProps, mergePropsFactories, 'mergeProps');
2984
- return connectHOC(selectorFactory, _extends$1({
2987
+ return connectHOC(selectorFactory, _extends({
2985
2988
  // used in error messages
2986
2989
  methodName: 'connect',
2987
2990
  // used to compute Connect's displayName from the wrapped component's displayName.
@@ -3007,7 +3010,7 @@
3007
3010
 
3008
3011
  setBatch(ReactDOM.unstable_batchedUpdates);
3009
3012
 
3010
- function areInputsEqual(newInputs, lastInputs) {
3013
+ function areInputsEqual$1(newInputs, lastInputs) {
3011
3014
  if (newInputs.length !== lastInputs.length) {
3012
3015
  return false;
3013
3016
  }
@@ -3029,7 +3032,7 @@
3029
3032
  };
3030
3033
  })[0];
3031
3034
  var committed = React.useRef(initial);
3032
- var isInputMatch = Boolean(inputs && committed.current.inputs && areInputsEqual(inputs, committed.current.inputs));
3035
+ var isInputMatch = Boolean(inputs && committed.current.inputs && areInputsEqual$1(inputs, committed.current.inputs));
3033
3036
  var cache = isInputMatch ? committed.current : {
3034
3037
  inputs: inputs,
3035
3038
  result: getResult()
@@ -3063,7 +3066,7 @@
3063
3066
  y: point1.y - point2.y
3064
3067
  };
3065
3068
  };
3066
- var isEqual = function isEqual(point1, point2) {
3069
+ var isEqual$1 = function isEqual(point1, point2) {
3067
3070
  return point1.x === point2.x && point1.y === point2.y;
3068
3071
  };
3069
3072
  var negate = function negate(point) {
@@ -3084,7 +3087,7 @@
3084
3087
  var distance = function distance(point1, point2) {
3085
3088
  return Math.sqrt(Math.pow(point2.x - point1.x, 2) + Math.pow(point2.y - point1.y, 2));
3086
3089
  };
3087
- var closest = function closest(target, points) {
3090
+ var closest$1 = function closest(target, points) {
3088
3091
  return Math.min.apply(Math, points.map(function (point) {
3089
3092
  return distance(target, point);
3090
3093
  }));
@@ -3098,11 +3101,15 @@
3098
3101
  };
3099
3102
  };
3100
3103
 
3104
+ var isProduction = "development" === 'production';
3101
3105
  var prefix$1 = 'Invariant failed';
3102
- function invariant$1(condition, message) {
3106
+ function invariant(condition, message) {
3103
3107
  if (condition) {
3104
3108
  return;
3105
3109
  }
3110
+ if (isProduction) {
3111
+ throw new Error(prefix$1);
3112
+ }
3106
3113
  throw new Error(prefix$1 + ": " + (message || ''));
3107
3114
  }
3108
3115
 
@@ -3155,7 +3162,7 @@
3155
3162
  };
3156
3163
  };
3157
3164
 
3158
- var noSpacing = {
3165
+ var noSpacing$1 = {
3159
3166
  top: 0,
3160
3167
  right: 0,
3161
3168
  bottom: 0,
@@ -3164,11 +3171,11 @@
3164
3171
  var createBox = function createBox(_ref2) {
3165
3172
  var borderBox = _ref2.borderBox,
3166
3173
  _ref2$margin = _ref2.margin,
3167
- margin = _ref2$margin === void 0 ? noSpacing : _ref2$margin,
3174
+ margin = _ref2$margin === void 0 ? noSpacing$1 : _ref2$margin,
3168
3175
  _ref2$border = _ref2.border,
3169
- border = _ref2$border === void 0 ? noSpacing : _ref2$border,
3176
+ border = _ref2$border === void 0 ? noSpacing$1 : _ref2$border,
3170
3177
  _ref2$padding = _ref2.padding,
3171
- padding = _ref2$padding === void 0 ? noSpacing : _ref2$padding;
3178
+ padding = _ref2$padding === void 0 ? noSpacing$1 : _ref2$padding;
3172
3179
  var marginBox = getRect(expand(borderBox, margin));
3173
3180
  var paddingBox = getRect(shrink(borderBox, border));
3174
3181
  var contentBox = getRect(shrink(paddingBox, padding));
@@ -3192,11 +3199,11 @@
3192
3199
  }
3193
3200
 
3194
3201
  var result = Number(value);
3195
- !!isNaN(result) ? invariant$1(false, "Could not parse value [raw: " + raw + ", without suffix: " + value + "]") : void 0;
3202
+ !!isNaN(result) ? invariant(false, "Could not parse value [raw: " + raw + ", without suffix: " + value + "]") : void 0;
3196
3203
  return result;
3197
3204
  };
3198
3205
 
3199
- var getWindowScroll = function getWindowScroll() {
3206
+ var getWindowScroll$1 = function getWindowScroll() {
3200
3207
  return {
3201
3208
  x: window.pageXOffset,
3202
3209
  y: window.pageYOffset
@@ -3218,7 +3225,7 @@
3218
3225
  };
3219
3226
  var withScroll = function withScroll(original, scroll) {
3220
3227
  if (scroll === void 0) {
3221
- scroll = getWindowScroll();
3228
+ scroll = getWindowScroll$1();
3222
3229
  }
3223
3230
 
3224
3231
  return offset(original, scroll);
@@ -3293,14 +3300,14 @@
3293
3300
  y: spacing.bottom
3294
3301
  }];
3295
3302
  };
3296
- var noSpacing$1 = {
3303
+ var noSpacing = {
3297
3304
  top: 0,
3298
3305
  right: 0,
3299
3306
  bottom: 0,
3300
3307
  left: 0
3301
3308
  };
3302
3309
 
3303
- var scroll = function scroll(target, frame) {
3310
+ var scroll$1 = function scroll(target, frame) {
3304
3311
  if (!frame) {
3305
3312
  return target;
3306
3313
  }
@@ -3312,7 +3319,7 @@
3312
3319
  if (withPlaceholder && withPlaceholder.increasedBy) {
3313
3320
  var _extends2;
3314
3321
 
3315
- return _extends({}, target, (_extends2 = {}, _extends2[axis.end] = target[axis.end] + withPlaceholder.increasedBy[axis.line], _extends2));
3322
+ return _extends$1({}, target, (_extends2 = {}, _extends2[axis.end] = target[axis.end] + withPlaceholder.increasedBy[axis.line], _extends2));
3316
3323
  }
3317
3324
 
3318
3325
  return target;
@@ -3331,7 +3338,7 @@
3331
3338
  withPlaceholder = _ref.withPlaceholder,
3332
3339
  axis = _ref.axis,
3333
3340
  frame = _ref.frame;
3334
- var scrolled = scroll(page.marginBox, frame);
3341
+ var scrolled = scroll$1(page.marginBox, frame);
3335
3342
  var increased = increase(scrolled, axis, withPlaceholder);
3336
3343
  var clipped = clip(increased, frame);
3337
3344
  return {
@@ -3342,12 +3349,12 @@
3342
3349
  });
3343
3350
 
3344
3351
  var scrollDroppable = (function (droppable, newScroll) {
3345
- !droppable.frame ? invariant(false) : void 0;
3352
+ !droppable.frame ? invariant$1(false) : void 0;
3346
3353
  var scrollable = droppable.frame;
3347
3354
  var scrollDiff = subtract(newScroll, scrollable.scroll.initial);
3348
3355
  var scrollDisplacement = negate(scrollDiff);
3349
3356
 
3350
- var frame = _extends({}, scrollable, {
3357
+ var frame = _extends$1({}, scrollable, {
3351
3358
  scroll: {
3352
3359
  initial: scrollable.scroll.initial,
3353
3360
  current: newScroll,
@@ -3366,7 +3373,7 @@
3366
3373
  frame: frame
3367
3374
  });
3368
3375
 
3369
- var result = _extends({}, droppable, {
3376
+ var result = _extends$1({}, droppable, {
3370
3377
  frame: frame,
3371
3378
  subject: subject
3372
3379
  });
@@ -3374,7 +3381,7 @@
3374
3381
  return result;
3375
3382
  });
3376
3383
 
3377
- function areInputsEqual$1(newInputs, lastInputs) {
3384
+ function areInputsEqual(newInputs, lastInputs) {
3378
3385
  if (newInputs.length !== lastInputs.length) {
3379
3386
  return false;
3380
3387
  }
@@ -3387,7 +3394,7 @@
3387
3394
  }
3388
3395
 
3389
3396
  function memoizeOne(resultFn, isEqual) {
3390
- if (isEqual === void 0) { isEqual = areInputsEqual$1; }
3397
+ if (isEqual === void 0) { isEqual = areInputsEqual; }
3391
3398
  var lastThis;
3392
3399
  var lastArgs = [];
3393
3400
  var lastResult;
@@ -3529,7 +3536,7 @@
3529
3536
  droppableId: destination.descriptor.id
3530
3537
  }
3531
3538
  };
3532
- return _extends({}, previousImpact, {
3539
+ return _extends$1({}, previousImpact, {
3533
3540
  at: at
3534
3541
  });
3535
3542
  }
@@ -3555,7 +3562,7 @@
3555
3562
  var indexOfClosest = findIndex(withoutDraggable, function (d) {
3556
3563
  return d.descriptor.id === closestId;
3557
3564
  });
3558
- !(indexOfClosest !== -1) ? invariant(false, 'Could not find displaced item in set') : void 0;
3565
+ !(indexOfClosest !== -1) ? invariant$1(false, 'Could not find displaced item in set') : void 0;
3559
3566
  var proposedIndex = indexOfClosest - 1;
3560
3567
 
3561
3568
  if (proposedIndex < 0) {
@@ -3584,6 +3591,7 @@
3584
3591
  displacedBy: noDisplacedBy,
3585
3592
  at: null
3586
3593
  };
3594
+ var noImpact$1 = noImpact;
3587
3595
 
3588
3596
  var isWithin = (function (lowerBound, upperBound) {
3589
3597
  return function (value) {
@@ -3685,7 +3693,7 @@
3685
3693
  return isVisibleThroughFrameFn(viewport)(target);
3686
3694
  };
3687
3695
 
3688
- var isVisible = function isVisible(_ref) {
3696
+ var isVisible$1 = function isVisible(_ref) {
3689
3697
  var toBeDisplaced = _ref.target,
3690
3698
  destination = _ref.destination,
3691
3699
  viewport = _ref.viewport,
@@ -3696,17 +3704,17 @@
3696
3704
  };
3697
3705
 
3698
3706
  var isPartiallyVisible = function isPartiallyVisible(args) {
3699
- return isVisible(_extends({}, args, {
3707
+ return isVisible$1(_extends$1({}, args, {
3700
3708
  isVisibleThroughFrameFn: isPartiallyVisibleThroughFrame
3701
3709
  }));
3702
3710
  };
3703
3711
  var isTotallyVisible = function isTotallyVisible(args) {
3704
- return isVisible(_extends({}, args, {
3712
+ return isVisible$1(_extends$1({}, args, {
3705
3713
  isVisibleThroughFrameFn: isTotallyVisibleThroughFrame
3706
3714
  }));
3707
3715
  };
3708
3716
  var isTotallyVisibleOnAxis = function isTotallyVisibleOnAxis(args) {
3709
- return isVisible(_extends({}, args, {
3717
+ return isVisible$1(_extends$1({}, args, {
3710
3718
  isVisibleThroughFrameFn: isTotallyVisibleThroughFrameOnAxis(args.destination.axis)
3711
3719
  }));
3712
3720
  };
@@ -3939,7 +3947,7 @@
3939
3947
  viewport = _ref.viewport,
3940
3948
  afterCritical = _ref.afterCritical;
3941
3949
  var wasAt = previousImpact.at;
3942
- !wasAt ? invariant(false, 'Cannot move in direction without previous impact location') : void 0;
3950
+ !wasAt ? invariant$1(false, 'Cannot move in direction without previous impact location') : void 0;
3943
3951
 
3944
3952
  if (wasAt.type === 'REORDER') {
3945
3953
  var _newIndex = fromReorder({
@@ -4007,7 +4015,7 @@
4007
4015
  impact = _ref.impact,
4008
4016
  draggables = _ref.draggables;
4009
4017
  var combine = tryGetCombine(impact);
4010
- !combine ? invariant(false) : void 0;
4018
+ !combine ? invariant$1(false) : void 0;
4011
4019
  var combineWith = combine.draggableId;
4012
4020
  var center = draggables[combineWith].page.borderBox.center;
4013
4021
  var displaceBy = getCombinedItemDisplacement({
@@ -4188,7 +4196,7 @@
4188
4196
  return updated;
4189
4197
  });
4190
4198
 
4191
- function getDraggables(ids, draggables) {
4199
+ function getDraggables$1(ids, draggables) {
4192
4200
  return ids.map(function (id) {
4193
4201
  return draggables[id];
4194
4202
  });
@@ -4216,7 +4224,7 @@
4216
4224
  var scrolledDroppable = destination.frame ? scrollDroppable(destination, add(destination.frame.scroll.current, maxScrollChange)) : destination;
4217
4225
  var last = impact.displaced;
4218
4226
  var withViewportScroll = getDisplacementGroups({
4219
- afterDragging: getDraggables(last.all, draggables),
4227
+ afterDragging: getDraggables$1(last.all, draggables),
4220
4228
  destination: destination,
4221
4229
  displacedBy: impact.displacedBy,
4222
4230
  viewport: scrolledViewport.frame,
@@ -4224,7 +4232,7 @@
4224
4232
  forceShouldAnimate: false
4225
4233
  });
4226
4234
  var withDroppableScroll = getDisplacementGroups({
4227
- afterDragging: getDraggables(last.all, draggables),
4235
+ afterDragging: getDraggables$1(last.all, draggables),
4228
4236
  destination: scrolledDroppable,
4229
4237
  displacedBy: impact.displacedBy,
4230
4238
  viewport: viewport.frame,
@@ -4245,7 +4253,7 @@
4245
4253
  invisible[id] = true;
4246
4254
  });
4247
4255
 
4248
- var newImpact = _extends({}, impact, {
4256
+ var newImpact = _extends$1({}, impact, {
4249
4257
  displaced: {
4250
4258
  all: last.all,
4251
4259
  invisible: invisible,
@@ -4373,7 +4381,7 @@
4373
4381
 
4374
4382
  var getKnownActive = function getKnownActive(droppable) {
4375
4383
  var rect = droppable.subject.active;
4376
- !rect ? invariant(false, 'Cannot get clipped area from droppable') : void 0;
4384
+ !rect ? invariant$1(false, 'Cannot get clipped area from droppable') : void 0;
4377
4385
  return rect;
4378
4386
  };
4379
4387
 
@@ -4448,8 +4456,8 @@
4448
4456
  }
4449
4457
 
4450
4458
  return candidates.sort(function (a, b) {
4451
- var first = closest(pageBorderBoxCenter, getCorners(getKnownActive(a)));
4452
- var second = closest(pageBorderBoxCenter, getCorners(getKnownActive(b)));
4459
+ var first = closest$1(pageBorderBoxCenter, getCorners(getKnownActive(a)));
4460
+ var second = closest$1(pageBorderBoxCenter, getCorners(getKnownActive(b)));
4453
4461
 
4454
4462
  if (first !== second) {
4455
4463
  return first - second;
@@ -4529,8 +4537,8 @@
4529
4537
  };
4530
4538
 
4531
4539
  var withMaxScroll = function withMaxScroll(frame, max) {
4532
- return _extends({}, frame, {
4533
- scroll: _extends({}, frame.scroll, {
4540
+ return _extends$1({}, frame, {
4541
+ scroll: _extends$1({}, frame.scroll, {
4534
4542
  max: max
4535
4543
  })
4536
4544
  });
@@ -4538,8 +4546,8 @@
4538
4546
 
4539
4547
  var addPlaceholder = function addPlaceholder(droppable, draggable, draggables) {
4540
4548
  var frame = droppable.frame;
4541
- !!isHomeOf(draggable, droppable) ? invariant(false, 'Should not add placeholder space to home list') : void 0;
4542
- !!droppable.subject.withPlaceholder ? invariant(false, 'Cannot add placeholder size to a subject when it already has one') : void 0;
4549
+ !!isHomeOf(draggable, droppable) ? invariant$1(false, 'Should not add placeholder space to home list') : void 0;
4550
+ !!droppable.subject.withPlaceholder ? invariant$1(false, 'Cannot add placeholder size to a subject when it already has one') : void 0;
4543
4551
  var placeholderSize = getDisplacedBy(droppable.axis, draggable.displaceBy).point;
4544
4552
  var requiredGrowth = getRequiredGrowthForPlaceholder(droppable, placeholderSize, draggables);
4545
4553
  var added = {
@@ -4556,7 +4564,7 @@
4556
4564
  frame: droppable.frame
4557
4565
  });
4558
4566
 
4559
- return _extends({}, droppable, {
4567
+ return _extends$1({}, droppable, {
4560
4568
  subject: _subject
4561
4569
  });
4562
4570
  }
@@ -4569,14 +4577,14 @@
4569
4577
  axis: droppable.axis,
4570
4578
  frame: newFrame
4571
4579
  });
4572
- return _extends({}, droppable, {
4580
+ return _extends$1({}, droppable, {
4573
4581
  subject: subject,
4574
4582
  frame: newFrame
4575
4583
  });
4576
4584
  };
4577
4585
  var removePlaceholder = function removePlaceholder(droppable) {
4578
4586
  var added = droppable.subject.withPlaceholder;
4579
- !added ? invariant(false, 'Cannot remove placeholder form subject when there was none') : void 0;
4587
+ !added ? invariant$1(false, 'Cannot remove placeholder form subject when there was none') : void 0;
4580
4588
  var frame = droppable.frame;
4581
4589
 
4582
4590
  if (!frame) {
@@ -4587,13 +4595,13 @@
4587
4595
  withPlaceholder: null
4588
4596
  });
4589
4597
 
4590
- return _extends({}, droppable, {
4598
+ return _extends$1({}, droppable, {
4591
4599
  subject: _subject2
4592
4600
  });
4593
4601
  }
4594
4602
 
4595
4603
  var oldMaxScroll = added.oldFrameMaxScroll;
4596
- !oldMaxScroll ? invariant(false, 'Expected droppable with frame to have old max frame scroll when removing placeholder') : void 0;
4604
+ !oldMaxScroll ? invariant$1(false, 'Expected droppable with frame to have old max frame scroll when removing placeholder') : void 0;
4597
4605
  var newFrame = withMaxScroll(frame, oldMaxScroll);
4598
4606
  var subject = getSubject({
4599
4607
  page: droppable.subject.page,
@@ -4601,7 +4609,7 @@
4601
4609
  frame: newFrame,
4602
4610
  withPlaceholder: null
4603
4611
  });
4604
- return _extends({}, droppable, {
4612
+ return _extends$1({}, droppable, {
4605
4613
  subject: subject,
4606
4614
  frame: newFrame
4607
4615
  });
@@ -4757,7 +4765,7 @@
4757
4765
  return at.combine.droppableId;
4758
4766
  });
4759
4767
 
4760
- var getDroppableOver = function getDroppableOver(impact, droppables) {
4768
+ var getDroppableOver$1 = function getDroppableOver(impact, droppables) {
4761
4769
  var id = whatIsDraggedOver(impact);
4762
4770
  return id ? droppables[id] : null;
4763
4771
  };
@@ -4765,7 +4773,7 @@
4765
4773
  var moveInDirection = (function (_ref) {
4766
4774
  var state = _ref.state,
4767
4775
  type = _ref.type;
4768
- var isActuallyOver = getDroppableOver(state.impact, state.dimensions.droppables);
4776
+ var isActuallyOver = getDroppableOver$1(state.impact, state.dimensions.droppables);
4769
4777
  var isMainAxisMovementAllowed = Boolean(isActuallyOver);
4770
4778
  var home = state.dimensions.droppables[state.critical.droppable.id];
4771
4779
  var isOver = isActuallyOver || home;
@@ -4838,7 +4846,7 @@
4838
4846
  return sorted[0] ? sorted[0].id : null;
4839
4847
  }
4840
4848
 
4841
- function getDroppableOver$1(_ref2) {
4849
+ function getDroppableOver(_ref2) {
4842
4850
  var pageBorderBox = _ref2.pageBorderBox,
4843
4851
  draggable = _ref2.draggable,
4844
4852
  droppables = _ref2.droppables;
@@ -5060,14 +5068,14 @@
5060
5068
  viewport = _ref.viewport,
5061
5069
  afterCritical = _ref.afterCritical;
5062
5070
  var pageBorderBox = offsetRectByPosition(draggable.page.borderBox, pageOffset);
5063
- var destinationId = getDroppableOver$1({
5071
+ var destinationId = getDroppableOver({
5064
5072
  pageBorderBox: pageBorderBox,
5065
5073
  draggable: draggable,
5066
5074
  droppables: droppables
5067
5075
  });
5068
5076
 
5069
5077
  if (!destinationId) {
5070
- return noImpact;
5078
+ return noImpact$1;
5071
5079
  }
5072
5080
 
5073
5081
  var destination = droppables[destinationId];
@@ -5094,7 +5102,7 @@
5094
5102
  var patchDroppableMap = (function (droppables, updated) {
5095
5103
  var _extends2;
5096
5104
 
5097
- return _extends({}, droppables, (_extends2 = {}, _extends2[updated.descriptor.id] = updated, _extends2));
5105
+ return _extends$1({}, droppables, (_extends2 = {}, _extends2[updated.descriptor.id] = updated, _extends2));
5098
5106
  });
5099
5107
 
5100
5108
  var clearUnusedPlaceholder = function clearUnusedPlaceholder(_ref) {
@@ -5180,7 +5188,7 @@
5180
5188
  };
5181
5189
 
5182
5190
  if (state.phase === 'COLLECTING') {
5183
- return _extends({
5191
+ return _extends$1({
5184
5192
  phase: 'COLLECTING'
5185
5193
  }, state, {
5186
5194
  dimensions: dimensions,
@@ -5207,7 +5215,7 @@
5207
5215
  droppables: dimensions.droppables
5208
5216
  });
5209
5217
 
5210
- var result = _extends({}, state, {
5218
+ var result = _extends$1({}, state, {
5211
5219
  current: current,
5212
5220
  dimensions: {
5213
5221
  draggables: dimensions.draggables,
@@ -5222,7 +5230,7 @@
5222
5230
  return result;
5223
5231
  });
5224
5232
 
5225
- function getDraggables$1(ids, draggables) {
5233
+ function getDraggables(ids, draggables) {
5226
5234
  return ids.map(function (id) {
5227
5235
  return draggables[id];
5228
5236
  });
@@ -5235,7 +5243,7 @@
5235
5243
  destination = _ref.destination,
5236
5244
  forceShouldAnimate = _ref.forceShouldAnimate;
5237
5245
  var last = impact.displaced;
5238
- var afterDragging = getDraggables$1(last.all, draggables);
5246
+ var afterDragging = getDraggables(last.all, draggables);
5239
5247
  var displaced = getDisplacementGroups({
5240
5248
  afterDragging: afterDragging,
5241
5249
  destination: destination,
@@ -5244,7 +5252,7 @@
5244
5252
  forceShouldAnimate: forceShouldAnimate,
5245
5253
  last: last
5246
5254
  });
5247
- return _extends({}, impact, {
5255
+ return _extends$1({}, impact, {
5248
5256
  displaced: displaced
5249
5257
  });
5250
5258
  });
@@ -5274,7 +5282,7 @@
5274
5282
  var state = _ref.state,
5275
5283
  forcedDimensions = _ref.dimensions,
5276
5284
  forcedViewport = _ref.viewport;
5277
- !(state.movementMode === 'SNAP') ? invariant(false) : void 0;
5285
+ !(state.movementMode === 'SNAP') ? invariant$1(false) : void 0;
5278
5286
  var needsVisibilityCheck = state.impact;
5279
5287
  var viewport = forcedViewport || state.viewport;
5280
5288
  var dimensions = forcedDimensions || state.dimensions;
@@ -5282,7 +5290,7 @@
5282
5290
  droppables = dimensions.droppables;
5283
5291
  var draggable = draggables[state.critical.draggable.id];
5284
5292
  var isOver = whatIsDraggedOver(needsVisibilityCheck);
5285
- !isOver ? invariant(false, 'Must be over a destination in SNAP movement mode') : void 0;
5293
+ !isOver ? invariant$1(false, 'Must be over a destination in SNAP movement mode') : void 0;
5286
5294
  var destination = droppables[isOver];
5287
5295
  var impact = recompute({
5288
5296
  impact: needsVisibilityCheck,
@@ -5322,7 +5330,7 @@
5322
5330
  var displacedBy = getDisplacedBy(home.axis, draggable.displaceBy);
5323
5331
  var insideHome = getDraggablesInsideDroppable(home.descriptor.id, draggables);
5324
5332
  var rawIndex = insideHome.indexOf(draggable);
5325
- !(rawIndex !== -1) ? invariant(false, 'Expected draggable to be inside home list') : void 0;
5333
+ !(rawIndex !== -1) ? invariant$1(false, 'Expected draggable to be inside home list') : void 0;
5326
5334
  var afterDragging = insideHome.slice(rawIndex + 1);
5327
5335
  var effected = afterDragging.reduce(function (previous, item) {
5328
5336
  previous[item.descriptor.id] = true;
@@ -5362,6 +5370,64 @@
5362
5370
  };
5363
5371
  });
5364
5372
 
5373
+ var records = {};
5374
+ var isEnabled = false;
5375
+
5376
+ var isTimingsEnabled = function isTimingsEnabled() {
5377
+ return isEnabled;
5378
+ };
5379
+ var start = function start(key) {
5380
+ {
5381
+ if (!isTimingsEnabled()) {
5382
+ return;
5383
+ }
5384
+
5385
+ var now = performance.now();
5386
+ records[key] = now;
5387
+ }
5388
+ };
5389
+ var finish = function finish(key) {
5390
+ {
5391
+ if (!isTimingsEnabled()) {
5392
+ return;
5393
+ }
5394
+
5395
+ var now = performance.now();
5396
+ var previous = records[key];
5397
+
5398
+ if (!previous) {
5399
+ console.warn('cannot finish timing as no previous time found', key);
5400
+ return;
5401
+ }
5402
+
5403
+ var result = now - previous;
5404
+ var rounded = result.toFixed(2);
5405
+
5406
+ var style = function () {
5407
+ if (result < 12) {
5408
+ return {
5409
+ textColor: 'green',
5410
+ symbol: '✅'
5411
+ };
5412
+ }
5413
+
5414
+ if (result < 40) {
5415
+ return {
5416
+ textColor: 'orange',
5417
+ symbol: '⚠️'
5418
+ };
5419
+ }
5420
+
5421
+ return {
5422
+ textColor: 'red',
5423
+ symbol: '❌'
5424
+ };
5425
+ }();
5426
+
5427
+ console.log(style.symbol + " %cTiming %c" + rounded + " %cms %c" + key, 'color: blue; font-weight: bold;', "color: " + style.textColor + "; font-size: 1.1em;", 'color: grey;', 'color: purple; font-weight: bold;');
5428
+ }
5429
+ };
5430
+
5365
5431
  var offsetDraggable = (function (_ref) {
5366
5432
  var draggable = _ref.draggable,
5367
5433
  offset$1 = _ref.offset,
@@ -5369,8 +5435,8 @@
5369
5435
  var client = offset(draggable.client, offset$1);
5370
5436
  var page = withScroll(client, initialWindowScroll);
5371
5437
 
5372
- var moved = _extends({}, draggable, {
5373
- placeholder: _extends({}, draggable.placeholder, {
5438
+ var moved = _extends$1({}, draggable, {
5439
+ placeholder: _extends$1({}, draggable.placeholder, {
5374
5440
  client: client
5375
5441
  }),
5376
5442
  client: client,
@@ -5382,7 +5448,7 @@
5382
5448
 
5383
5449
  var getFrame = (function (droppable) {
5384
5450
  var frame = droppable.frame;
5385
- !frame ? invariant(false, 'Expected Droppable to have a frame') : void 0;
5451
+ !frame ? invariant$1(false, 'Expected Droppable to have a frame') : void 0;
5386
5452
  return frame;
5387
5453
  });
5388
5454
 
@@ -5406,16 +5472,18 @@
5406
5472
  });
5407
5473
  });
5408
5474
 
5475
+ var timingsKey = 'Processing dynamic changes';
5409
5476
  var publishWhileDraggingInVirtual = (function (_ref) {
5410
5477
  var state = _ref.state,
5411
5478
  published = _ref.published;
5479
+ start(timingsKey);
5412
5480
  var withScrollChange = published.modified.map(function (update) {
5413
5481
  var existing = state.dimensions.droppables[update.droppableId];
5414
5482
  var scrolled = scrollDroppable(existing, update.scroll);
5415
5483
  return scrolled;
5416
5484
  });
5417
5485
 
5418
- var droppables = _extends({}, state.dimensions.droppables, {}, toDroppableMap(withScrollChange));
5486
+ var droppables = _extends$1({}, state.dimensions.droppables, {}, toDroppableMap(withScrollChange));
5419
5487
 
5420
5488
  var updatedAdditions = toDraggableMap(adjustAdditionsForScrollChanges({
5421
5489
  additions: published.additions,
@@ -5423,7 +5491,7 @@
5423
5491
  viewport: state.viewport
5424
5492
  }));
5425
5493
 
5426
- var draggables = _extends({}, state.dimensions.draggables, {}, updatedAdditions);
5494
+ var draggables = _extends$1({}, state.dimensions.draggables, {}, updatedAdditions);
5427
5495
 
5428
5496
  published.removals.forEach(function (id) {
5429
5497
  delete draggables[id];
@@ -5456,8 +5524,9 @@
5456
5524
  viewport: state.viewport,
5457
5525
  afterCritical: afterCritical
5458
5526
  });
5527
+ finish(timingsKey);
5459
5528
 
5460
- var draggingState = _extends({
5529
+ var draggingState = _extends$1({
5461
5530
  phase: 'DRAGGING'
5462
5531
  }, state, {
5463
5532
  phase: 'DRAGGING',
@@ -5472,7 +5541,7 @@
5472
5541
  return draggingState;
5473
5542
  }
5474
5543
 
5475
- var dropPending = _extends({
5544
+ var dropPending = _extends$1({
5476
5545
  phase: 'DROP_PENDING'
5477
5546
  }, draggingState, {
5478
5547
  phase: 'DROP_PENDING',
@@ -5505,7 +5574,7 @@
5505
5574
 
5506
5575
  function removeScrollJumpRequest(state) {
5507
5576
  if (state.isDragging && state.movementMode === 'SNAP') {
5508
- return _extends({
5577
+ return _extends$1({
5509
5578
  phase: 'DRAGGING'
5510
5579
  }, state, {
5511
5580
  scrollJumpRequest: null
@@ -5515,24 +5584,24 @@
5515
5584
  return state;
5516
5585
  }
5517
5586
 
5518
- var idle = {
5587
+ var idle$2 = {
5519
5588
  phase: 'IDLE',
5520
5589
  completed: null,
5521
5590
  shouldFlush: false
5522
5591
  };
5523
5592
  var reducer = (function (state, action) {
5524
5593
  if (state === void 0) {
5525
- state = idle;
5594
+ state = idle$2;
5526
5595
  }
5527
5596
 
5528
5597
  if (action.type === 'FLUSH') {
5529
- return _extends({}, idle, {
5598
+ return _extends$1({}, idle$2, {
5530
5599
  shouldFlush: true
5531
5600
  });
5532
5601
  }
5533
5602
 
5534
5603
  if (action.type === 'INITIAL_PUBLISH') {
5535
- !(state.phase === 'IDLE') ? invariant(false, 'INITIAL_PUBLISH must come after a IDLE phase') : void 0;
5604
+ !(state.phase === 'IDLE') ? invariant$1(false, 'INITIAL_PUBLISH must come after a IDLE phase') : void 0;
5536
5605
  var _action$payload = action.payload,
5537
5606
  critical = _action$payload.critical,
5538
5607
  clientSelection = _action$payload.clientSelection,
@@ -5591,9 +5660,9 @@
5591
5660
  return state;
5592
5661
  }
5593
5662
 
5594
- !(state.phase === 'DRAGGING') ? invariant(false, "Collection cannot start from phase " + state.phase) : void 0;
5663
+ !(state.phase === 'DRAGGING') ? invariant$1(false, "Collection cannot start from phase " + state.phase) : void 0;
5595
5664
 
5596
- var _result = _extends({
5665
+ var _result = _extends$1({
5597
5666
  phase: 'COLLECTING'
5598
5667
  }, state, {
5599
5668
  phase: 'COLLECTING'
@@ -5603,7 +5672,7 @@
5603
5672
  }
5604
5673
 
5605
5674
  if (action.type === 'PUBLISH_WHILE_DRAGGING') {
5606
- !(state.phase === 'COLLECTING' || state.phase === 'DROP_PENDING') ? invariant(false, "Unexpected " + action.type + " received in phase " + state.phase) : void 0;
5675
+ !(state.phase === 'COLLECTING' || state.phase === 'DROP_PENDING') ? invariant$1(false, "Unexpected " + action.type + " received in phase " + state.phase) : void 0;
5607
5676
  return publishWhileDraggingInVirtual({
5608
5677
  state: state,
5609
5678
  published: action.payload
@@ -5615,10 +5684,10 @@
5615
5684
  return state;
5616
5685
  }
5617
5686
 
5618
- !isMovementAllowed(state) ? invariant(false, action.type + " not permitted in phase " + state.phase) : void 0;
5687
+ !isMovementAllowed(state) ? invariant$1(false, action.type + " not permitted in phase " + state.phase) : void 0;
5619
5688
  var _clientSelection = action.payload.client;
5620
5689
 
5621
- if (isEqual(_clientSelection, state.current.client.selection)) {
5690
+ if (isEqual$1(_clientSelection, state.current.client.selection)) {
5622
5691
  return state;
5623
5692
  }
5624
5693
 
@@ -5638,7 +5707,7 @@
5638
5707
  return removeScrollJumpRequest(state);
5639
5708
  }
5640
5709
 
5641
- !isMovementAllowed(state) ? invariant(false, action.type + " not permitted in phase " + state.phase) : void 0;
5710
+ !isMovementAllowed(state) ? invariant$1(false, action.type + " not permitted in phase " + state.phase) : void 0;
5642
5711
  var _action$payload2 = action.payload,
5643
5712
  id = _action$payload2.id,
5644
5713
  newScroll = _action$payload2.newScroll;
@@ -5657,15 +5726,15 @@
5657
5726
  return state;
5658
5727
  }
5659
5728
 
5660
- !isMovementAllowed(state) ? invariant(false, "Attempting to move in an unsupported phase " + state.phase) : void 0;
5729
+ !isMovementAllowed(state) ? invariant$1(false, "Attempting to move in an unsupported phase " + state.phase) : void 0;
5661
5730
  var _action$payload3 = action.payload,
5662
5731
  _id = _action$payload3.id,
5663
5732
  isEnabled = _action$payload3.isEnabled;
5664
5733
  var _target = state.dimensions.droppables[_id];
5665
- !_target ? invariant(false, "Cannot find Droppable[id: " + _id + "] to toggle its enabled state") : void 0;
5666
- !(_target.isEnabled !== isEnabled) ? invariant(false, "Trying to set droppable isEnabled to " + String(isEnabled) + "\n but it is already " + String(_target.isEnabled)) : void 0;
5734
+ !_target ? invariant$1(false, "Cannot find Droppable[id: " + _id + "] to toggle its enabled state") : void 0;
5735
+ !(_target.isEnabled !== isEnabled) ? invariant$1(false, "Trying to set droppable isEnabled to " + String(isEnabled) + "\n but it is already " + String(_target.isEnabled)) : void 0;
5667
5736
 
5668
- var updated = _extends({}, _target, {
5737
+ var updated = _extends$1({}, _target, {
5669
5738
  isEnabled: isEnabled
5670
5739
  });
5671
5740
 
@@ -5677,15 +5746,15 @@
5677
5746
  return state;
5678
5747
  }
5679
5748
 
5680
- !isMovementAllowed(state) ? invariant(false, "Attempting to move in an unsupported phase " + state.phase) : void 0;
5749
+ !isMovementAllowed(state) ? invariant$1(false, "Attempting to move in an unsupported phase " + state.phase) : void 0;
5681
5750
  var _action$payload4 = action.payload,
5682
5751
  _id2 = _action$payload4.id,
5683
5752
  isCombineEnabled = _action$payload4.isCombineEnabled;
5684
5753
  var _target2 = state.dimensions.droppables[_id2];
5685
- !_target2 ? invariant(false, "Cannot find Droppable[id: " + _id2 + "] to toggle its isCombineEnabled state") : void 0;
5686
- !(_target2.isCombineEnabled !== isCombineEnabled) ? invariant(false, "Trying to set droppable isCombineEnabled to " + String(isCombineEnabled) + "\n but it is already " + String(_target2.isCombineEnabled)) : void 0;
5754
+ !_target2 ? invariant$1(false, "Cannot find Droppable[id: " + _id2 + "] to toggle its isCombineEnabled state") : void 0;
5755
+ !(_target2.isCombineEnabled !== isCombineEnabled) ? invariant$1(false, "Trying to set droppable isCombineEnabled to " + String(isCombineEnabled) + "\n but it is already " + String(_target2.isCombineEnabled)) : void 0;
5687
5756
 
5688
- var _updated = _extends({}, _target2, {
5757
+ var _updated = _extends$1({}, _target2, {
5689
5758
  isCombineEnabled: isCombineEnabled
5690
5759
  });
5691
5760
 
@@ -5697,11 +5766,11 @@
5697
5766
  return state;
5698
5767
  }
5699
5768
 
5700
- !isMovementAllowed(state) ? invariant(false, "Cannot move by window in phase " + state.phase) : void 0;
5701
- !state.isWindowScrollAllowed ? invariant(false, 'Window scrolling is currently not supported for fixed lists') : void 0;
5769
+ !isMovementAllowed(state) ? invariant$1(false, "Cannot move by window in phase " + state.phase) : void 0;
5770
+ !state.isWindowScrollAllowed ? invariant$1(false, 'Window scrolling is currently not supported for fixed lists') : void 0;
5702
5771
  var _newScroll = action.payload.newScroll;
5703
5772
 
5704
- if (isEqual(state.viewport.scroll.current, _newScroll)) {
5773
+ if (isEqual$1(state.viewport.scroll.current, _newScroll)) {
5705
5774
  return removeScrollJumpRequest(state);
5706
5775
  }
5707
5776
 
@@ -5727,17 +5796,17 @@
5727
5796
 
5728
5797
  var maxScroll = action.payload.maxScroll;
5729
5798
 
5730
- if (isEqual(maxScroll, state.viewport.scroll.max)) {
5799
+ if (isEqual$1(maxScroll, state.viewport.scroll.max)) {
5731
5800
  return state;
5732
5801
  }
5733
5802
 
5734
- var withMaxScroll = _extends({}, state.viewport, {
5735
- scroll: _extends({}, state.viewport.scroll, {
5803
+ var withMaxScroll = _extends$1({}, state.viewport, {
5804
+ scroll: _extends$1({}, state.viewport.scroll, {
5736
5805
  max: maxScroll
5737
5806
  })
5738
5807
  });
5739
5808
 
5740
- return _extends({
5809
+ return _extends$1({
5741
5810
  phase: 'DRAGGING'
5742
5811
  }, state, {
5743
5812
  viewport: withMaxScroll
@@ -5749,7 +5818,7 @@
5749
5818
  return state;
5750
5819
  }
5751
5820
 
5752
- !(state.phase === 'DRAGGING') ? invariant(false, action.type + " received while not in DRAGGING phase") : void 0;
5821
+ !(state.phase === 'DRAGGING') ? invariant$1(false, action.type + " received while not in DRAGGING phase") : void 0;
5753
5822
 
5754
5823
  var _result2 = moveInDirection({
5755
5824
  state: state,
@@ -5770,9 +5839,9 @@
5770
5839
 
5771
5840
  if (action.type === 'DROP_PENDING') {
5772
5841
  var reason = action.payload.reason;
5773
- !(state.phase === 'COLLECTING') ? invariant(false, 'Can only move into the DROP_PENDING phase from the COLLECTING phase') : void 0;
5842
+ !(state.phase === 'COLLECTING') ? invariant$1(false, 'Can only move into the DROP_PENDING phase from the COLLECTING phase') : void 0;
5774
5843
 
5775
- var newState = _extends({
5844
+ var newState = _extends$1({
5776
5845
  phase: 'DROP_PENDING'
5777
5846
  }, state, {
5778
5847
  phase: 'DROP_PENDING',
@@ -5788,7 +5857,7 @@
5788
5857
  completed = _action$payload5.completed,
5789
5858
  dropDuration = _action$payload5.dropDuration,
5790
5859
  newHomeClientOffset = _action$payload5.newHomeClientOffset;
5791
- !(state.phase === 'DRAGGING' || state.phase === 'DROP_PENDING') ? invariant(false, "Cannot animate drop from phase " + state.phase) : void 0;
5860
+ !(state.phase === 'DRAGGING' || state.phase === 'DROP_PENDING') ? invariant$1(false, "Cannot animate drop from phase " + state.phase) : void 0;
5792
5861
  var _result3 = {
5793
5862
  phase: 'DROP_ANIMATING',
5794
5863
  completed: completed,
@@ -5817,7 +5886,7 @@
5817
5886
  payload: args
5818
5887
  };
5819
5888
  };
5820
- var lift = function lift(args) {
5889
+ var lift$1 = function lift(args) {
5821
5890
  return {
5822
5891
  type: 'LIFT',
5823
5892
  payload: args
@@ -5919,7 +5988,7 @@
5919
5988
  payload: args
5920
5989
  };
5921
5990
  };
5922
- var drop = function drop(args) {
5991
+ var drop$1 = function drop(args) {
5923
5992
  return {
5924
5993
  type: 'DROP',
5925
5994
  payload: args
@@ -5965,7 +6034,7 @@
5965
6034
  var hasError = Boolean(errors[index]);
5966
6035
  return hasError ? "[\uD83D\uDD25" + index + "]" : "" + index;
5967
6036
  }).join(', ');
5968
- warning("\n Detected non-consecutive <Draggable /> indexes.\n\n (This can cause unexpected bugs)\n\n " + formatted + "\n ") ;
6037
+ warning$2("\n Detected non-consecutive <Draggable /> indexes.\n\n (This can cause unexpected bugs)\n\n " + formatted + "\n ") ;
5969
6038
  }
5970
6039
 
5971
6040
  function validateDimensions(critical, dimensions) {
@@ -5975,7 +6044,7 @@
5975
6044
  }
5976
6045
  }
5977
6046
 
5978
- var lift$1 = (function (marshal) {
6047
+ var lift = (function (marshal) {
5979
6048
  return function (_ref) {
5980
6049
  var getState = _ref.getState,
5981
6050
  dispatch = _ref.dispatch;
@@ -5998,7 +6067,7 @@
5998
6067
  }));
5999
6068
  }
6000
6069
 
6001
- !(getState().phase === 'IDLE') ? invariant(false, 'Unexpected phase to start a drag') : void 0;
6070
+ !(getState().phase === 'IDLE') ? invariant$1(false, 'Unexpected phase to start a drag') : void 0;
6002
6071
  dispatch(flush());
6003
6072
  dispatch(beforeInitialCapture({
6004
6073
  draggableId: id,
@@ -6083,7 +6152,7 @@
6083
6152
  };
6084
6153
 
6085
6154
  var moveTo = function moveTo(offset) {
6086
- return isEqual(offset, origin) ? null : "translate(" + offset.x + "px, " + offset.y + "px)";
6155
+ return isEqual$1(offset, origin) ? null : "translate(" + offset.x + "px, " + offset.y + "px)";
6087
6156
  };
6088
6157
 
6089
6158
  var transforms = {
@@ -6180,7 +6249,7 @@
6180
6249
  };
6181
6250
  }
6182
6251
 
6183
- var withoutMovement = _extends({}, lastImpact, {
6252
+ var withoutMovement = _extends$1({}, lastImpact, {
6184
6253
  displaced: emptyGroups
6185
6254
  });
6186
6255
 
@@ -6190,7 +6259,7 @@
6190
6259
  };
6191
6260
  });
6192
6261
 
6193
- var drop$1 = (function (_ref) {
6262
+ var drop = (function (_ref) {
6194
6263
  var getState = _ref.getState,
6195
6264
  dispatch = _ref.dispatch;
6196
6265
  return function (next) {
@@ -6215,8 +6284,8 @@
6215
6284
  }
6216
6285
 
6217
6286
  var isWaitingForDrop = state.phase === 'DROP_PENDING' && state.isWaiting;
6218
- !!isWaitingForDrop ? invariant(false, 'A DROP action occurred while DROP_PENDING and still waiting') : void 0;
6219
- !(state.phase === 'DRAGGING' || state.phase === 'DROP_PENDING') ? invariant(false, "Cannot drop in phase: " + state.phase) : void 0;
6287
+ !!isWaitingForDrop ? invariant$1(false, 'A DROP action occurred while DROP_PENDING and still waiting') : void 0;
6288
+ !(state.phase === 'DRAGGING' || state.phase === 'DROP_PENDING') ? invariant$1(false, "Cannot drop in phase: " + state.phase) : void 0;
6220
6289
  var critical = state.critical;
6221
6290
  var dimensions = state.dimensions;
6222
6291
  var draggable = dimensions.draggables[state.critical.draggable.id];
@@ -6261,7 +6330,7 @@
6261
6330
  result: result,
6262
6331
  impact: impact
6263
6332
  };
6264
- var isAnimationRequired = !isEqual(state.current.client.offset, newHomeClientOffset) || Boolean(result.combine);
6333
+ var isAnimationRequired = !isEqual$1(state.current.client.offset, newHomeClientOffset) || Boolean(result.combine);
6265
6334
 
6266
6335
  if (!isAnimationRequired) {
6267
6336
  dispatch(completeDrop({
@@ -6318,7 +6387,9 @@
6318
6387
  return wrapperFn;
6319
6388
  };
6320
6389
 
6321
- var getWindowScroll$1 = (function () {
6390
+ var rafSchedule = rafSchd;
6391
+
6392
+ var getWindowScroll = (function () {
6322
6393
  return {
6323
6394
  x: window.pageXOffset,
6324
6395
  y: window.pageYOffset
@@ -6346,27 +6417,27 @@
6346
6417
  var onWindowScroll = _ref.onWindowScroll;
6347
6418
 
6348
6419
  function updateScroll() {
6349
- onWindowScroll(getWindowScroll$1());
6420
+ onWindowScroll(getWindowScroll());
6350
6421
  }
6351
6422
 
6352
- var scheduled = rafSchd(updateScroll);
6423
+ var scheduled = rafSchedule(updateScroll);
6353
6424
  var binding = getWindowScrollBinding(scheduled);
6354
- var unbind = noop;
6425
+ var unbind = noop$2;
6355
6426
 
6356
6427
  function isActive() {
6357
- return unbind !== noop;
6428
+ return unbind !== noop$2;
6358
6429
  }
6359
6430
 
6360
6431
  function start() {
6361
- !!isActive() ? invariant(false, 'Cannot start scroll listener when already active') : void 0;
6432
+ !!isActive() ? invariant$1(false, 'Cannot start scroll listener when already active') : void 0;
6362
6433
  unbind = bindEvents(window, [binding]);
6363
6434
  }
6364
6435
 
6365
6436
  function stop() {
6366
- !isActive() ? invariant(false, 'Cannot stop scroll listener when not active') : void 0;
6437
+ !isActive() ? invariant$1(false, 'Cannot stop scroll listener when not active') : void 0;
6367
6438
  scheduled.cancel();
6368
6439
  unbind();
6369
- unbind = noop;
6440
+ unbind = noop$2;
6370
6441
  }
6371
6442
 
6372
6443
  return {
@@ -6412,12 +6483,12 @@
6412
6483
 
6413
6484
  var result = function result(message) {
6414
6485
  if (wasCalled) {
6415
- warning('Announcement already made. Not making a second announcement') ;
6486
+ warning$2('Announcement already made. Not making a second announcement') ;
6416
6487
  return;
6417
6488
  }
6418
6489
 
6419
6490
  if (isExpired) {
6420
- warning("\n Announcements cannot be made asynchronously.\n Default message has already been announced.\n ") ;
6491
+ warning$2("\n Announcements cannot be made asynchronously.\n Default message has already been announced.\n ") ;
6421
6492
  return;
6422
6493
  }
6423
6494
 
@@ -6440,7 +6511,7 @@
6440
6511
  var index = findIndex(entries, function (item) {
6441
6512
  return item.timerId === timerId;
6442
6513
  });
6443
- !(index !== -1) ? invariant(false, 'Could not find timer') : void 0;
6514
+ !(index !== -1) ? invariant$1(false, 'Could not find timer') : void 0;
6444
6515
 
6445
6516
  var _entries$splice = entries.splice(index, 1),
6446
6517
  entry = _entries$splice[0];
@@ -6511,7 +6582,9 @@
6511
6582
  };
6512
6583
 
6513
6584
  var withTimings = function withTimings(key, fn) {
6585
+ start(key);
6514
6586
  fn();
6587
+ finish(key);
6515
6588
  };
6516
6589
 
6517
6590
  var getDragStart = function getDragStart(critical, mode) {
@@ -6548,7 +6621,7 @@
6548
6621
  var dragging = null;
6549
6622
 
6550
6623
  var beforeCapture = function beforeCapture(draggableId, mode) {
6551
- !!dragging ? invariant(false, 'Cannot fire onBeforeCapture as a drag start has already been published') : void 0;
6624
+ !!dragging ? invariant$1(false, 'Cannot fire onBeforeCapture as a drag start has already been published') : void 0;
6552
6625
  withTimings('onBeforeCapture', function () {
6553
6626
  var fn = getResponders().onBeforeCapture;
6554
6627
 
@@ -6563,7 +6636,7 @@
6563
6636
  };
6564
6637
 
6565
6638
  var beforeStart = function beforeStart(critical, mode) {
6566
- !!dragging ? invariant(false, 'Cannot fire onBeforeDragStart as a drag start has already been published') : void 0;
6639
+ !!dragging ? invariant$1(false, 'Cannot fire onBeforeDragStart as a drag start has already been published') : void 0;
6567
6640
  withTimings('onBeforeDragStart', function () {
6568
6641
  var fn = getResponders().onBeforeDragStart;
6569
6642
 
@@ -6574,7 +6647,7 @@
6574
6647
  };
6575
6648
 
6576
6649
  var start = function start(critical, mode) {
6577
- !!dragging ? invariant(false, 'Cannot fire onBeforeDragStart as a drag start has already been published') : void 0;
6650
+ !!dragging ? invariant$1(false, 'Cannot fire onBeforeDragStart as a drag start has already been published') : void 0;
6578
6651
  var data = getDragStart(critical, mode);
6579
6652
  dragging = {
6580
6653
  mode: mode,
@@ -6584,7 +6657,7 @@
6584
6657
  };
6585
6658
  asyncMarshal.add(function () {
6586
6659
  withTimings('onDragStart', function () {
6587
- return execute(getResponders().onDragStart, data, announce, preset.onDragStart);
6660
+ return execute(getResponders().onDragStart, data, announce, preset$1.onDragStart);
6588
6661
  });
6589
6662
  });
6590
6663
  };
@@ -6592,7 +6665,7 @@
6592
6665
  var update = function update(critical, impact) {
6593
6666
  var location = tryGetDestination(impact);
6594
6667
  var combine = tryGetCombine(impact);
6595
- !dragging ? invariant(false, 'Cannot fire onDragMove when onDragStart has not been called') : void 0;
6668
+ !dragging ? invariant$1(false, 'Cannot fire onDragMove when onDragStart has not been called') : void 0;
6596
6669
  var hasCriticalChanged = !isCriticalEqual(critical, dragging.lastCritical);
6597
6670
 
6598
6671
  if (hasCriticalChanged) {
@@ -6615,28 +6688,28 @@
6615
6688
  return;
6616
6689
  }
6617
6690
 
6618
- var data = _extends({}, getDragStart(critical, dragging.mode), {
6691
+ var data = _extends$1({}, getDragStart(critical, dragging.mode), {
6619
6692
  combine: combine,
6620
6693
  destination: location
6621
6694
  });
6622
6695
 
6623
6696
  asyncMarshal.add(function () {
6624
6697
  withTimings('onDragUpdate', function () {
6625
- return execute(getResponders().onDragUpdate, data, announce, preset.onDragUpdate);
6698
+ return execute(getResponders().onDragUpdate, data, announce, preset$1.onDragUpdate);
6626
6699
  });
6627
6700
  });
6628
6701
  };
6629
6702
 
6630
6703
  var flush = function flush() {
6631
- !dragging ? invariant(false, 'Can only flush responders while dragging') : void 0;
6704
+ !dragging ? invariant$1(false, 'Can only flush responders while dragging') : void 0;
6632
6705
  asyncMarshal.flush();
6633
6706
  };
6634
6707
 
6635
6708
  var drop = function drop(result) {
6636
- !dragging ? invariant(false, 'Cannot fire onDragEnd when there is no matching onDragStart') : void 0;
6709
+ !dragging ? invariant$1(false, 'Cannot fire onDragEnd when there is no matching onDragStart') : void 0;
6637
6710
  dragging = null;
6638
6711
  withTimings('onDragEnd', function () {
6639
- return execute(getResponders().onDragEnd, result, announce, preset.onDragEnd);
6712
+ return execute(getResponders().onDragEnd, result, announce, preset$1.onDragEnd);
6640
6713
  });
6641
6714
  };
6642
6715
 
@@ -6645,7 +6718,7 @@
6645
6718
  return;
6646
6719
  }
6647
6720
 
6648
- var result = _extends({}, getDragStart(dragging.lastCritical, dragging.mode), {
6721
+ var result = _extends$1({}, getDragStart(dragging.lastCritical, dragging.mode), {
6649
6722
  combine: null,
6650
6723
  destination: null,
6651
6724
  reason: 'CANCEL'
@@ -6717,7 +6790,7 @@
6717
6790
  }
6718
6791
 
6719
6792
  var state = store.getState();
6720
- !(state.phase === 'DROP_ANIMATING') ? invariant(false, 'Cannot finish a drop animating when no drop is occurring') : void 0;
6793
+ !(state.phase === 'DROP_ANIMATING') ? invariant$1(false, 'Cannot finish a drop animating when no drop is occurring') : void 0;
6721
6794
  store.dispatch(completeDrop({
6722
6795
  completed: state.completed
6723
6796
  }));
@@ -6847,7 +6920,7 @@
6847
6920
  if (action.type === 'INITIAL_PUBLISH') {
6848
6921
  next(action);
6849
6922
  var state = store.getState();
6850
- !(state.phase === 'DRAGGING') ? invariant(false, 'Expected phase to be DRAGGING after INITIAL_PUBLISH') : void 0;
6923
+ !(state.phase === 'DRAGGING') ? invariant$1(false, 'Expected phase to be DRAGGING after INITIAL_PUBLISH') : void 0;
6851
6924
  autoScroller.start(state);
6852
6925
  return;
6853
6926
  }
@@ -6878,24 +6951,24 @@
6878
6951
  return;
6879
6952
  }
6880
6953
 
6881
- store.dispatch(drop({
6954
+ store.dispatch(drop$1({
6882
6955
  reason: postActionState.reason
6883
6956
  }));
6884
6957
  };
6885
6958
  };
6886
6959
  });
6887
6960
 
6888
- var composeEnhancers = typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({
6961
+ var composeEnhancers = typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({
6889
6962
  name: 'react-beautiful-dnd'
6890
6963
  }) : compose;
6891
- var createStore$1 = (function (_ref) {
6964
+ var createStore = (function (_ref) {
6892
6965
  var dimensionMarshal = _ref.dimensionMarshal,
6893
6966
  focusMarshal = _ref.focusMarshal,
6894
6967
  styleMarshal = _ref.styleMarshal,
6895
6968
  getResponders = _ref.getResponders,
6896
6969
  announce = _ref.announce,
6897
6970
  autoScroller = _ref.autoScroller;
6898
- return createStore(reducer, composeEnhancers(applyMiddleware(style(styleMarshal), dimensionMarshalStopper(dimensionMarshal), lift$1(dimensionMarshal), drop$1, dropAnimationFinish, dropAnimationFlushOnScroll, pendingDrop, autoScroll(autoScroller), scrollListener, focus(focusMarshal), responders(getResponders, announce))));
6971
+ return createStore$1(reducer, composeEnhancers(applyMiddleware(style(styleMarshal), dimensionMarshalStopper(dimensionMarshal), lift(dimensionMarshal), drop, dropAnimationFinish, dropAnimationFlushOnScroll, pendingDrop, autoScroll(autoScroller), scrollListener, focus(focusMarshal), responders(getResponders, announce))));
6899
6972
  });
6900
6973
 
6901
6974
  var clean$1 = function clean() {
@@ -6905,6 +6978,8 @@
6905
6978
  modified: {}
6906
6979
  };
6907
6980
  };
6981
+
6982
+ var timingKey = 'Publish collection from DOM';
6908
6983
  function createPublisher(_ref) {
6909
6984
  var registry = _ref.registry,
6910
6985
  callbacks = _ref.callbacks;
@@ -6919,6 +6994,7 @@
6919
6994
  callbacks.collectionStarting();
6920
6995
  frameId = requestAnimationFrame(function () {
6921
6996
  frameId = null;
6997
+ start(timingKey);
6922
6998
  var _staging = staging,
6923
6999
  additions = _staging.additions,
6924
7000
  removals = _staging.removals,
@@ -6942,6 +7018,7 @@
6942
7018
  modified: updated
6943
7019
  };
6944
7020
  staging = clean$1();
7021
+ finish(timingKey);
6945
7022
  callbacks.publish(result);
6946
7023
  });
6947
7024
  };
@@ -7008,7 +7085,7 @@
7008
7085
 
7009
7086
  var getDocumentElement = (function () {
7010
7087
  var doc = document.documentElement;
7011
- !doc ? invariant(false, 'Cannot find document.documentElement') : void 0;
7088
+ !doc ? invariant$1(false, 'Cannot find document.documentElement') : void 0;
7012
7089
  return doc;
7013
7090
  });
7014
7091
 
@@ -7024,7 +7101,7 @@
7024
7101
  });
7025
7102
 
7026
7103
  var getViewport = (function () {
7027
- var scroll = getWindowScroll$1();
7104
+ var scroll = getWindowScroll();
7028
7105
  var maxScroll = getMaxWindowScroll();
7029
7106
  var top = scroll.y;
7030
7107
  var left = scroll.x;
@@ -7058,6 +7135,8 @@
7058
7135
  var critical = _ref.critical,
7059
7136
  scrollOptions = _ref.scrollOptions,
7060
7137
  registry = _ref.registry;
7138
+ var timingKey = 'Initial collection from DOM';
7139
+ start(timingKey);
7061
7140
  var viewport = getViewport();
7062
7141
  var windowScroll = viewport.scroll.current;
7063
7142
  var home = critical.droppable;
@@ -7071,6 +7150,7 @@
7071
7150
  draggables: toDraggableMap(draggables),
7072
7151
  droppables: toDroppableMap(droppables)
7073
7152
  };
7153
+ finish(timingKey);
7074
7154
  var result = {
7075
7155
  dimensions: dimensions,
7076
7156
  critical: critical,
@@ -7091,7 +7171,7 @@
7091
7171
  var home = registry.droppable.getById(entry.descriptor.droppableId);
7092
7172
 
7093
7173
  if (home.descriptor.mode !== 'virtual') {
7094
- warning("\n You are attempting to add or remove a Draggable [id: " + entry.descriptor.id + "]\n while a drag is occurring. This is only supported for virtual lists.\n\n See https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/patterns/virtual-lists.md\n ") ;
7174
+ warning$2("\n You are attempting to add or remove a Draggable [id: " + entry.descriptor.id + "]\n while a drag is occurring. This is only supported for virtual lists.\n\n See https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/patterns/virtual-lists.md\n ") ;
7095
7175
  return false;
7096
7176
  }
7097
7177
 
@@ -7109,7 +7189,7 @@
7109
7189
  });
7110
7190
 
7111
7191
  var updateDroppableIsEnabled = function updateDroppableIsEnabled(id, isEnabled) {
7112
- !registry.droppable.exists(id) ? invariant(false, "Cannot update is enabled flag of Droppable " + id + " as it is not registered") : void 0;
7192
+ !registry.droppable.exists(id) ? invariant$1(false, "Cannot update is enabled flag of Droppable " + id + " as it is not registered") : void 0;
7113
7193
 
7114
7194
  if (!collection) {
7115
7195
  return;
@@ -7126,7 +7206,7 @@
7126
7206
  return;
7127
7207
  }
7128
7208
 
7129
- !registry.droppable.exists(id) ? invariant(false, "Cannot update isCombineEnabled flag of Droppable " + id + " as it is not registered") : void 0;
7209
+ !registry.droppable.exists(id) ? invariant$1(false, "Cannot update isCombineEnabled flag of Droppable " + id + " as it is not registered") : void 0;
7130
7210
  callbacks.updateDroppableIsCombineEnabled({
7131
7211
  id: id,
7132
7212
  isCombineEnabled: isCombineEnabled
@@ -7138,7 +7218,7 @@
7138
7218
  return;
7139
7219
  }
7140
7220
 
7141
- !registry.droppable.exists(id) ? invariant(false, "Cannot update the scroll on Droppable " + id + " as it is not registered") : void 0;
7221
+ !registry.droppable.exists(id) ? invariant$1(false, "Cannot update the scroll on Droppable " + id + " as it is not registered") : void 0;
7142
7222
  callbacks.updateDroppableScroll({
7143
7223
  id: id,
7144
7224
  newScroll: newScroll
@@ -7168,7 +7248,7 @@
7168
7248
  };
7169
7249
 
7170
7250
  var subscriber = function subscriber(event) {
7171
- !collection ? invariant(false, 'Should only be subscribed when a collection is occurring') : void 0;
7251
+ !collection ? invariant$1(false, 'Should only be subscribed when a collection is occurring') : void 0;
7172
7252
  var dragging = collection.critical.draggable;
7173
7253
 
7174
7254
  if (event.type === 'ADDITION') {
@@ -7185,7 +7265,7 @@
7185
7265
  };
7186
7266
 
7187
7267
  var startPublishing = function startPublishing(request) {
7188
- !!collection ? invariant(false, 'Cannot start capturing critical dimensions as there is already a collection') : void 0;
7268
+ !!collection ? invariant$1(false, 'Cannot start capturing critical dimensions as there is already a collection') : void 0;
7189
7269
  var entry = registry.draggable.getById(request.draggableId);
7190
7270
  var home = registry.droppable.getById(entry.descriptor.droppableId);
7191
7271
  var critical = {
@@ -7251,7 +7331,7 @@
7251
7331
 
7252
7332
  var getScrollableDroppableOver = function getScrollableDroppableOver(target, droppables) {
7253
7333
  var maybe = find(getScrollableDroppables(droppables), function (droppable) {
7254
- !droppable.frame ? invariant(false, 'Invalid result') : void 0;
7334
+ !droppable.frame ? invariant$1(false, 'Invalid result') : void 0;
7255
7335
  return isPositionInFrame(droppable.frame.pageMarginBox)(target);
7256
7336
  });
7257
7337
  return maybe;
@@ -7283,7 +7363,7 @@
7283
7363
  var range = endOfRange - startOfRange;
7284
7364
 
7285
7365
  if (range === 0) {
7286
- warning("\n Detected distance range of 0 in the fluid auto scroller\n This is unexpected and would cause a divide by 0 issue.\n Not allowing an auto scroll\n ") ;
7366
+ warning$2("\n Detected distance range of 0 in the fluid auto scroller\n This is unexpected and would cause a divide by 0 issue.\n Not allowing an auto scroll\n ") ;
7287
7367
  return 0;
7288
7368
  }
7289
7369
 
@@ -7304,6 +7384,7 @@
7304
7384
  accelerateAt: 360
7305
7385
  }
7306
7386
  };
7387
+ var config$1 = config;
7307
7388
 
7308
7389
  var minScroll = 1;
7309
7390
 
@@ -7312,7 +7393,7 @@
7312
7393
  return 0;
7313
7394
  }
7314
7395
 
7315
- var maxSpeed = (configOverride == null ? void 0 : configOverride.maxPixelScroll) || config.maxPixelScroll;
7396
+ var maxSpeed = (configOverride == null ? void 0 : configOverride.maxPixelScroll) || config$1.maxPixelScroll;
7316
7397
 
7317
7398
  if (distanceToEdge <= thresholds.maxScrollValueAt) {
7318
7399
  return maxSpeed;
@@ -7328,18 +7409,18 @@
7328
7409
  current: distanceToEdge
7329
7410
  });
7330
7411
  var percentageFromStartScrollingFrom = 1 - percentageFromMaxScrollValueAt;
7331
- var scroll = maxSpeed * config.ease(percentageFromStartScrollingFrom);
7412
+ var scroll = maxSpeed * config$1.ease(percentageFromStartScrollingFrom);
7332
7413
  return Math.ceil(scroll);
7333
7414
  });
7334
7415
 
7335
- var defaultAccelerateAt = config.durationDampening.accelerateAt;
7336
- var defaultStopAt = config.durationDampening.stopDampeningAt;
7416
+ var defaultAccelerateAt = config$1.durationDampening.accelerateAt;
7417
+ var defaultStopAt = config$1.durationDampening.stopDampeningAt;
7337
7418
  var dampenValueByTime = (function (proposedScroll, dragStartTime, configOverride) {
7338
7419
  var _configOverride$durat, _configOverride$durat2;
7339
7420
 
7340
7421
  var accelerateAt = (configOverride == null ? void 0 : (_configOverride$durat = configOverride.durationDampening) == null ? void 0 : _configOverride$durat.accelerateAt) || defaultAccelerateAt;
7341
7422
  var stopAt = (configOverride == null ? void 0 : (_configOverride$durat2 = configOverride.durationDampening) == null ? void 0 : _configOverride$durat2.stopDampeningAt) || defaultStopAt;
7342
- var ease = (configOverride == null ? void 0 : configOverride.ease) || config.ease;
7423
+ var ease = (configOverride == null ? void 0 : configOverride.ease) || config$1.ease;
7343
7424
  var startOfRange = dragStartTime;
7344
7425
  var endOfRange = stopAt;
7345
7426
  var now = Date.now();
@@ -7546,8 +7627,8 @@
7546
7627
  });
7547
7628
 
7548
7629
  var getDistanceThresholds = (function (container, axis, configOverride) {
7549
- var startFromPercentage = (configOverride == null ? void 0 : configOverride.startFromPercentage) || config.startFromPercentage;
7550
- var maxScrollAtPercentage = (configOverride == null ? void 0 : configOverride.maxScrollAtPercentage) || config.maxScrollAtPercentage;
7630
+ var startFromPercentage = (configOverride == null ? void 0 : configOverride.startFromPercentage) || config$1.startFromPercentage;
7631
+ var maxScrollAtPercentage = (configOverride == null ? void 0 : configOverride.maxScrollAtPercentage) || config$1.maxScrollAtPercentage;
7551
7632
  var startScrollingFrom = container[axis.size] * startFromPercentage;
7552
7633
  var maxScrollValueAt = container[axis.size] * maxScrollAtPercentage;
7553
7634
  var thresholds = {
@@ -7557,10 +7638,10 @@
7557
7638
  return thresholds;
7558
7639
  });
7559
7640
 
7560
- var clean$2 = apply(function (value) {
7641
+ var clean = apply(function (value) {
7561
7642
  return value === 0 ? 0 : value;
7562
7643
  });
7563
- var getScroll = (function (_ref) {
7644
+ var getScroll$1 = (function (_ref) {
7564
7645
  var dragStartTime = _ref.dragStartTime,
7565
7646
  container = _ref.container,
7566
7647
  containerScroll = _ref.containerScroll,
@@ -7595,12 +7676,12 @@
7595
7676
  shouldUseTimeDampening: shouldUseTimeDampening,
7596
7677
  thresholds: thresholdsHorizontal
7597
7678
  });
7598
- var required = clean$2({
7679
+ var required = clean({
7599
7680
  x: x,
7600
7681
  y: y
7601
7682
  });
7602
7683
 
7603
- if (isEqual(required, origin)) {
7684
+ if (isEqual$1(required, origin)) {
7604
7685
  return null;
7605
7686
  }
7606
7687
 
@@ -7647,7 +7728,7 @@
7647
7728
  }
7648
7729
  }
7649
7730
 
7650
- return isEqual(scroll, origin) ? null : scroll;
7731
+ return isEqual$1(scroll, origin) ? null : scroll;
7651
7732
  });
7652
7733
 
7653
7734
  var smallestSigned = apply(function (value) {
@@ -7680,7 +7761,7 @@
7680
7761
  y: getRemainder(targetScroll.y, max.y)
7681
7762
  };
7682
7763
 
7683
- if (isEqual(overlap, origin)) {
7764
+ if (isEqual$1(overlap, origin)) {
7684
7765
  return null;
7685
7766
  }
7686
7767
 
@@ -7779,7 +7860,7 @@
7779
7860
  x: viewport.scroll.current.x,
7780
7861
  y: viewport.scroll.current.y
7781
7862
  };
7782
- var scroll = getScroll({
7863
+ var scroll = getScroll$1({
7783
7864
  dragStartTime: dragStartTime,
7784
7865
  container: viewport.frame,
7785
7866
  containerScroll: viewport.scroll,
@@ -7807,7 +7888,7 @@
7807
7888
  return null;
7808
7889
  }
7809
7890
 
7810
- var scroll = getScroll({
7891
+ var scroll = getScroll$1({
7811
7892
  dragStartTime: dragStartTime,
7812
7893
  container: frame.pageMarginBox,
7813
7894
  containerScroll: frame.scroll,
@@ -7820,7 +7901,7 @@
7820
7901
  return scroll && canScrollDroppable(droppable, scroll) ? scroll : null;
7821
7902
  });
7822
7903
 
7823
- var scroll$1 = (function (_ref) {
7904
+ var scroll = (function (_ref) {
7824
7905
  var state = _ref.state,
7825
7906
  dragStartTime = _ref.dragStartTime,
7826
7907
  shouldUseTimeDampening = _ref.shouldUseTimeDampening,
@@ -7880,16 +7961,16 @@
7880
7961
  var scrollWindow = _ref.scrollWindow,
7881
7962
  scrollDroppable = _ref.scrollDroppable,
7882
7963
  fluidScrollerOptions = _ref.fluidScrollerOptions;
7883
- var scheduleWindowScroll = rafSchd(scrollWindow);
7884
- var scheduleDroppableScroll = rafSchd(scrollDroppable);
7964
+ var scheduleWindowScroll = rafSchedule(scrollWindow);
7965
+ var scheduleDroppableScroll = rafSchedule(scrollDroppable);
7885
7966
  var dragging = null;
7886
7967
 
7887
7968
  var tryScroll = function tryScroll(state) {
7888
- !dragging ? invariant(false, 'Cannot fluid scroll if not dragging') : void 0;
7969
+ !dragging ? invariant$1(false, 'Cannot fluid scroll if not dragging') : void 0;
7889
7970
  var _dragging = dragging,
7890
7971
  shouldUseTimeDampening = _dragging.shouldUseTimeDampening,
7891
7972
  dragStartTime = _dragging.dragStartTime;
7892
- scroll$1({
7973
+ scroll({
7893
7974
  state: state,
7894
7975
  scrollWindow: scheduleWindowScroll,
7895
7976
  scrollDroppable: scheduleDroppableScroll,
@@ -7899,8 +7980,9 @@
7899
7980
  });
7900
7981
  };
7901
7982
 
7902
- var start = function start(state) {
7903
- !!dragging ? invariant(false, 'Cannot start auto scrolling when already started') : void 0;
7983
+ var start$1 = function start$1(state) {
7984
+ start('starting fluid scroller');
7985
+ !!dragging ? invariant$1(false, 'Cannot start auto scrolling when already started') : void 0;
7904
7986
  var dragStartTime = Date.now();
7905
7987
  var wasScrollNeeded = false;
7906
7988
 
@@ -7908,7 +7990,7 @@
7908
7990
  wasScrollNeeded = true;
7909
7991
  };
7910
7992
 
7911
- scroll$1({
7993
+ scroll({
7912
7994
  state: state,
7913
7995
  dragStartTime: 0,
7914
7996
  shouldUseTimeDampening: false,
@@ -7920,6 +8002,7 @@
7920
8002
  dragStartTime: dragStartTime,
7921
8003
  shouldUseTimeDampening: wasScrollNeeded
7922
8004
  };
8005
+ finish('starting fluid scroller');
7923
8006
 
7924
8007
  if (wasScrollNeeded) {
7925
8008
  tryScroll(state);
@@ -7937,7 +8020,7 @@
7937
8020
  };
7938
8021
 
7939
8022
  return {
7940
- start: start,
8023
+ start: start$1,
7941
8024
  stop: stop,
7942
8025
  scroll: tryScroll
7943
8026
  };
@@ -8003,7 +8086,7 @@
8003
8086
  }
8004
8087
 
8005
8088
  var destination = whatIsDraggedOver(state.impact);
8006
- !destination ? invariant(false, 'Cannot perform a jump scroll when there is no destination') : void 0;
8089
+ !destination ? invariant$1(false, 'Cannot perform a jump scroll when there is no destination') : void 0;
8007
8090
  var droppableRemainder = scrollDroppableAsMuchAsItCan(state.dimensions.droppables[destination], request);
8008
8091
 
8009
8092
  if (!droppableRemainder) {
@@ -8064,9 +8147,9 @@
8064
8147
  return scroller;
8065
8148
  });
8066
8149
 
8067
- var prefix$2 = 'data-rbd';
8150
+ var prefix = 'data-rbd';
8068
8151
  var dragHandle = function () {
8069
- var base = prefix$2 + "-drag-handle";
8152
+ var base = prefix + "-drag-handle";
8070
8153
  return {
8071
8154
  base: base,
8072
8155
  draggableId: base + "-draggable-id",
@@ -8074,7 +8157,7 @@
8074
8157
  };
8075
8158
  }();
8076
8159
  var draggable = function () {
8077
- var base = prefix$2 + "-draggable";
8160
+ var base = prefix + "-draggable";
8078
8161
  return {
8079
8162
  base: base,
8080
8163
  contextId: base + "-context-id",
@@ -8082,7 +8165,7 @@
8082
8165
  };
8083
8166
  }();
8084
8167
  var droppable = function () {
8085
- var base = prefix$2 + "-droppable";
8168
+ var base = prefix + "-droppable";
8086
8169
  return {
8087
8170
  base: base,
8088
8171
  contextId: base + "-context-id",
@@ -8090,7 +8173,7 @@
8090
8173
  };
8091
8174
  }();
8092
8175
  var scrollContainer = {
8093
- contextId: prefix$2 + "-scroll-container-context-id"
8176
+ contextId: prefix + "-scroll-container-context-id"
8094
8177
  };
8095
8178
 
8096
8179
  var makeGetSelector = function makeGetSelector(context) {
@@ -8162,11 +8245,12 @@
8162
8245
  };
8163
8246
  });
8164
8247
 
8165
- var useIsomorphicLayoutEffect$1 = typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined' ? React.useLayoutEffect : React.useEffect;
8248
+ var useIsomorphicLayoutEffect = typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined' ? React.useLayoutEffect : React.useEffect;
8249
+ var useLayoutEffect = useIsomorphicLayoutEffect;
8166
8250
 
8167
8251
  var getHead = function getHead() {
8168
8252
  var head = document.querySelector('head');
8169
- !head ? invariant(false, 'Cannot find the head to append a style to') : void 0;
8253
+ !head ? invariant$1(false, 'Cannot find the head to append a style to') : void 0;
8170
8254
  return head;
8171
8255
  };
8172
8256
 
@@ -8189,22 +8273,22 @@
8189
8273
  var dynamicRef = React.useRef(null);
8190
8274
  var setDynamicStyle = useCallback(memoizeOne(function (proposed) {
8191
8275
  var el = dynamicRef.current;
8192
- !el ? invariant(false, 'Cannot set dynamic style element if it is not set') : void 0;
8276
+ !el ? invariant$1(false, 'Cannot set dynamic style element if it is not set') : void 0;
8193
8277
  el.textContent = proposed;
8194
8278
  }), []);
8195
8279
  var setAlwaysStyle = useCallback(function (proposed) {
8196
8280
  var el = alwaysRef.current;
8197
- !el ? invariant(false, 'Cannot set dynamic style element if it is not set') : void 0;
8281
+ !el ? invariant$1(false, 'Cannot set dynamic style element if it is not set') : void 0;
8198
8282
  el.textContent = proposed;
8199
8283
  }, []);
8200
- useIsomorphicLayoutEffect$1(function () {
8201
- !(!alwaysRef.current && !dynamicRef.current) ? invariant(false, 'style elements already mounted') : void 0;
8284
+ useLayoutEffect(function () {
8285
+ !(!alwaysRef.current && !dynamicRef.current) ? invariant$1(false, 'style elements already mounted') : void 0;
8202
8286
  var always = createStyleEl(nonce);
8203
8287
  var dynamic = createStyleEl(nonce);
8204
8288
  alwaysRef.current = always;
8205
8289
  dynamicRef.current = dynamic;
8206
- always.setAttribute(prefix$2 + "-always", contextId);
8207
- dynamic.setAttribute(prefix$2 + "-dynamic", contextId);
8290
+ always.setAttribute(prefix + "-always", contextId);
8291
+ dynamic.setAttribute(prefix + "-dynamic", contextId);
8208
8292
  getHead().appendChild(always);
8209
8293
  getHead().appendChild(dynamic);
8210
8294
  setAlwaysStyle(styles.always);
@@ -8212,7 +8296,7 @@
8212
8296
  return function () {
8213
8297
  var remove = function remove(ref) {
8214
8298
  var current = ref.current;
8215
- !current ? invariant(false, 'Cannot unmount ref as it is not set') : void 0;
8299
+ !current ? invariant$1(false, 'Cannot unmount ref as it is not set') : void 0;
8216
8300
  getHead().removeChild(current);
8217
8301
  ref.current = null;
8218
8302
  };
@@ -8262,7 +8346,7 @@
8262
8346
  var possible = toArray(document.querySelectorAll(selector));
8263
8347
 
8264
8348
  if (!possible.length) {
8265
- warning("Unable to find any drag handles in the context \"" + contextId + "\"") ;
8349
+ warning$2("Unable to find any drag handles in the context \"" + contextId + "\"") ;
8266
8350
  return null;
8267
8351
  }
8268
8352
 
@@ -8271,12 +8355,12 @@
8271
8355
  });
8272
8356
 
8273
8357
  if (!handle) {
8274
- warning("Unable to find drag handle with id \"" + draggableId + "\" as no handle with a matching id was found") ;
8358
+ warning$2("Unable to find drag handle with id \"" + draggableId + "\" as no handle with a matching id was found") ;
8275
8359
  return null;
8276
8360
  }
8277
8361
 
8278
8362
  if (!isHtmlElement(handle)) {
8279
- warning('drag handle needs to be a HTMLElement') ;
8363
+ warning$2('drag handle needs to be a HTMLElement') ;
8280
8364
  return null;
8281
8365
  }
8282
8366
 
@@ -8347,7 +8431,7 @@
8347
8431
 
8348
8432
  recordRef.current = id;
8349
8433
  }, []);
8350
- useIsomorphicLayoutEffect$1(function () {
8434
+ useLayoutEffect(function () {
8351
8435
  isMountedRef.current = true;
8352
8436
  return function clearFrameOnUnmount() {
8353
8437
  isMountedRef.current = false;
@@ -8403,7 +8487,7 @@
8403
8487
 
8404
8488
  function getDraggableById(id) {
8405
8489
  var entry = findDraggableById(id);
8406
- !entry ? invariant(false, "Cannot find draggable entry with id [" + id + "]") : void 0;
8490
+ !entry ? invariant$1(false, "Cannot find draggable entry with id [" + id + "]") : void 0;
8407
8491
  return entry;
8408
8492
  }
8409
8493
 
@@ -8465,7 +8549,7 @@
8465
8549
 
8466
8550
  function getDroppableById(id) {
8467
8551
  var entry = findDroppableById(id);
8468
- !entry ? invariant(false, "Cannot find droppable entry with id [" + id + "]") : void 0;
8552
+ !entry ? invariant$1(false, "Cannot find droppable entry with id [" + id + "]") : void 0;
8469
8553
  return entry;
8470
8554
  }
8471
8555
 
@@ -8522,11 +8606,11 @@
8522
8606
  return registry;
8523
8607
  }
8524
8608
 
8525
- var StoreContext = React__default.createContext(null);
8609
+ var StoreContext = React.createContext(null);
8526
8610
 
8527
8611
  var getBodyElement = (function () {
8528
8612
  var body = document.body;
8529
- !body ? invariant(false, 'Cannot find document.body') : void 0;
8613
+ !body ? invariant$1(false, 'Cannot find document.body') : void 0;
8530
8614
  return body;
8531
8615
  });
8532
8616
 
@@ -8541,6 +8625,7 @@
8541
8625
  clip: 'rect(0 0 0 0)',
8542
8626
  'clip-path': 'inset(100%)'
8543
8627
  };
8628
+ var visuallyHidden$1 = visuallyHidden;
8544
8629
 
8545
8630
  var getId = function getId(contextId) {
8546
8631
  return "rbd-announcement-" + contextId;
@@ -8557,7 +8642,7 @@
8557
8642
  el.setAttribute('aria-live', 'assertive');
8558
8643
  el.setAttribute('aria-atomic', 'true');
8559
8644
 
8560
- _extends(el.style, visuallyHidden);
8645
+ _extends$1(el.style, visuallyHidden$1);
8561
8646
 
8562
8647
  getBodyElement().appendChild(el);
8563
8648
  return function cleanup() {
@@ -8582,17 +8667,17 @@
8582
8667
  return;
8583
8668
  }
8584
8669
 
8585
- warning("\n A screen reader message was trying to be announced but it was unable to do so.\n This can occur if you unmount your <DragDropContext /> in your onDragEnd.\n Consider calling provided.announce() before the unmount so that the instruction will\n not be lost for users relying on a screen reader.\n\n Message not passed to screen reader:\n\n \"" + message + "\"\n ") ;
8670
+ warning$2("\n A screen reader message was trying to be announced but it was unable to do so.\n This can occur if you unmount your <DragDropContext /> in your onDragEnd.\n Consider calling provided.announce() before the unmount so that the instruction will\n not be lost for users relying on a screen reader.\n\n Message not passed to screen reader:\n\n \"" + message + "\"\n ") ;
8586
8671
  }, []);
8587
8672
  return announce;
8588
8673
  }
8589
8674
 
8590
- var count = 0;
8675
+ var count$1 = 0;
8591
8676
  var defaults = {
8592
8677
  separator: '::'
8593
8678
  };
8594
- function reset() {
8595
- count = 0;
8679
+ function reset$1() {
8680
+ count$1 = 0;
8596
8681
  }
8597
8682
  function useUniqueId(prefix, options) {
8598
8683
  if (options === void 0) {
@@ -8600,7 +8685,7 @@
8600
8685
  }
8601
8686
 
8602
8687
  return useMemo(function () {
8603
- return "" + prefix + options.separator + count++;
8688
+ return "" + prefix + options.separator + count$1++;
8604
8689
  }, [options.separator, prefix]);
8605
8690
  }
8606
8691
 
@@ -8638,7 +8723,7 @@
8638
8723
  return id;
8639
8724
  }
8640
8725
 
8641
- var AppContext = React__default.createContext(null);
8726
+ var AppContext = React.createContext(null);
8642
8727
 
8643
8728
  var peerDependencies = {
8644
8729
  react: "^16.8.5 || ^17.0.0 || ^18.0.0",
@@ -8649,7 +8734,7 @@
8649
8734
 
8650
8735
  var getVersion = function getVersion(value) {
8651
8736
  var result = semver.exec(value);
8652
- !(result != null) ? invariant(false, "Unable to parse React version " + value) : void 0;
8737
+ !(result != null) ? invariant$1(false, "Unable to parse React version " + value) : void 0;
8653
8738
  var major = Number(result[1]);
8654
8739
  var minor = Number(result[2]);
8655
8740
  var patch = Number(result[3]);
@@ -8689,7 +8774,7 @@
8689
8774
  return;
8690
8775
  }
8691
8776
 
8692
- warning("\n React version: [" + actual.raw + "]\n does not satisfy expected peer dependency version: [" + peerDep.raw + "]\n\n This can result in run time bugs, and even fatal crashes\n ") ;
8777
+ warning$2("\n React version: [" + actual.raw + "]\n does not satisfy expected peer dependency version: [" + peerDep.raw + "]\n\n This can result in run time bugs, and even fatal crashes\n ") ;
8693
8778
  });
8694
8779
 
8695
8780
  var suffix = "\n We expect a html5 doctype: <!doctype html>\n This is to ensure consistent browser layout and measurement\n\n More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/doctype.md\n";
@@ -8697,16 +8782,16 @@
8697
8782
  var doctype = doc.doctype;
8698
8783
 
8699
8784
  if (!doctype) {
8700
- warning("\n No <!doctype html> found.\n\n " + suffix + "\n ") ;
8785
+ warning$2("\n No <!doctype html> found.\n\n " + suffix + "\n ") ;
8701
8786
  return;
8702
8787
  }
8703
8788
 
8704
8789
  if (doctype.name.toLowerCase() !== 'html') {
8705
- warning("\n Unexpected <!doctype> found: (" + doctype.name + ")\n\n " + suffix + "\n ") ;
8790
+ warning$2("\n Unexpected <!doctype> found: (" + doctype.name + ")\n\n " + suffix + "\n ") ;
8706
8791
  }
8707
8792
 
8708
8793
  if (doctype.publicId !== '') {
8709
- warning("\n Unexpected <!doctype> publicId found: (" + doctype.publicId + ")\n A html5 doctype does not have a publicId\n\n " + suffix + "\n ") ;
8794
+ warning$2("\n Unexpected <!doctype> publicId found: (" + doctype.publicId + ")\n A html5 doctype does not have a publicId\n\n " + suffix + "\n ") ;
8710
8795
  }
8711
8796
  });
8712
8797
 
@@ -8730,7 +8815,7 @@
8730
8815
 
8731
8816
  function useStartupValidation() {
8732
8817
  useDevSetupWarning(function () {
8733
- checkReactVersion(peerDependencies.react, React__default.version);
8818
+ checkReactVersion(peerDependencies.react, React.version);
8734
8819
  checkDoctype(document);
8735
8820
  }, []);
8736
8821
  }
@@ -8755,7 +8840,7 @@
8755
8840
  }
8756
8841
 
8757
8842
  function claim(abandon) {
8758
- !!lock ? invariant(false, 'Cannot claim lock as it is already claimed') : void 0;
8843
+ !!lock ? invariant$1(false, 'Cannot claim lock as it is already claimed') : void 0;
8759
8844
  var newLock = {
8760
8845
  abandon: abandon
8761
8846
  };
@@ -8764,7 +8849,7 @@
8764
8849
  }
8765
8850
 
8766
8851
  function release() {
8767
- !lock ? invariant(false, 'Cannot release lock when there is no lock') : void 0;
8852
+ !lock ? invariant$1(false, 'Cannot release lock when there is no lock') : void 0;
8768
8853
  lock = null;
8769
8854
  }
8770
8855
 
@@ -8819,6 +8904,8 @@
8819
8904
  return supported || base;
8820
8905
  }();
8821
8906
 
8907
+ var supportedPageVisibilityEventName = supportedEventName;
8908
+
8822
8909
  var primaryButton = 0;
8823
8910
  var sloppyClickThreshold = 5;
8824
8911
 
@@ -8858,7 +8945,7 @@
8858
8945
  return;
8859
8946
  }
8860
8947
 
8861
- !(phase.type === 'PENDING') ? invariant(false, 'Cannot be IDLE') : void 0;
8948
+ !(phase.type === 'PENDING') ? invariant$1(false, 'Cannot be IDLE') : void 0;
8862
8949
  var pending = phase.point;
8863
8950
 
8864
8951
  if (!isSloppyClickThresholdExceeded(pending, point)) {
@@ -8933,7 +9020,7 @@
8933
9020
  eventName: 'webkitmouseforcedown',
8934
9021
  fn: function fn(event) {
8935
9022
  var phase = getPhase();
8936
- !(phase.type !== 'IDLE') ? invariant(false, 'Unexpected phase') : void 0;
9023
+ !(phase.type !== 'IDLE') ? invariant$1(false, 'Unexpected phase') : void 0;
8937
9024
 
8938
9025
  if (phase.actions.shouldRespectForcePress()) {
8939
9026
  cancel();
@@ -8943,14 +9030,14 @@
8943
9030
  event.preventDefault();
8944
9031
  }
8945
9032
  }, {
8946
- eventName: supportedEventName,
9033
+ eventName: supportedPageVisibilityEventName,
8947
9034
  fn: cancel
8948
9035
  }];
8949
9036
  }
8950
9037
 
8951
9038
  function useMouseSensor(api) {
8952
9039
  var phaseRef = React.useRef(idle$1);
8953
- var unbindEventsRef = React.useRef(noop);
9040
+ var unbindEventsRef = React.useRef(noop$2);
8954
9041
  var startCaptureBinding = useMemo(function () {
8955
9042
  return {
8956
9043
  eventName: 'mousedown',
@@ -9073,7 +9160,7 @@
9073
9160
  unbindEventsRef.current = bindEvents(window, bindings, options);
9074
9161
  }, [cancel, stop]);
9075
9162
  var startPendingDrag = useCallback(function startPendingDrag(actions, point) {
9076
- !(phaseRef.current.type === 'IDLE') ? invariant(false, 'Expected to move from IDLE to PENDING drag') : void 0;
9163
+ !(phaseRef.current.type === 'IDLE') ? invariant$1(false, 'Expected to move from IDLE to PENDING drag') : void 0;
9077
9164
  phaseRef.current = {
9078
9165
  type: 'PENDING',
9079
9166
  point: point,
@@ -9081,7 +9168,7 @@
9081
9168
  };
9082
9169
  bindCapturingEvents();
9083
9170
  }, [bindCapturingEvents]);
9084
- useIsomorphicLayoutEffect$1(function mount() {
9171
+ useLayoutEffect(function mount() {
9085
9172
  listenForCapture();
9086
9173
  return function unmount() {
9087
9174
  unbindEventsRef.current();
@@ -9174,7 +9261,7 @@
9174
9261
  passive: true
9175
9262
  }
9176
9263
  }, {
9177
- eventName: supportedEventName,
9264
+ eventName: supportedPageVisibilityEventName,
9178
9265
  fn: cancel
9179
9266
  }];
9180
9267
  }
@@ -9213,7 +9300,7 @@
9213
9300
  unbindEventsRef.current();
9214
9301
 
9215
9302
  function stop() {
9216
- !isCapturing ? invariant(false, 'Cannot stop capturing a keyboard drag when not capturing') : void 0;
9303
+ !isCapturing ? invariant$1(false, 'Cannot stop capturing a keyboard drag when not capturing') : void 0;
9217
9304
  isCapturing = false;
9218
9305
  unbindEventsRef.current();
9219
9306
  listenForCapture();
@@ -9233,7 +9320,7 @@
9233
9320
  };
9234
9321
  unbindEventsRef.current = bindEvents(window, [startCaptureBinding], options);
9235
9322
  }, [startCaptureBinding]);
9236
- useIsomorphicLayoutEffect$1(function mount() {
9323
+ useLayoutEffect(function mount() {
9237
9324
  listenForCapture();
9238
9325
  return function unmount() {
9239
9326
  unbindEventsRef.current();
@@ -9241,7 +9328,7 @@
9241
9328
  }, [listenForCapture]);
9242
9329
  }
9243
9330
 
9244
- var idle$2 = {
9331
+ var idle = {
9245
9332
  type: 'IDLE'
9246
9333
  };
9247
9334
  var timeForLongPress = 120;
@@ -9276,7 +9363,7 @@
9276
9363
  cancel();
9277
9364
  }
9278
9365
  }, {
9279
- eventName: supportedEventName,
9366
+ eventName: supportedPageVisibilityEventName,
9280
9367
  fn: cancel
9281
9368
  }];
9282
9369
  }
@@ -9340,7 +9427,7 @@
9340
9427
  eventName: 'touchforcechange',
9341
9428
  fn: function fn(event) {
9342
9429
  var phase = getPhase();
9343
- !(phase.type !== 'IDLE') ? invariant(false) : void 0;
9430
+ !(phase.type !== 'IDLE') ? invariant$1(false) : void 0;
9344
9431
  var touch = event.touches[0];
9345
9432
 
9346
9433
  if (!touch) {
@@ -9376,14 +9463,14 @@
9376
9463
  event.preventDefault();
9377
9464
  }
9378
9465
  }, {
9379
- eventName: supportedEventName,
9466
+ eventName: supportedPageVisibilityEventName,
9380
9467
  fn: cancel
9381
9468
  }];
9382
9469
  }
9383
9470
 
9384
9471
  function useTouchSensor(api) {
9385
- var phaseRef = React.useRef(idle$2);
9386
- var unbindEventsRef = React.useRef(noop);
9472
+ var phaseRef = React.useRef(idle);
9473
+ var unbindEventsRef = React.useRef(noop$2);
9387
9474
  var getPhase = useCallback(function getPhase() {
9388
9475
  return phaseRef.current;
9389
9476
  }, []);
@@ -9420,7 +9507,7 @@
9420
9507
  y: clientY
9421
9508
  };
9422
9509
  var handle = api.findClosestDragHandle(event);
9423
- !handle ? invariant(false, 'Touch sensor unable to find drag handle') : void 0;
9510
+ !handle ? invariant$1(false, 'Touch sensor unable to find drag handle') : void 0;
9424
9511
  unbindEventsRef.current();
9425
9512
  startPendingDrag(actions, point, handle);
9426
9513
  }
@@ -9444,7 +9531,7 @@
9444
9531
  clearTimeout(current.longPressTimerId);
9445
9532
  }
9446
9533
 
9447
- setPhase(idle$2);
9534
+ setPhase(idle);
9448
9535
  unbindEventsRef.current();
9449
9536
  listenForCapture();
9450
9537
  }, [listenForCapture, setPhase]);
@@ -9482,7 +9569,7 @@
9482
9569
  }, [cancel, getPhase, stop]);
9483
9570
  var startDragging = useCallback(function startDragging() {
9484
9571
  var phase = getPhase();
9485
- !(phase.type === 'PENDING') ? invariant(false, "Cannot start dragging from phase " + phase.type) : void 0;
9572
+ !(phase.type === 'PENDING') ? invariant$1(false, "Cannot start dragging from phase " + phase.type) : void 0;
9486
9573
  var actions = phase.actions.fluidLift(phase.point);
9487
9574
  setPhase({
9488
9575
  type: 'DRAGGING',
@@ -9491,7 +9578,7 @@
9491
9578
  });
9492
9579
  }, [getPhase, setPhase]);
9493
9580
  var startPendingDrag = useCallback(function startPendingDrag(actions, point, target) {
9494
- !(getPhase().type === 'IDLE') ? invariant(false, 'Expected to move from IDLE to PENDING drag') : void 0;
9581
+ !(getPhase().type === 'IDLE') ? invariant$1(false, 'Expected to move from IDLE to PENDING drag') : void 0;
9495
9582
  var longPressTimerId = setTimeout(startDragging, timeForLongPress);
9496
9583
  setPhase({
9497
9584
  type: 'PENDING',
@@ -9501,7 +9588,7 @@
9501
9588
  });
9502
9589
  bindCapturingEvents(target);
9503
9590
  }, [bindCapturingEvents, getPhase, setPhase, startDragging]);
9504
- useIsomorphicLayoutEffect$1(function mount() {
9591
+ useLayoutEffect(function mount() {
9505
9592
  listenForCapture();
9506
9593
  return function unmount() {
9507
9594
  unbindEventsRef.current();
@@ -9509,11 +9596,11 @@
9509
9596
 
9510
9597
  if (phase.type === 'PENDING') {
9511
9598
  clearTimeout(phase.longPressTimerId);
9512
- setPhase(idle$2);
9599
+ setPhase(idle);
9513
9600
  }
9514
9601
  };
9515
9602
  }, [getPhase, listenForCapture, setPhase]);
9516
- useIsomorphicLayoutEffect$1(function webkitHack() {
9603
+ useLayoutEffect(function webkitHack() {
9517
9604
  var unbind = bindEvents(window, [{
9518
9605
  eventName: 'touchmove',
9519
9606
  fn: function fn() {},
@@ -9530,7 +9617,7 @@
9530
9617
  useDev(function () {
9531
9618
  var previousRef = usePrevious(sensorHooks);
9532
9619
  useDevSetupWarning(function () {
9533
- !(previousRef.current.length === sensorHooks.length) ? "development" !== "production" ? invariant(false, 'Cannot change the amount of sensor hooks after mounting') : invariant(false) : void 0;
9620
+ !(previousRef.current.length === sensorHooks.length) ? "development" !== "production" ? invariant$1(false, 'Cannot change the amount of sensor hooks after mounting') : invariant$1(false) : void 0;
9534
9621
  });
9535
9622
  });
9536
9623
  }
@@ -9614,7 +9701,7 @@
9614
9701
  return closestPonyfill(el.parentElement, selector);
9615
9702
  }
9616
9703
 
9617
- function closest$1(el, selector) {
9704
+ function closest(el, selector) {
9618
9705
  if (el.closest) {
9619
9706
  return el.closest(selector);
9620
9707
  }
@@ -9630,19 +9717,19 @@
9630
9717
  var target = event.target;
9631
9718
 
9632
9719
  if (!isElement(target)) {
9633
- warning('event.target must be a Element') ;
9720
+ warning$2('event.target must be a Element') ;
9634
9721
  return null;
9635
9722
  }
9636
9723
 
9637
9724
  var selector = getSelector(contextId);
9638
- var handle = closest$1(target, selector);
9725
+ var handle = closest(target, selector);
9639
9726
 
9640
9727
  if (!handle) {
9641
9728
  return null;
9642
9729
  }
9643
9730
 
9644
9731
  if (!isHtmlElement(handle)) {
9645
- warning('drag handle must be a HTMLElement') ;
9732
+ warning$2('drag handle must be a HTMLElement') ;
9646
9733
  return null;
9647
9734
  }
9648
9735
 
@@ -9670,7 +9757,7 @@
9670
9757
  }
9671
9758
 
9672
9759
  if (!isHtmlElement(draggable$1)) {
9673
- warning('Draggable element is not a HTMLElement') ;
9760
+ warning$2('Draggable element is not a HTMLElement') ;
9674
9761
  return null;
9675
9762
  }
9676
9763
 
@@ -9689,7 +9776,7 @@
9689
9776
 
9690
9777
  if (!isLockActive()) {
9691
9778
  if (shouldWarn) {
9692
- warning("\n Cannot perform action.\n The sensor no longer has an action lock.\n\n Tips:\n\n - Throw away your action handlers when forceStop() is called\n - Check actions.isActive() if you really need to\n ") ;
9779
+ warning$2("\n Cannot perform action.\n The sensor no longer has an action lock.\n\n Tips:\n\n - Throw away your action handlers when forceStop() is called\n - Check actions.isActive() if you really need to\n ") ;
9693
9780
  }
9694
9781
 
9695
9782
  return false;
@@ -9697,7 +9784,7 @@
9697
9784
 
9698
9785
  if (expected !== phase) {
9699
9786
  if (shouldWarn) {
9700
- warning("\n Cannot perform action.\n The actions you used belong to an outdated phase\n\n Current phase: " + expected + "\n You called an action from outdated phase: " + phase + "\n\n Tips:\n\n - Do not use preDragActions actions after calling preDragActions.lift()\n ") ;
9787
+ warning$2("\n Cannot perform action.\n The actions you used belong to an outdated phase\n\n Current phase: " + expected + "\n You called an action from outdated phase: " + phase + "\n\n Tips:\n\n - Do not use preDragActions actions after calling preDragActions.lift()\n ") ;
9701
9788
  }
9702
9789
 
9703
9790
  return false;
@@ -9719,7 +9806,7 @@
9719
9806
  var entry = registry.draggable.findById(draggableId);
9720
9807
 
9721
9808
  if (!entry) {
9722
- warning("Unable to find draggable with id: " + draggableId) ;
9809
+ warning$2("Unable to find draggable with id: " + draggableId) ;
9723
9810
  return false;
9724
9811
  }
9725
9812
 
@@ -9757,7 +9844,7 @@
9757
9844
  var el = findDraggable(contextId, entry.descriptor.id);
9758
9845
 
9759
9846
  if (!el) {
9760
- warning("Unable to find draggable element with id: " + draggableId) ;
9847
+ warning$2("Unable to find draggable element with id: " + draggableId) ;
9761
9848
  return null;
9762
9849
  }
9763
9850
 
@@ -9765,7 +9852,7 @@
9765
9852
  return null;
9766
9853
  }
9767
9854
 
9768
- var lock = lockAPI.claim(forceSensorStop || noop);
9855
+ var lock = lockAPI.claim(forceSensorStop || noop$2);
9769
9856
  var phase = 'PRE_DRAG';
9770
9857
 
9771
9858
  function getShouldRespectForcePress() {
@@ -9789,7 +9876,7 @@
9789
9876
 
9790
9877
  var tryDispatchWhenDragging = tryDispatch.bind(null, 'DRAGGING');
9791
9878
 
9792
- function lift$1(args) {
9879
+ function lift(args) {
9793
9880
  function completed() {
9794
9881
  lockAPI.release();
9795
9882
  phase = 'COMPLETED';
@@ -9797,10 +9884,10 @@
9797
9884
 
9798
9885
  if (phase !== 'PRE_DRAG') {
9799
9886
  completed();
9800
- !(phase === 'PRE_DRAG') ? invariant(false, "Cannot lift in phase " + phase) : void 0;
9887
+ !(phase === 'PRE_DRAG') ? invariant$1(false, "Cannot lift in phase " + phase) : void 0;
9801
9888
  }
9802
9889
 
9803
- store.dispatch(lift(args.liftActionArgs));
9890
+ store.dispatch(lift$1(args.liftActionArgs));
9804
9891
  phase = 'DRAGGING';
9805
9892
 
9806
9893
  function finish(reason, options) {
@@ -9826,12 +9913,12 @@
9826
9913
  }
9827
9914
 
9828
9915
  completed();
9829
- store.dispatch(drop({
9916
+ store.dispatch(drop$1({
9830
9917
  reason: reason
9831
9918
  }));
9832
9919
  }
9833
9920
 
9834
- return _extends({
9921
+ return _extends$1({
9835
9922
  isActive: function isActive() {
9836
9923
  return _isActive({
9837
9924
  expected: 'DRAGGING',
@@ -9851,14 +9938,14 @@
9851
9938
  }
9852
9939
 
9853
9940
  function fluidLift(clientSelection) {
9854
- var move$1 = rafSchd(function (client) {
9941
+ var move$1 = rafSchedule(function (client) {
9855
9942
  tryDispatchWhenDragging(function () {
9856
9943
  return move({
9857
9944
  client: client
9858
9945
  });
9859
9946
  });
9860
9947
  });
9861
- var api = lift$1({
9948
+ var api = lift({
9862
9949
  liftActionArgs: {
9863
9950
  id: draggableId,
9864
9951
  clientSelection: clientSelection,
@@ -9871,7 +9958,7 @@
9871
9958
  move: move$1
9872
9959
  }
9873
9960
  });
9874
- return _extends({}, api, {
9961
+ return _extends$1({}, api, {
9875
9962
  move: move$1
9876
9963
  });
9877
9964
  }
@@ -9891,13 +9978,13 @@
9891
9978
  return tryDispatchWhenDragging(moveLeft);
9892
9979
  }
9893
9980
  };
9894
- return lift$1({
9981
+ return lift({
9895
9982
  liftActionArgs: {
9896
9983
  id: draggableId,
9897
9984
  clientSelection: getBorderBoxCenterPosition(el),
9898
9985
  movementMode: 'SNAP'
9899
9986
  },
9900
- cleanup: noop,
9987
+ cleanup: noop$2,
9901
9988
  actions: actions
9902
9989
  });
9903
9990
  }
@@ -9948,7 +10035,7 @@
9948
10035
  lockAPI.tryAbandon();
9949
10036
  }
9950
10037
  }, [lockAPI]);
9951
- useIsomorphicLayoutEffect$1(function listenToStore() {
10038
+ useLayoutEffect(function listenToStore() {
9952
10039
  var previous = store.getState();
9953
10040
  var unsubscribe = store.subscribe(function () {
9954
10041
  var current = store.getState();
@@ -9957,7 +10044,7 @@
9957
10044
  });
9958
10045
  return unsubscribe;
9959
10046
  }, [lockAPI, store, tryAbandonLock]);
9960
- useIsomorphicLayoutEffect$1(function () {
10047
+ useLayoutEffect(function () {
9961
10048
  return lockAPI.tryAbandon;
9962
10049
  }, [lockAPI.tryAbandon]);
9963
10050
  var canGetLock = useCallback(function (draggableId) {
@@ -10030,7 +10117,7 @@
10030
10117
  };
10031
10118
 
10032
10119
  function getStore(lazyRef) {
10033
- !lazyRef.current ? invariant(false, 'Could not find store from lazy ref') : void 0;
10120
+ !lazyRef.current ? invariant$1(false, 'Could not find store from lazy ref') : void 0;
10034
10121
  return lazyRef.current;
10035
10122
  }
10036
10123
 
@@ -10071,7 +10158,7 @@
10071
10158
  }, [registry, marshalCallbacks]);
10072
10159
  var fluidScrollerOptionsRef = React.useRef(fluidScrollerOptions);
10073
10160
  var autoScroller = useMemo(function () {
10074
- return createAutoScroller(_extends({
10161
+ return createAutoScroller(_extends$1({
10075
10162
  scrollWindow: scrollWindow,
10076
10163
  scrollDroppable: dimensionMarshal.scrollDroppable
10077
10164
  }, bindActionCreators({
@@ -10082,7 +10169,7 @@
10082
10169
  }, [dimensionMarshal.scrollDroppable, lazyDispatch]);
10083
10170
  var focusMarshal = useFocusMarshal(contextId);
10084
10171
  var store = useMemo(function () {
10085
- return createStore$1({
10172
+ return createStore({
10086
10173
  announce: announce,
10087
10174
  autoScroller: autoScroller,
10088
10175
  dimensionMarshal: dimensionMarshal,
@@ -10094,7 +10181,7 @@
10094
10181
 
10095
10182
  {
10096
10183
  if (lazyStoreRef.current && lazyStoreRef.current !== store) {
10097
- warning('unexpected store change') ;
10184
+ warning$2('unexpected store change') ;
10098
10185
  }
10099
10186
  }
10100
10187
 
@@ -10146,33 +10233,33 @@
10146
10233
  React.useEffect(function () {
10147
10234
  return tryResetStore;
10148
10235
  }, [tryResetStore]);
10149
- return React__default.createElement(AppContext.Provider, {
10236
+ return React.createElement(AppContext.Provider, {
10150
10237
  value: appContext
10151
- }, React__default.createElement(Provider, {
10238
+ }, React.createElement(Provider, {
10152
10239
  context: StoreContext,
10153
10240
  store: store
10154
10241
  }, props.children));
10155
10242
  }
10156
10243
 
10157
- var count$1 = 0;
10158
- function reset$1() {
10159
- count$1 = 0;
10244
+ var count = 0;
10245
+ function reset() {
10246
+ count = 0;
10160
10247
  }
10161
10248
  function useInstanceCount() {
10162
10249
  return useMemo(function () {
10163
- return "" + count$1++;
10250
+ return "" + count++;
10164
10251
  }, []);
10165
10252
  }
10166
10253
 
10167
10254
  function resetServerContext() {
10168
- reset$1();
10169
10255
  reset();
10256
+ reset$1();
10170
10257
  }
10171
10258
  function DragDropContext(props) {
10172
10259
  var contextId = useInstanceCount();
10173
- var dragHandleUsageInstructions = props.dragHandleUsageInstructions || preset.dragHandleUsageInstructions;
10174
- return React__default.createElement(ErrorBoundary, null, function (setCallbacks) {
10175
- return React__default.createElement(App, {
10260
+ var dragHandleUsageInstructions = props.dragHandleUsageInstructions || preset$1.dragHandleUsageInstructions;
10261
+ return React.createElement(ErrorBoundary, null, function (setCallbacks) {
10262
+ return React.createElement(App, {
10176
10263
  nonce: props.nonce,
10177
10264
  contextId: contextId,
10178
10265
  setCallbacks: setCallbacks,
@@ -10189,15 +10276,15 @@
10189
10276
  });
10190
10277
  }
10191
10278
 
10192
- var isEqual$1 = function isEqual(base) {
10279
+ var isEqual = function isEqual(base) {
10193
10280
  return function (value) {
10194
10281
  return base === value;
10195
10282
  };
10196
10283
  };
10197
10284
 
10198
- var isScroll = isEqual$1('scroll');
10199
- var isAuto = isEqual$1('auto');
10200
- var isVisible$1 = isEqual$1('visible');
10285
+ var isScroll = isEqual('scroll');
10286
+ var isAuto = isEqual('auto');
10287
+ var isVisible = isEqual('visible');
10201
10288
 
10202
10289
  var isEither = function isEither(overflow, fn) {
10203
10290
  return fn(overflow.overflowX) || fn(overflow.overflowY);
@@ -10225,7 +10312,7 @@
10225
10312
 
10226
10313
  var body = getBodyElement();
10227
10314
  var html = document.documentElement;
10228
- !html ? invariant(false) : void 0;
10315
+ !html ? invariant$1(false) : void 0;
10229
10316
 
10230
10317
  if (!isElementScrollable(body)) {
10231
10318
  return false;
@@ -10237,11 +10324,11 @@
10237
10324
  overflowY: htmlStyle.overflowY
10238
10325
  };
10239
10326
 
10240
- if (isBoth(htmlOverflow, isVisible$1)) {
10327
+ if (isBoth(htmlOverflow, isVisible)) {
10241
10328
  return false;
10242
10329
  }
10243
10330
 
10244
- warning("\n We have detected that your <body> element might be a scroll container.\n We have found no reliable way of detecting whether the <body> element is a scroll container.\n Under most circumstances a <body> scroll bar will be on the <html> element (document.documentElement)\n\n Because we cannot determine if the <body> is a scroll container, and generally it is not one,\n we will be treating the <body> as *not* a scroll container\n\n More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/how-we-detect-scroll-containers.md\n ") ;
10331
+ warning$2("\n We have detected that your <body> element might be a scroll container.\n We have found no reliable way of detecting whether the <body> element is a scroll container.\n Under most circumstances a <body> scroll bar will be on the <html> element (document.documentElement)\n\n Because we cannot determine if the <body> is a scroll container, and generally it is not one,\n we will be treating the <body> as *not* a scroll container\n\n More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/how-we-detect-scroll-containers.md\n ") ;
10245
10332
  return false;
10246
10333
  };
10247
10334
 
@@ -10265,21 +10352,23 @@
10265
10352
  return el;
10266
10353
  };
10267
10354
 
10355
+ var getClosestScrollable$1 = getClosestScrollable;
10356
+
10268
10357
  var checkForNestedScrollContainers = (function (scrollable) {
10269
10358
  if (!scrollable) {
10270
10359
  return;
10271
10360
  }
10272
10361
 
10273
- var anotherScrollParent = getClosestScrollable(scrollable.parentElement);
10362
+ var anotherScrollParent = getClosestScrollable$1(scrollable.parentElement);
10274
10363
 
10275
10364
  if (!anotherScrollParent) {
10276
10365
  return;
10277
10366
  }
10278
10367
 
10279
- warning("\n Droppable: unsupported nested scroll container detected.\n A Droppable can only have one scroll parent (which can be itself)\n Nested scroll containers are currently not supported.\n\n We hope to support nested scroll containers soon: https://github.com/atlassian/react-beautiful-dnd/issues/131\n ") ;
10368
+ warning$2("\n Droppable: unsupported nested scroll container detected.\n A Droppable can only have one scroll parent (which can be itself)\n Nested scroll containers are currently not supported.\n\n We hope to support nested scroll containers soon: https://github.com/atlassian/react-beautiful-dnd/issues/131\n ") ;
10280
10369
  });
10281
10370
 
10282
- var getScroll$1 = (function (el) {
10371
+ var getScroll = (function (el) {
10283
10372
  return {
10284
10373
  x: el.scrollLeft,
10285
10374
  y: el.scrollTop
@@ -10301,7 +10390,7 @@
10301
10390
  };
10302
10391
 
10303
10392
  var getEnv = (function (start) {
10304
- var closestScrollable = getClosestScrollable(start);
10393
+ var closestScrollable = getClosestScrollable$1(start);
10305
10394
  var isFixedOnPage = getIsFixed(start);
10306
10395
  return {
10307
10396
  closestScrollable: closestScrollable,
@@ -10401,7 +10490,7 @@
10401
10490
  return client;
10402
10491
  };
10403
10492
 
10404
- var getDimension = (function (_ref) {
10493
+ var getDimension$1 = (function (_ref) {
10405
10494
  var ref = _ref.ref,
10406
10495
  descriptor = _ref.descriptor,
10407
10496
  env = _ref.env,
@@ -10427,7 +10516,7 @@
10427
10516
  return {
10428
10517
  client: frameClient,
10429
10518
  page: withScroll(frameClient, windowScroll),
10430
- scroll: getScroll$1(closestScrollable),
10519
+ scroll: getScroll(closestScrollable),
10431
10520
  scrollSize: scrollSize,
10432
10521
  shouldClipSubject: shouldClipSubject
10433
10522
  };
@@ -10458,7 +10547,7 @@
10458
10547
 
10459
10548
  function useRequiredContext(Context) {
10460
10549
  var result = React.useContext(Context);
10461
- !result ? invariant(false, 'Could not find required context') : void 0;
10550
+ !result ? invariant$1(false, 'Could not find required context') : void 0;
10462
10551
  return result;
10463
10552
  }
10464
10553
 
@@ -10483,7 +10572,7 @@
10483
10572
  var publishedDescriptorRef = React.useRef(descriptor);
10484
10573
  var memoizedUpdateScroll = useMemo(function () {
10485
10574
  return memoizeOne(function (x, y) {
10486
- !whileDraggingRef.current ? invariant(false, 'Can only update scroll when dragging') : void 0;
10575
+ !whileDraggingRef.current ? invariant$1(false, 'Can only update scroll when dragging') : void 0;
10487
10576
  var scroll = {
10488
10577
  x: x,
10489
10578
  y: y
@@ -10498,19 +10587,19 @@
10498
10587
  return origin;
10499
10588
  }
10500
10589
 
10501
- return getScroll$1(dragging.env.closestScrollable);
10590
+ return getScroll(dragging.env.closestScrollable);
10502
10591
  }, []);
10503
10592
  var updateScroll = useCallback(function () {
10504
10593
  var scroll = getClosestScroll();
10505
10594
  memoizedUpdateScroll(scroll.x, scroll.y);
10506
10595
  }, [getClosestScroll, memoizedUpdateScroll]);
10507
10596
  var scheduleScrollUpdate = useMemo(function () {
10508
- return rafSchd(updateScroll);
10597
+ return rafSchedule(updateScroll);
10509
10598
  }, [updateScroll]);
10510
10599
  var onClosestScroll = useCallback(function () {
10511
10600
  var dragging = whileDraggingRef.current;
10512
10601
  var closest = getClosestScrollableFromDrag(dragging);
10513
- !(dragging && closest) ? invariant(false, 'Could not find scroll options while scrolling') : void 0;
10602
+ !(dragging && closest) ? invariant$1(false, 'Could not find scroll options while scrolling') : void 0;
10514
10603
  var options = dragging.scrollOptions;
10515
10604
 
10516
10605
  if (options.shouldPublishImmediately) {
@@ -10521,10 +10610,10 @@
10521
10610
  scheduleScrollUpdate();
10522
10611
  }, [scheduleScrollUpdate, updateScroll]);
10523
10612
  var getDimensionAndWatchScroll = useCallback(function (windowScroll, options) {
10524
- !!whileDraggingRef.current ? invariant(false, 'Cannot collect a droppable while a drag is occurring') : void 0;
10613
+ !!whileDraggingRef.current ? invariant$1(false, 'Cannot collect a droppable while a drag is occurring') : void 0;
10525
10614
  var previous = previousRef.current;
10526
10615
  var ref = previous.getDroppableRef();
10527
- !ref ? invariant(false, 'Cannot collect without a droppable ref') : void 0;
10616
+ !ref ? invariant$1(false, 'Cannot collect without a droppable ref') : void 0;
10528
10617
  var env = getEnv(ref);
10529
10618
  var dragging = {
10530
10619
  ref: ref,
@@ -10533,7 +10622,7 @@
10533
10622
  scrollOptions: options
10534
10623
  };
10535
10624
  whileDraggingRef.current = dragging;
10536
- var dimension = getDimension({
10625
+ var dimension = getDimension$1({
10537
10626
  ref: ref,
10538
10627
  descriptor: descriptor,
10539
10628
  env: env,
@@ -10559,12 +10648,12 @@
10559
10648
  var getScrollWhileDragging = useCallback(function () {
10560
10649
  var dragging = whileDraggingRef.current;
10561
10650
  var closest = getClosestScrollableFromDrag(dragging);
10562
- !(dragging && closest) ? invariant(false, 'Can only recollect Droppable client for Droppables that have a scroll container') : void 0;
10563
- return getScroll$1(closest);
10651
+ !(dragging && closest) ? invariant$1(false, 'Can only recollect Droppable client for Droppables that have a scroll container') : void 0;
10652
+ return getScroll(closest);
10564
10653
  }, []);
10565
10654
  var dragStopped = useCallback(function () {
10566
10655
  var dragging = whileDraggingRef.current;
10567
- !dragging ? invariant(false, 'Cannot stop drag when no active drag') : void 0;
10656
+ !dragging ? invariant$1(false, 'Cannot stop drag when no active drag') : void 0;
10568
10657
  var closest = getClosestScrollableFromDrag(dragging);
10569
10658
  whileDraggingRef.current = null;
10570
10659
 
@@ -10578,9 +10667,9 @@
10578
10667
  }, [onClosestScroll, scheduleScrollUpdate]);
10579
10668
  var scroll = useCallback(function (change) {
10580
10669
  var dragging = whileDraggingRef.current;
10581
- !dragging ? invariant(false, 'Cannot scroll when there is no drag') : void 0;
10670
+ !dragging ? invariant$1(false, 'Cannot scroll when there is no drag') : void 0;
10582
10671
  var closest = getClosestScrollableFromDrag(dragging);
10583
- !closest ? invariant(false, 'Cannot scroll a droppable with no closest scrollable') : void 0;
10672
+ !closest ? invariant$1(false, 'Cannot scroll a droppable with no closest scrollable') : void 0;
10584
10673
  closest.scrollTop += change.y;
10585
10674
  closest.scrollLeft += change.x;
10586
10675
  }, []);
@@ -10599,26 +10688,26 @@
10599
10688
  callbacks: callbacks
10600
10689
  };
10601
10690
  }, [callbacks, descriptor, uniqueId]);
10602
- useIsomorphicLayoutEffect$1(function () {
10691
+ useLayoutEffect(function () {
10603
10692
  publishedDescriptorRef.current = entry.descriptor;
10604
10693
  registry.droppable.register(entry);
10605
10694
  return function () {
10606
10695
  if (whileDraggingRef.current) {
10607
- warning('Unsupported: changing the droppableId or type of a Droppable during a drag') ;
10696
+ warning$2('Unsupported: changing the droppableId or type of a Droppable during a drag') ;
10608
10697
  dragStopped();
10609
10698
  }
10610
10699
 
10611
10700
  registry.droppable.unregister(entry);
10612
10701
  };
10613
10702
  }, [callbacks, descriptor, dragStopped, entry, marshal, registry.droppable]);
10614
- useIsomorphicLayoutEffect$1(function () {
10703
+ useLayoutEffect(function () {
10615
10704
  if (!whileDraggingRef.current) {
10616
10705
  return;
10617
10706
  }
10618
10707
 
10619
10708
  marshal.updateDroppableIsEnabled(publishedDescriptorRef.current.id, !args.isDropDisabled);
10620
10709
  }, [args.isDropDisabled, marshal]);
10621
- useIsomorphicLayoutEffect$1(function () {
10710
+ useLayoutEffect(function () {
10622
10711
  if (!whileDraggingRef.current) {
10623
10712
  return;
10624
10713
  }
@@ -10627,12 +10716,12 @@
10627
10716
  }, [args.isCombineEnabled, marshal]);
10628
10717
  }
10629
10718
 
10630
- function noop$2() {}
10719
+ function noop() {}
10631
10720
 
10632
10721
  var empty = {
10633
10722
  width: 0,
10634
10723
  height: 0,
10635
- margin: noSpacing$1
10724
+ margin: noSpacing
10636
10725
  };
10637
10726
 
10638
10727
  var getSize = function getSize(_ref) {
@@ -10655,7 +10744,7 @@
10655
10744
  };
10656
10745
  };
10657
10746
 
10658
- var getStyle = function getStyle(_ref2) {
10747
+ var getStyle$1 = function getStyle(_ref2) {
10659
10748
  var isAnimatingOpenOnMount = _ref2.isAnimatingOpenOnMount,
10660
10749
  placeholder = _ref2.placeholder,
10661
10750
  animate = _ref2.animate;
@@ -10701,17 +10790,17 @@
10701
10790
 
10702
10791
  React.useEffect(function () {
10703
10792
  if (!isAnimatingOpenOnMount) {
10704
- return noop$2;
10793
+ return noop;
10705
10794
  }
10706
10795
 
10707
10796
  if (animate !== 'open') {
10708
10797
  tryClearAnimateOpenTimer();
10709
10798
  setIsAnimatingOpenOnMount(false);
10710
- return noop$2;
10799
+ return noop;
10711
10800
  }
10712
10801
 
10713
10802
  if (animateOpenTimerRef.current) {
10714
- return noop$2;
10803
+ return noop;
10715
10804
  }
10716
10805
 
10717
10806
  animateOpenTimerRef.current = setTimeout(function () {
@@ -10731,12 +10820,12 @@
10731
10820
  onClose();
10732
10821
  }
10733
10822
  }, [animate, onClose, onTransitionEnd]);
10734
- var style = getStyle({
10823
+ var style = getStyle$1({
10735
10824
  isAnimatingOpenOnMount: isAnimatingOpenOnMount,
10736
10825
  animate: props.animate,
10737
10826
  placeholder: props.placeholder
10738
10827
  });
10739
- return React__default.createElement(props.placeholder.tagName, {
10828
+ return React.createElement(props.placeholder.tagName, {
10740
10829
  style: style,
10741
10830
  'data-rbd-placeholder-context-id': contextId,
10742
10831
  onTransitionEnd: onSizeChangeEnd,
@@ -10744,12 +10833,12 @@
10744
10833
  });
10745
10834
  }
10746
10835
 
10747
- var Placeholder$1 = React__default.memo(Placeholder);
10836
+ var Placeholder$1 = React.memo(Placeholder);
10748
10837
 
10749
- var DroppableContext = React__default.createContext(null);
10838
+ var DroppableContext = React.createContext(null);
10750
10839
 
10751
10840
  function checkIsValidInnerRef(el) {
10752
- !(el && isHtmlElement(el)) ? invariant(false, "\n provided.innerRef has not been provided with a HTMLElement.\n\n You can find a guide on using the innerRef callback functions at:\n https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/using-inner-ref.md\n ") : void 0;
10841
+ !(el && isHtmlElement(el)) ? invariant$1(false, "\n provided.innerRef has not been provided with a HTMLElement.\n\n You can find a guide on using the innerRef callback functions at:\n https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/using-inner-ref.md\n ") : void 0;
10753
10842
  }
10754
10843
 
10755
10844
  function isBoolean(value) {
@@ -10764,13 +10853,13 @@
10764
10853
 
10765
10854
  var shared = [function required(_ref) {
10766
10855
  var props = _ref.props;
10767
- !props.droppableId ? invariant(false, 'A Droppable requires a droppableId prop') : void 0;
10768
- !(typeof props.droppableId === 'string') ? invariant(false, "A Droppable requires a [string] droppableId. Provided: [" + typeof props.droppableId + "]") : void 0;
10856
+ !props.droppableId ? invariant$1(false, 'A Droppable requires a droppableId prop') : void 0;
10857
+ !(typeof props.droppableId === 'string') ? invariant$1(false, "A Droppable requires a [string] droppableId. Provided: [" + typeof props.droppableId + "]") : void 0;
10769
10858
  }, function _boolean(_ref2) {
10770
10859
  var props = _ref2.props;
10771
- !isBoolean(props.isDropDisabled) ? invariant(false, 'isDropDisabled must be a boolean') : void 0;
10772
- !isBoolean(props.isCombineEnabled) ? invariant(false, 'isCombineEnabled must be a boolean') : void 0;
10773
- !isBoolean(props.ignoreContainerClipping) ? invariant(false, 'ignoreContainerClipping must be a boolean') : void 0;
10860
+ !isBoolean(props.isDropDisabled) ? invariant$1(false, 'isDropDisabled must be a boolean') : void 0;
10861
+ !isBoolean(props.isCombineEnabled) ? invariant$1(false, 'isCombineEnabled must be a boolean') : void 0;
10862
+ !isBoolean(props.ignoreContainerClipping) ? invariant$1(false, 'ignoreContainerClipping must be a boolean') : void 0;
10774
10863
  }, function ref(_ref3) {
10775
10864
  var getDroppableRef = _ref3.getDroppableRef;
10776
10865
  checkIsValidInnerRef(getDroppableRef());
@@ -10789,16 +10878,16 @@
10789
10878
  return;
10790
10879
  }
10791
10880
 
10792
- warning("\n Droppable setup issue [droppableId: \"" + props.droppableId + "\"]:\n DroppableProvided > placeholder could not be found.\n\n Please be sure to add the {provided.placeholder} React Node as a child of your Droppable.\n More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/api/droppable.md\n ") ;
10881
+ warning$2("\n Droppable setup issue [droppableId: \"" + props.droppableId + "\"]:\n DroppableProvided > placeholder could not be found.\n\n Please be sure to add the {provided.placeholder} React Node as a child of your Droppable.\n More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/api/droppable.md\n ") ;
10793
10882
  }];
10794
10883
  var virtual = [function hasClone(_ref5) {
10795
10884
  var props = _ref5.props;
10796
- !props.renderClone ? invariant(false, 'Must provide a clone render function (renderClone) for virtual lists') : void 0;
10885
+ !props.renderClone ? invariant$1(false, 'Must provide a clone render function (renderClone) for virtual lists') : void 0;
10797
10886
  }, function hasNoPlaceholder(_ref6) {
10798
10887
  var getPlaceholderRef = _ref6.getPlaceholderRef;
10799
- !!getPlaceholderRef() ? invariant(false, 'Expected virtual list to not have a placeholder') : void 0;
10888
+ !!getPlaceholderRef() ? invariant$1(false, 'Expected virtual list to not have a placeholder') : void 0;
10800
10889
  }];
10801
- function useValidation(args) {
10890
+ function useValidation$1(args) {
10802
10891
  useDevSetupWarning(function () {
10803
10892
  runChecks(args, shared);
10804
10893
 
@@ -10890,7 +10979,7 @@
10890
10979
  };
10891
10980
 
10892
10981
  return AnimateInOut;
10893
- }(React__default.PureComponent);
10982
+ }(React.PureComponent);
10894
10983
 
10895
10984
  var zIndexOptions = {
10896
10985
  dragging: 5000,
@@ -10958,11 +11047,11 @@
10958
11047
  };
10959
11048
  }
10960
11049
 
10961
- function getStyle$1(mapped) {
11050
+ function getStyle(mapped) {
10962
11051
  return mapped.type === 'DRAGGING' ? getDraggingStyle(mapped) : getSecondaryStyle(mapped);
10963
11052
  }
10964
11053
 
10965
- function getDimension$1(descriptor, el, windowScroll) {
11054
+ function getDimension(descriptor, el, windowScroll) {
10966
11055
  if (windowScroll === void 0) {
10967
11056
  windowScroll = origin;
10968
11057
  }
@@ -11005,28 +11094,28 @@
11005
11094
  isEnabled: isEnabled
11006
11095
  };
11007
11096
  }, [canDragInteractiveElements, isEnabled, shouldRespectForcePress]);
11008
- var getDimension = useCallback(function (windowScroll) {
11097
+ var getDimension$1 = useCallback(function (windowScroll) {
11009
11098
  var el = getDraggableRef();
11010
- !el ? invariant(false, 'Cannot get dimension when no ref is set') : void 0;
11011
- return getDimension$1(descriptor, el, windowScroll);
11099
+ !el ? invariant$1(false, 'Cannot get dimension when no ref is set') : void 0;
11100
+ return getDimension(descriptor, el, windowScroll);
11012
11101
  }, [descriptor, getDraggableRef]);
11013
11102
  var entry = useMemo(function () {
11014
11103
  return {
11015
11104
  uniqueId: uniqueId,
11016
11105
  descriptor: descriptor,
11017
11106
  options: options,
11018
- getDimension: getDimension
11107
+ getDimension: getDimension$1
11019
11108
  };
11020
- }, [descriptor, getDimension, options, uniqueId]);
11109
+ }, [descriptor, getDimension$1, options, uniqueId]);
11021
11110
  var publishedRef = React.useRef(entry);
11022
11111
  var isFirstPublishRef = React.useRef(true);
11023
- useIsomorphicLayoutEffect$1(function () {
11112
+ useLayoutEffect(function () {
11024
11113
  registry.draggable.register(publishedRef.current);
11025
11114
  return function () {
11026
11115
  return registry.draggable.unregister(publishedRef.current);
11027
11116
  };
11028
11117
  }, [registry.draggable]);
11029
- useIsomorphicLayoutEffect$1(function () {
11118
+ useLayoutEffect(function () {
11030
11119
  if (isFirstPublishRef.current) {
11031
11120
  isFirstPublishRef.current = false;
11032
11121
  return;
@@ -11038,16 +11127,16 @@
11038
11127
  }, [entry, registry.draggable]);
11039
11128
  }
11040
11129
 
11041
- function useValidation$1(props, contextId, getRef) {
11130
+ function useValidation(props, contextId, getRef) {
11042
11131
  useDevSetupWarning(function () {
11043
11132
  function prefix(id) {
11044
11133
  return "Draggable[id: " + id + "]: ";
11045
11134
  }
11046
11135
 
11047
11136
  var id = props.draggableId;
11048
- !id ? "development" !== "production" ? invariant(false, 'Draggable requires a draggableId') : invariant(false) : void 0;
11049
- !(typeof id === 'string') ? "development" !== "production" ? invariant(false, "Draggable requires a [string] draggableId.\n Provided: [type: " + typeof id + "] (value: " + id + ")") : invariant(false) : void 0;
11050
- !isInteger(props.index) ? "development" !== "production" ? invariant(false, prefix(id) + " requires an integer index prop") : invariant(false) : void 0;
11137
+ !id ? "development" !== "production" ? invariant$1(false, 'Draggable requires a draggableId') : invariant$1(false) : void 0;
11138
+ !(typeof id === 'string') ? "development" !== "production" ? invariant$1(false, "Draggable requires a [string] draggableId.\n Provided: [type: " + typeof id + "] (value: " + id + ")") : invariant$1(false) : void 0;
11139
+ !isInteger(props.index) ? "development" !== "production" ? invariant$1(false, prefix(id) + " requires an integer index prop") : invariant$1(false) : void 0;
11051
11140
 
11052
11141
  if (props.mapped.type === 'DRAGGING') {
11053
11142
  return;
@@ -11056,7 +11145,7 @@
11056
11145
  checkIsValidInnerRef(getRef());
11057
11146
 
11058
11147
  if (props.isEnabled) {
11059
- !findDragHandle(contextId, id) ? "development" !== "production" ? invariant(false, prefix(id) + " Unable to find drag handle") : invariant(false) : void 0;
11148
+ !findDragHandle(contextId, id) ? "development" !== "production" ? invariant$1(false, prefix(id) + " Unable to find drag handle") : invariant$1(false) : void 0;
11060
11149
  }
11061
11150
  });
11062
11151
  }
@@ -11064,7 +11153,7 @@
11064
11153
  useDev(function () {
11065
11154
  var initialRef = React.useRef(isClone);
11066
11155
  useDevSetupWarning(function () {
11067
- !(isClone === initialRef.current) ? "development" !== "production" ? invariant(false, 'Draggable isClone prop value changed during component life') : invariant(false) : void 0;
11156
+ !(isClone === initialRef.current) ? "development" !== "production" ? invariant$1(false, 'Draggable isClone prop value changed during component life') : invariant$1(false) : void 0;
11068
11157
  }, [isClone]);
11069
11158
  });
11070
11159
  }
@@ -11107,7 +11196,7 @@
11107
11196
  isClone = props.isClone,
11108
11197
  mapped = props.mapped,
11109
11198
  dropAnimationFinishedAction = props.dropAnimationFinished;
11110
- useValidation$1(props, contextId, getRef);
11199
+ useValidation(props, contextId, getRef);
11111
11200
  useClonePropValidation(isClone);
11112
11201
 
11113
11202
  if (!isClone) {
@@ -11151,7 +11240,7 @@
11151
11240
  dropAnimationFinishedAction();
11152
11241
  }, [dropAnimationFinishedAction, mapped]);
11153
11242
  var provided = useMemo(function () {
11154
- var style = getStyle$1(mapped);
11243
+ var style = getStyle(mapped);
11155
11244
  var onTransitionEnd = mapped.type === 'DRAGGING' && mapped.dropping ? onMoveEnd : null;
11156
11245
  var result = {
11157
11246
  innerRef: setRef,
@@ -11406,7 +11495,7 @@
11406
11495
  return selector;
11407
11496
  }
11408
11497
 
11409
- var makeMapStateToProps = function makeMapStateToProps() {
11498
+ var makeMapStateToProps$1 = function makeMapStateToProps() {
11410
11499
  var draggingSelector = getDraggableSelector();
11411
11500
  var secondarySelector = getSecondarySelector();
11412
11501
 
@@ -11416,14 +11505,15 @@
11416
11505
 
11417
11506
  return selector;
11418
11507
  };
11419
- var mapDispatchToProps = {
11508
+ var mapDispatchToProps$1 = {
11420
11509
  dropAnimationFinished: dropAnimationFinished
11421
11510
  };
11422
- var ConnectedDraggable = connect(makeMapStateToProps, mapDispatchToProps, null, {
11511
+ var ConnectedDraggable = connect(makeMapStateToProps$1, mapDispatchToProps$1, null, {
11423
11512
  context: StoreContext,
11424
11513
  pure: true,
11425
11514
  areStatePropsEqual: isStrictEqual
11426
11515
  })(Draggable);
11516
+ var ConnectedDraggable$1 = ConnectedDraggable;
11427
11517
 
11428
11518
  function PrivateDraggable(props) {
11429
11519
  var droppableContext = useRequiredContext(DroppableContext);
@@ -11433,13 +11523,13 @@
11433
11523
  return null;
11434
11524
  }
11435
11525
 
11436
- return React__default.createElement(ConnectedDraggable, props);
11526
+ return React.createElement(ConnectedDraggable$1, props);
11437
11527
  }
11438
11528
  function PublicDraggable(props) {
11439
11529
  var isEnabled = typeof props.isDragDisabled === 'boolean' ? !props.isDragDisabled : true;
11440
11530
  var canDragInteractiveElements = Boolean(props.disableInteractiveElementBlocking);
11441
11531
  var shouldRespectForcePress = Boolean(props.shouldRespectForcePress);
11442
- return React__default.createElement(PrivateDraggable, _extends({}, props, {
11532
+ return React.createElement(PrivateDraggable, _extends$1({}, props, {
11443
11533
  isClone: false,
11444
11534
  isEnabled: isEnabled,
11445
11535
  canDragInteractiveElements: canDragInteractiveElements,
@@ -11449,7 +11539,7 @@
11449
11539
 
11450
11540
  function Droppable(props) {
11451
11541
  var appContext = React.useContext(AppContext);
11452
- !appContext ? invariant(false, 'Could not find app context') : void 0;
11542
+ !appContext ? invariant$1(false, 'Could not find app context') : void 0;
11453
11543
  var contextId = appContext.contextId,
11454
11544
  isMovementAllowed = appContext.isMovementAllowed;
11455
11545
  var droppableRef = React.useRef(null);
@@ -11478,7 +11568,7 @@
11478
11568
  var setPlaceholderRef = useCallback(function (value) {
11479
11569
  placeholderRef.current = value;
11480
11570
  }, []);
11481
- useValidation({
11571
+ useValidation$1({
11482
11572
  props: props,
11483
11573
  getDroppableRef: getDroppableRef,
11484
11574
  getPlaceholderRef: getPlaceholderRef
@@ -11500,14 +11590,14 @@
11500
11590
  ignoreContainerClipping: ignoreContainerClipping,
11501
11591
  getDroppableRef: getDroppableRef
11502
11592
  });
11503
- var placeholder = React__default.createElement(AnimateInOut, {
11593
+ var placeholder = React.createElement(AnimateInOut, {
11504
11594
  on: props.placeholder,
11505
11595
  shouldAnimate: props.shouldAnimatePlaceholder
11506
11596
  }, function (_ref) {
11507
11597
  var onClose = _ref.onClose,
11508
11598
  data = _ref.data,
11509
11599
  animate = _ref.animate;
11510
- return React__default.createElement(Placeholder$1, {
11600
+ return React.createElement(Placeholder$1, {
11511
11601
  placeholder: data,
11512
11602
  onClose: onClose,
11513
11603
  innerRef: setPlaceholderRef,
@@ -11542,7 +11632,7 @@
11542
11632
 
11543
11633
  var dragging = useClone.dragging,
11544
11634
  render = useClone.render;
11545
- var node = React__default.createElement(PrivateDraggable, {
11635
+ var node = React.createElement(PrivateDraggable, {
11546
11636
  draggableId: dragging.draggableId,
11547
11637
  index: dragging.source.index,
11548
11638
  isClone: true,
@@ -11552,14 +11642,46 @@
11552
11642
  }, function (draggableProvided, draggableSnapshot) {
11553
11643
  return render(draggableProvided, draggableSnapshot, dragging);
11554
11644
  });
11555
- return ReactDOM__default.createPortal(node, getContainerForClone());
11645
+ return ReactDOM.createPortal(node, getContainerForClone());
11556
11646
  }
11557
11647
 
11558
- return React__default.createElement(DroppableContext.Provider, {
11648
+ return React.createElement(DroppableContext.Provider, {
11559
11649
  value: droppableContext
11560
11650
  }, children(provided, snapshot), getClone());
11561
11651
  }
11562
11652
 
11653
+ function getBody() {
11654
+ !document.body ? invariant$1(false, 'document.body is not ready') : void 0;
11655
+ return document.body;
11656
+ }
11657
+
11658
+ var defaultProps = {
11659
+ mode: 'standard',
11660
+ type: 'DEFAULT',
11661
+ direction: 'vertical',
11662
+ isDropDisabled: false,
11663
+ isCombineEnabled: false,
11664
+ ignoreContainerClipping: false,
11665
+ renderClone: null,
11666
+ getContainerForClone: getBody
11667
+ };
11668
+
11669
+ var attachDefaultPropsToOwnProps = function attachDefaultPropsToOwnProps(ownProps) {
11670
+ var mergedProps = _extends$1({}, ownProps);
11671
+
11672
+ var defaultPropKey;
11673
+
11674
+ for (defaultPropKey in defaultProps) {
11675
+ if (ownProps[defaultPropKey] === undefined) {
11676
+ var _extends2;
11677
+
11678
+ mergedProps = _extends$1({}, mergedProps, (_extends2 = {}, _extends2[defaultPropKey] = defaultProps[defaultPropKey], _extends2));
11679
+ }
11680
+ }
11681
+
11682
+ return mergedProps;
11683
+ };
11684
+
11563
11685
  var isMatchingType = function isMatchingType(type, critical) {
11564
11686
  return type === critical.droppable.type;
11565
11687
  };
@@ -11568,7 +11690,7 @@
11568
11690
  return dimensions.draggables[critical.draggable.id];
11569
11691
  };
11570
11692
 
11571
- var makeMapStateToProps$1 = function makeMapStateToProps() {
11693
+ var makeMapStateToProps = function makeMapStateToProps() {
11572
11694
  var idleWithAnimation = {
11573
11695
  placeholder: null,
11574
11696
  shouldAnimatePlaceholder: true,
@@ -11581,7 +11703,7 @@
11581
11703
  useClone: null
11582
11704
  };
11583
11705
 
11584
- var idleWithoutAnimation = _extends({}, idleWithAnimation, {
11706
+ var idleWithoutAnimation = _extends$1({}, idleWithAnimation, {
11585
11707
  shouldAnimatePlaceholder: false
11586
11708
  });
11587
11709
 
@@ -11641,10 +11763,11 @@
11641
11763
  });
11642
11764
 
11643
11765
  var selector = function selector(state, ownProps) {
11644
- var id = ownProps.droppableId;
11645
- var type = ownProps.type;
11646
- var isEnabled = !ownProps.isDropDisabled;
11647
- var renderClone = ownProps.renderClone;
11766
+ var ownPropsWithDefaultProps = attachDefaultPropsToOwnProps(ownProps);
11767
+ var id = ownPropsWithDefaultProps.droppableId;
11768
+ var type = ownPropsWithDefaultProps.type;
11769
+ var isEnabled = !ownPropsWithDefaultProps.isDropDisabled;
11770
+ var renderClone = ownPropsWithDefaultProps.renderClone;
11648
11771
 
11649
11772
  if (state.isDragging) {
11650
11773
  var critical = state.critical;
@@ -11697,40 +11820,24 @@
11697
11820
 
11698
11821
  return selector;
11699
11822
  };
11700
- var mapDispatchToProps$1 = {
11823
+ var mapDispatchToProps = {
11701
11824
  updateViewportMaxScroll: updateViewportMaxScroll
11702
11825
  };
11703
-
11704
- function getBody() {
11705
- !document.body ? invariant(false, 'document.body is not ready') : void 0;
11706
- return document.body;
11707
- }
11708
-
11709
- var defaultProps = {
11710
- mode: 'standard',
11711
- type: 'DEFAULT',
11712
- direction: 'vertical',
11713
- isDropDisabled: false,
11714
- isCombineEnabled: false,
11715
- ignoreContainerClipping: false,
11716
- renderClone: null,
11717
- getContainerForClone: getBody
11718
- };
11719
- var ConnectedDroppable = connect(makeMapStateToProps$1, mapDispatchToProps$1, null, {
11826
+ var ConnectedDroppable = connect(makeMapStateToProps, mapDispatchToProps, function (stateProps, dispatchProps, ownProps) {
11827
+ return _extends$1({}, attachDefaultPropsToOwnProps(ownProps), {}, stateProps, {}, dispatchProps);
11828
+ }, {
11720
11829
  context: StoreContext,
11721
11830
  pure: true,
11722
11831
  areStatePropsEqual: isStrictEqual
11723
11832
  })(Droppable);
11724
- ConnectedDroppable.defaultProps = defaultProps;
11833
+ var ConnectedDroppable$1 = ConnectedDroppable;
11725
11834
 
11726
11835
  exports.DragDropContext = DragDropContext;
11727
11836
  exports.Draggable = PublicDraggable;
11728
- exports.Droppable = ConnectedDroppable;
11837
+ exports.Droppable = ConnectedDroppable$1;
11729
11838
  exports.resetServerContext = resetServerContext;
11730
11839
  exports.useKeyboardSensor = useKeyboardSensor;
11731
11840
  exports.useMouseSensor = useMouseSensor;
11732
11841
  exports.useTouchSensor = useTouchSensor;
11733
11842
 
11734
- Object.defineProperty(exports, '__esModule', { value: true });
11735
-
11736
- })));
11843
+ }));