@geneui/components 2.11.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.
Files changed (154) hide show
  1. package/ActionableList.js +1761 -0
  2. package/AdvancedSearch.js +872 -0
  3. package/Alert.js +98 -0
  4. package/Avatar.js +77 -0
  5. package/Badge.js +76 -0
  6. package/Breadcrumb.js +128 -0
  7. package/BusyLoader.js +69 -0
  8. package/Button.js +130 -0
  9. package/CHANGELOG.md +424 -0
  10. package/Card.js +513 -0
  11. package/CardList.js +705 -0
  12. package/CellMeasurerCache-c11cec83.js +229 -0
  13. package/Charts.js +99 -0
  14. package/Checkbox.js +232 -0
  15. package/CheckboxGroup.js +206 -0
  16. package/CheckboxGroupWithSearch.js +279 -0
  17. package/Collapse.js +196 -0
  18. package/ColorPicker.js +210 -0
  19. package/ComboBox.js +99 -0
  20. package/Counter.js +99 -0
  21. package/DateFilter.js +179 -0
  22. package/DatePicker.js +1231 -0
  23. package/DatePickerInput.js +30 -0
  24. package/Divider.js +56 -0
  25. package/Drawer.js +264 -0
  26. package/Dropdown.js +99 -0
  27. package/Editor.js +22965 -0
  28. package/Empty.js +132 -0
  29. package/ExtendedInput.js +578 -0
  30. package/Form.js +116 -0
  31. package/FormContainer.js +189 -0
  32. package/FormableCheckbox.js +27 -0
  33. package/FormableDatePicker.js +39 -0
  34. package/FormableDropdown.js +105 -0
  35. package/FormableEditor.js +24 -0
  36. package/FormableHOC-21051057.js +83 -0
  37. package/FormableMultiSelectDropdown.js +105 -0
  38. package/FormableNumberInput.js +31 -0
  39. package/FormableRadio.js +23 -0
  40. package/FormableSwitcher.js +23 -0
  41. package/FormableTextInput.js +31 -0
  42. package/FormableUploader.js +40 -0
  43. package/GeneUIProvider.js +256 -0
  44. package/Grid.js +166 -0
  45. package/Holder.js +99 -0
  46. package/Icon.js +63 -0
  47. package/Image.js +130 -0
  48. package/ImagePreview.js +99 -0
  49. package/KeyValue.js +63 -0
  50. package/Label.js +58 -0
  51. package/LinkButton.js +104 -0
  52. package/Menu.js +277 -0
  53. package/MobileNavigation.js +95 -0
  54. package/MobilePopup.js +180 -0
  55. package/Modal.js +251 -0
  56. package/ModuleTitle.js +99 -0
  57. package/NavigationMenu.js +212 -0
  58. package/Notification.js +120 -0
  59. package/Option.js +186 -0
  60. package/Overlay.js +99 -0
  61. package/Overspread.js +343 -0
  62. package/Pagination.js +258 -0
  63. package/Paper.js +97 -0
  64. package/Popover-f4d1cac0.js +411 -0
  65. package/Popover.js +20 -0
  66. package/PopoverV2.js +19 -0
  67. package/Portal.js +58 -0
  68. package/Products.js +115 -0
  69. package/Profile.js +99 -0
  70. package/Progress.js +200 -0
  71. package/QRCode.js +816 -0
  72. package/README.md +90 -0
  73. package/Radio.js +152 -0
  74. package/RadioGroup.js +105 -0
  75. package/Range.js +14 -0
  76. package/RichEditor-b7928765.js +228 -0
  77. package/RichEditor.js +13 -0
  78. package/Scrollbar.js +1587 -0
  79. package/Search.js +72 -0
  80. package/SearchWithDropdown.js +195 -0
  81. package/Section.js +62 -0
  82. package/SkeletonLoader.js +82 -0
  83. package/Slider.js +256 -0
  84. package/Status.js +104 -0
  85. package/Steps.js +312 -0
  86. package/SuggestionList.js +15 -0
  87. package/Switcher.js +194 -0
  88. package/Table.js +102 -0
  89. package/TableCompositions.js +17028 -0
  90. package/Tabs.js +236 -0
  91. package/Tag.js +103 -0
  92. package/TextLink.js +22 -0
  93. package/Textarea.js +239 -0
  94. package/Time.js +63 -0
  95. package/TimePicker.js +99 -0
  96. package/Timeline.js +114 -0
  97. package/Title.js +66 -0
  98. package/Toaster.js +116 -0
  99. package/Tooltip.js +157 -0
  100. package/TransferList.js +502 -0
  101. package/Uploader.js +32 -0
  102. package/ValidatableCheckbox.js +126 -0
  103. package/ValidatableDatePicker.js +312 -0
  104. package/ValidatableDropdown.js +99 -0
  105. package/ValidatableElements.js +99 -0
  106. package/ValidatableMultiSelectDropdown.js +99 -0
  107. package/ValidatableNumberInput.js +194 -0
  108. package/ValidatableRadio.js +117 -0
  109. package/ValidatableSwitcher.js +94 -0
  110. package/ValidatableTextInput.js +164 -0
  111. package/ValidatableTimeInput.js +171 -0
  112. package/ValidatableUploader.js +94 -0
  113. package/Widget.js +99 -0
  114. package/_commonjsHelpers-24198af3.js +35 -0
  115. package/_rollupPluginBabelHelpers-e8fb2e5c.js +16 -0
  116. package/checkTimeValidation-e56771be.js +16 -0
  117. package/checkboxRadioSwitcher-5b69d7bd.js +4 -0
  118. package/clsx.m-2bb6df4b.js +3 -0
  119. package/configs-91c86664.js +96 -0
  120. package/configs.js +131 -0
  121. package/dateValidation-67caec66.js +225 -0
  122. package/debounce-4419bc2f.js +17 -0
  123. package/globalStyling-9c60a159.js +4 -0
  124. package/guid-8ddf77b3.js +16 -0
  125. package/index-00fe8887.js +193 -0
  126. package/index-0cf65939.js +30991 -0
  127. package/index-122432cd.js +270 -0
  128. package/index-262edd7a.js +77 -0
  129. package/index-5cea9a7d.js +407 -0
  130. package/index-5e722d91.js +867 -0
  131. package/index-67f4d4d1.js +6568 -0
  132. package/index-6ff23041.js +66 -0
  133. package/index-702bf24a.js +1938 -0
  134. package/index-a4635754.js +329 -0
  135. package/index-a59530cd.js +4 -0
  136. package/index-ac59cb10.js +169 -0
  137. package/index-b7a33c58.js +11 -0
  138. package/index-d9e8a888.js +987 -0
  139. package/index-e0af0caf.js +1182 -0
  140. package/index-e8776f3d.js +807 -0
  141. package/index.js +128 -0
  142. package/localization-4ba17032.js +46 -0
  143. package/objectWithoutPropertiesLoose-299691d8.js +78 -0
  144. package/package.json +190 -0
  145. package/rangeAndSlider-20599da4.js +8839 -0
  146. package/react-beautiful-dnd.esm-38c37304.js +10117 -0
  147. package/style-inject.es-746bb8ed.js +28 -0
  148. package/useClickOutside-5183e396.js +25 -0
  149. package/useDeviceType-dd51db38.js +15 -0
  150. package/useEllipsisDetection-ef536015.js +23 -0
  151. package/useKeyDown-38102ae7.js +21 -0
  152. package/useMount-6fef51a5.js +9 -0
  153. package/useWidth-9f4647f8.js +15 -0
  154. package/useWindowSize-80369d76.js +33 -0
@@ -0,0 +1,807 @@
1
+ import { _ as _defineProperty } from './objectWithoutPropertiesLoose-299691d8.js';
2
+
3
+ function ownKeys(e, r) {
4
+ var t = Object.keys(e);
5
+ if (Object.getOwnPropertySymbols) {
6
+ var o = Object.getOwnPropertySymbols(e);
7
+ r && (o = o.filter(function (r) {
8
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
9
+ })), t.push.apply(t, o);
10
+ }
11
+ return t;
12
+ }
13
+ function _objectSpread2(e) {
14
+ for (var r = 1; r < arguments.length; r++) {
15
+ var t = null != arguments[r] ? arguments[r] : {};
16
+ r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
17
+ _defineProperty(e, r, t[r]);
18
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
19
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
20
+ });
21
+ }
22
+ return e;
23
+ }
24
+
25
+ /**
26
+ * Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js
27
+ *
28
+ * Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes
29
+ * during build.
30
+ * @param {number} code
31
+ */
32
+ function formatProdErrorMessage(code) {
33
+ return "Minified Redux error #" + code + "; visit https://redux.js.org/Errors?code=" + code + " for the full message or " + 'use the non-minified dev environment for full errors. ';
34
+ }
35
+
36
+ // Inlined version of the `symbol-observable` polyfill
37
+ var $$observable = (function () {
38
+ return typeof Symbol === 'function' && Symbol.observable || '@@observable';
39
+ })();
40
+
41
+ /**
42
+ * These are private action types reserved by Redux.
43
+ * For any unknown actions, you must return the current state.
44
+ * If the current state is undefined, you must return the initial state.
45
+ * Do not reference these action types directly in your code.
46
+ */
47
+ var randomString = function randomString() {
48
+ return Math.random().toString(36).substring(7).split('').join('.');
49
+ };
50
+
51
+ var ActionTypes = {
52
+ INIT: "@@redux/INIT" + randomString(),
53
+ REPLACE: "@@redux/REPLACE" + randomString(),
54
+ PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() {
55
+ return "@@redux/PROBE_UNKNOWN_ACTION" + randomString();
56
+ }
57
+ };
58
+
59
+ /**
60
+ * @param {any} obj The object to inspect.
61
+ * @returns {boolean} True if the argument appears to be a plain object.
62
+ */
63
+ function isPlainObject(obj) {
64
+ if (typeof obj !== 'object' || obj === null) return false;
65
+ var proto = obj;
66
+
67
+ while (Object.getPrototypeOf(proto) !== null) {
68
+ proto = Object.getPrototypeOf(proto);
69
+ }
70
+
71
+ return Object.getPrototypeOf(obj) === proto;
72
+ }
73
+
74
+ // Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of
75
+ function miniKindOf(val) {
76
+ if (val === void 0) return 'undefined';
77
+ if (val === null) return 'null';
78
+ var type = typeof val;
79
+
80
+ switch (type) {
81
+ case 'boolean':
82
+ case 'string':
83
+ case 'number':
84
+ case 'symbol':
85
+ case 'function':
86
+ {
87
+ return type;
88
+ }
89
+ }
90
+
91
+ if (Array.isArray(val)) return 'array';
92
+ if (isDate(val)) return 'date';
93
+ if (isError(val)) return 'error';
94
+ var constructorName = ctorName(val);
95
+
96
+ switch (constructorName) {
97
+ case 'Symbol':
98
+ case 'Promise':
99
+ case 'WeakMap':
100
+ case 'WeakSet':
101
+ case 'Map':
102
+ case 'Set':
103
+ return constructorName;
104
+ } // other
105
+
106
+
107
+ return type.slice(8, -1).toLowerCase().replace(/\s/g, '');
108
+ }
109
+
110
+ function ctorName(val) {
111
+ return typeof val.constructor === 'function' ? val.constructor.name : null;
112
+ }
113
+
114
+ function isError(val) {
115
+ return val instanceof Error || typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number';
116
+ }
117
+
118
+ function isDate(val) {
119
+ if (val instanceof Date) return true;
120
+ return typeof val.toDateString === 'function' && typeof val.getDate === 'function' && typeof val.setDate === 'function';
121
+ }
122
+
123
+ function kindOf(val) {
124
+ var typeOfVal = typeof val;
125
+
126
+ if (process.env.NODE_ENV !== 'production') {
127
+ typeOfVal = miniKindOf(val);
128
+ }
129
+
130
+ return typeOfVal;
131
+ }
132
+
133
+ /**
134
+ * @deprecated
135
+ *
136
+ * **We recommend using the `configureStore` method
137
+ * of the `@reduxjs/toolkit` package**, which replaces `createStore`.
138
+ *
139
+ * Redux Toolkit is our recommended approach for writing Redux logic today,
140
+ * including store setup, reducers, data fetching, and more.
141
+ *
142
+ * **For more details, please read this Redux docs page:**
143
+ * **https://redux.js.org/introduction/why-rtk-is-redux-today**
144
+ *
145
+ * `configureStore` from Redux Toolkit is an improved version of `createStore` that
146
+ * simplifies setup and helps avoid common bugs.
147
+ *
148
+ * You should not be using the `redux` core package by itself today, except for learning purposes.
149
+ * The `createStore` method from the core `redux` package will not be removed, but we encourage
150
+ * all users to migrate to using Redux Toolkit for all Redux code.
151
+ *
152
+ * If you want to use `createStore` without this visual deprecation warning, use
153
+ * the `legacy_createStore` import instead:
154
+ *
155
+ * `import { legacy_createStore as createStore} from 'redux'`
156
+ *
157
+ */
158
+
159
+ function createStore(reducer, preloadedState, enhancer) {
160
+ var _ref2;
161
+
162
+ if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') {
163
+ throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(0) : 'It looks like you are passing several store enhancers to ' + 'createStore(). This is not supported. Instead, compose them ' + 'together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.');
164
+ }
165
+
166
+ if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {
167
+ enhancer = preloadedState;
168
+ preloadedState = undefined;
169
+ }
170
+
171
+ if (typeof enhancer !== 'undefined') {
172
+ if (typeof enhancer !== 'function') {
173
+ throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(1) : "Expected the enhancer to be a function. Instead, received: '" + kindOf(enhancer) + "'");
174
+ }
175
+
176
+ return enhancer(createStore)(reducer, preloadedState);
177
+ }
178
+
179
+ if (typeof reducer !== 'function') {
180
+ throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(2) : "Expected the root reducer to be a function. Instead, received: '" + kindOf(reducer) + "'");
181
+ }
182
+
183
+ var currentReducer = reducer;
184
+ var currentState = preloadedState;
185
+ var currentListeners = [];
186
+ var nextListeners = currentListeners;
187
+ var isDispatching = false;
188
+ /**
189
+ * This makes a shallow copy of currentListeners so we can use
190
+ * nextListeners as a temporary list while dispatching.
191
+ *
192
+ * This prevents any bugs around consumers calling
193
+ * subscribe/unsubscribe in the middle of a dispatch.
194
+ */
195
+
196
+ function ensureCanMutateNextListeners() {
197
+ if (nextListeners === currentListeners) {
198
+ nextListeners = currentListeners.slice();
199
+ }
200
+ }
201
+ /**
202
+ * Reads the state tree managed by the store.
203
+ *
204
+ * @returns {any} The current state tree of your application.
205
+ */
206
+
207
+
208
+ function getState() {
209
+ if (isDispatching) {
210
+ throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(3) : 'You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.');
211
+ }
212
+
213
+ return currentState;
214
+ }
215
+ /**
216
+ * Adds a change listener. It will be called any time an action is dispatched,
217
+ * and some part of the state tree may potentially have changed. You may then
218
+ * call `getState()` to read the current state tree inside the callback.
219
+ *
220
+ * You may call `dispatch()` from a change listener, with the following
221
+ * caveats:
222
+ *
223
+ * 1. The subscriptions are snapshotted just before every `dispatch()` call.
224
+ * If you subscribe or unsubscribe while the listeners are being invoked, this
225
+ * will not have any effect on the `dispatch()` that is currently in progress.
226
+ * However, the next `dispatch()` call, whether nested or not, will use a more
227
+ * recent snapshot of the subscription list.
228
+ *
229
+ * 2. The listener should not expect to see all state changes, as the state
230
+ * might have been updated multiple times during a nested `dispatch()` before
231
+ * the listener is called. It is, however, guaranteed that all subscribers
232
+ * registered before the `dispatch()` started will be called with the latest
233
+ * state by the time it exits.
234
+ *
235
+ * @param {Function} listener A callback to be invoked on every dispatch.
236
+ * @returns {Function} A function to remove this change listener.
237
+ */
238
+
239
+
240
+ function subscribe(listener) {
241
+ if (typeof listener !== 'function') {
242
+ throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(4) : "Expected the listener to be a function. Instead, received: '" + kindOf(listener) + "'");
243
+ }
244
+
245
+ if (isDispatching) {
246
+ throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(5) : 'You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.');
247
+ }
248
+
249
+ var isSubscribed = true;
250
+ ensureCanMutateNextListeners();
251
+ nextListeners.push(listener);
252
+ return function unsubscribe() {
253
+ if (!isSubscribed) {
254
+ return;
255
+ }
256
+
257
+ if (isDispatching) {
258
+ throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(6) : 'You may not unsubscribe from a store listener while the reducer is executing. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.');
259
+ }
260
+
261
+ isSubscribed = false;
262
+ ensureCanMutateNextListeners();
263
+ var index = nextListeners.indexOf(listener);
264
+ nextListeners.splice(index, 1);
265
+ currentListeners = null;
266
+ };
267
+ }
268
+ /**
269
+ * Dispatches an action. It is the only way to trigger a state change.
270
+ *
271
+ * The `reducer` function, used to create the store, will be called with the
272
+ * current state tree and the given `action`. Its return value will
273
+ * be considered the **next** state of the tree, and the change listeners
274
+ * will be notified.
275
+ *
276
+ * The base implementation only supports plain object actions. If you want to
277
+ * dispatch a Promise, an Observable, a thunk, or something else, you need to
278
+ * wrap your store creating function into the corresponding middleware. For
279
+ * example, see the documentation for the `redux-thunk` package. Even the
280
+ * middleware will eventually dispatch plain object actions using this method.
281
+ *
282
+ * @param {Object} action A plain object representing “what changed”. It is
283
+ * a good idea to keep actions serializable so you can record and replay user
284
+ * sessions, or use the time travelling `redux-devtools`. An action must have
285
+ * a `type` property which may not be `undefined`. It is a good idea to use
286
+ * string constants for action types.
287
+ *
288
+ * @returns {Object} For convenience, the same action object you dispatched.
289
+ *
290
+ * Note that, if you use a custom middleware, it may wrap `dispatch()` to
291
+ * return something else (for example, a Promise you can await).
292
+ */
293
+
294
+
295
+ function dispatch(action) {
296
+ if (!isPlainObject(action)) {
297
+ throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(7) : "Actions must be plain objects. Instead, the actual type was: '" + kindOf(action) + "'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");
298
+ }
299
+
300
+ if (typeof action.type === 'undefined') {
301
+ throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(8) : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
302
+ }
303
+
304
+ if (isDispatching) {
305
+ throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(9) : 'Reducers may not dispatch actions.');
306
+ }
307
+
308
+ try {
309
+ isDispatching = true;
310
+ currentState = currentReducer(currentState, action);
311
+ } finally {
312
+ isDispatching = false;
313
+ }
314
+
315
+ var listeners = currentListeners = nextListeners;
316
+
317
+ for (var i = 0; i < listeners.length; i++) {
318
+ var listener = listeners[i];
319
+ listener();
320
+ }
321
+
322
+ return action;
323
+ }
324
+ /**
325
+ * Replaces the reducer currently used by the store to calculate the state.
326
+ *
327
+ * You might need this if your app implements code splitting and you want to
328
+ * load some of the reducers dynamically. You might also need this if you
329
+ * implement a hot reloading mechanism for Redux.
330
+ *
331
+ * @param {Function} nextReducer The reducer for the store to use instead.
332
+ * @returns {void}
333
+ */
334
+
335
+
336
+ function replaceReducer(nextReducer) {
337
+ if (typeof nextReducer !== 'function') {
338
+ throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(10) : "Expected the nextReducer to be a function. Instead, received: '" + kindOf(nextReducer));
339
+ }
340
+
341
+ currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT.
342
+ // Any reducers that existed in both the new and old rootReducer
343
+ // will receive the previous state. This effectively populates
344
+ // the new state tree with any relevant data from the old one.
345
+
346
+ dispatch({
347
+ type: ActionTypes.REPLACE
348
+ });
349
+ }
350
+ /**
351
+ * Interoperability point for observable/reactive libraries.
352
+ * @returns {observable} A minimal observable of state changes.
353
+ * For more information, see the observable proposal:
354
+ * https://github.com/tc39/proposal-observable
355
+ */
356
+
357
+
358
+ function observable() {
359
+ var _ref;
360
+
361
+ var outerSubscribe = subscribe;
362
+ return _ref = {
363
+ /**
364
+ * The minimal observable subscription method.
365
+ * @param {Object} observer Any object that can be used as an observer.
366
+ * The observer object should have a `next` method.
367
+ * @returns {subscription} An object with an `unsubscribe` method that can
368
+ * be used to unsubscribe the observable from the store, and prevent further
369
+ * emission of values from the observable.
370
+ */
371
+ subscribe: function subscribe(observer) {
372
+ if (typeof observer !== 'object' || observer === null) {
373
+ throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(11) : "Expected the observer to be an object. Instead, received: '" + kindOf(observer) + "'");
374
+ }
375
+
376
+ function observeState() {
377
+ if (observer.next) {
378
+ observer.next(getState());
379
+ }
380
+ }
381
+
382
+ observeState();
383
+ var unsubscribe = outerSubscribe(observeState);
384
+ return {
385
+ unsubscribe: unsubscribe
386
+ };
387
+ }
388
+ }, _ref[$$observable] = function () {
389
+ return this;
390
+ }, _ref;
391
+ } // When a store is created, an "INIT" action is dispatched so that every
392
+ // reducer returns their initial state. This effectively populates
393
+ // the initial state tree.
394
+
395
+
396
+ dispatch({
397
+ type: ActionTypes.INIT
398
+ });
399
+ return _ref2 = {
400
+ dispatch: dispatch,
401
+ subscribe: subscribe,
402
+ getState: getState,
403
+ replaceReducer: replaceReducer
404
+ }, _ref2[$$observable] = observable, _ref2;
405
+ }
406
+
407
+ function bindActionCreator(actionCreator, dispatch) {
408
+ return function () {
409
+ return dispatch(actionCreator.apply(this, arguments));
410
+ };
411
+ }
412
+ /**
413
+ * Turns an object whose values are action creators, into an object with the
414
+ * same keys, but with every function wrapped into a `dispatch` call so they
415
+ * may be invoked directly. This is just a convenience method, as you can call
416
+ * `store.dispatch(MyActionCreators.doSomething())` yourself just fine.
417
+ *
418
+ * For convenience, you can also pass an action creator as the first argument,
419
+ * and get a dispatch wrapped function in return.
420
+ *
421
+ * @param {Function|Object} actionCreators An object whose values are action
422
+ * creator functions. One handy way to obtain it is to use ES6 `import * as`
423
+ * syntax. You may also pass a single function.
424
+ *
425
+ * @param {Function} dispatch The `dispatch` function available on your Redux
426
+ * store.
427
+ *
428
+ * @returns {Function|Object} The object mimicking the original object, but with
429
+ * every action creator wrapped into the `dispatch` call. If you passed a
430
+ * function as `actionCreators`, the return value will also be a single
431
+ * function.
432
+ */
433
+
434
+
435
+ function bindActionCreators(actionCreators, dispatch) {
436
+ if (typeof actionCreators === 'function') {
437
+ return bindActionCreator(actionCreators, dispatch);
438
+ }
439
+
440
+ if (typeof actionCreators !== 'object' || actionCreators === null) {
441
+ throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(16) : "bindActionCreators expected an object or a function, but instead received: '" + kindOf(actionCreators) + "'. " + "Did you write \"import ActionCreators from\" instead of \"import * as ActionCreators from\"?");
442
+ }
443
+
444
+ var boundActionCreators = {};
445
+
446
+ for (var key in actionCreators) {
447
+ var actionCreator = actionCreators[key];
448
+
449
+ if (typeof actionCreator === 'function') {
450
+ boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);
451
+ }
452
+ }
453
+
454
+ return boundActionCreators;
455
+ }
456
+
457
+ /**
458
+ * Composes single-argument functions from right to left. The rightmost
459
+ * function can take multiple arguments as it provides the signature for
460
+ * the resulting composite function.
461
+ *
462
+ * @param {...Function} funcs The functions to compose.
463
+ * @returns {Function} A function obtained by composing the argument functions
464
+ * from right to left. For example, compose(f, g, h) is identical to doing
465
+ * (...args) => f(g(h(...args))).
466
+ */
467
+ function compose() {
468
+ for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
469
+ funcs[_key] = arguments[_key];
470
+ }
471
+
472
+ if (funcs.length === 0) {
473
+ return function (arg) {
474
+ return arg;
475
+ };
476
+ }
477
+
478
+ if (funcs.length === 1) {
479
+ return funcs[0];
480
+ }
481
+
482
+ return funcs.reduce(function (a, b) {
483
+ return function () {
484
+ return a(b.apply(void 0, arguments));
485
+ };
486
+ });
487
+ }
488
+
489
+ /**
490
+ * Creates a store enhancer that applies middleware to the dispatch method
491
+ * of the Redux store. This is handy for a variety of tasks, such as expressing
492
+ * asynchronous actions in a concise manner, or logging every action payload.
493
+ *
494
+ * See `redux-thunk` package as an example of the Redux middleware.
495
+ *
496
+ * Because middleware is potentially asynchronous, this should be the first
497
+ * store enhancer in the composition chain.
498
+ *
499
+ * Note that each middleware will be given the `dispatch` and `getState` functions
500
+ * as named arguments.
501
+ *
502
+ * @param {...Function} middlewares The middleware chain to be applied.
503
+ * @returns {Function} A store enhancer applying the middleware.
504
+ */
505
+
506
+ function applyMiddleware() {
507
+ for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) {
508
+ middlewares[_key] = arguments[_key];
509
+ }
510
+
511
+ return function (createStore) {
512
+ return function () {
513
+ var store = createStore.apply(void 0, arguments);
514
+
515
+ var _dispatch = function dispatch() {
516
+ throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(15) : 'Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.');
517
+ };
518
+
519
+ var middlewareAPI = {
520
+ getState: store.getState,
521
+ dispatch: function dispatch() {
522
+ return _dispatch.apply(void 0, arguments);
523
+ }
524
+ };
525
+ var chain = middlewares.map(function (middleware) {
526
+ return middleware(middlewareAPI);
527
+ });
528
+ _dispatch = compose.apply(void 0, chain)(store.dispatch);
529
+ return _objectSpread2(_objectSpread2({}, store), {}, {
530
+ dispatch: _dispatch
531
+ });
532
+ };
533
+ };
534
+ }
535
+
536
+ var reactIsExports = {};
537
+ var reactIs = {
538
+ get exports(){ return reactIsExports; },
539
+ set exports(v){ reactIsExports = v; },
540
+ };
541
+
542
+ var reactIs_production_min = {};
543
+
544
+ /** @license React v17.0.2
545
+ * react-is.production.min.js
546
+ *
547
+ * Copyright (c) Facebook, Inc. and its affiliates.
548
+ *
549
+ * This source code is licensed under the MIT license found in the
550
+ * LICENSE file in the root directory of this source tree.
551
+ */
552
+
553
+ var hasRequiredReactIs_production_min;
554
+
555
+ function requireReactIs_production_min () {
556
+ if (hasRequiredReactIs_production_min) return reactIs_production_min;
557
+ hasRequiredReactIs_production_min = 1;
558
+ var b=60103,c=60106,d=60107,e=60108,f=60114,g=60109,h=60110,k=60112,l=60113,m=60120,n=60115,p=60116,q=60121,r=60122,u=60117,v=60129,w=60131;
559
+ if("function"===typeof Symbol&&Symbol.for){var x=Symbol.for;b=x("react.element");c=x("react.portal");d=x("react.fragment");e=x("react.strict_mode");f=x("react.profiler");g=x("react.provider");h=x("react.context");k=x("react.forward_ref");l=x("react.suspense");m=x("react.suspense_list");n=x("react.memo");p=x("react.lazy");q=x("react.block");r=x("react.server.block");u=x("react.fundamental");v=x("react.debug_trace_mode");w=x("react.legacy_hidden");}
560
+ function y(a){if("object"===typeof a&&null!==a){var t=a.$$typeof;switch(t){case b:switch(a=a.type,a){case d:case f:case e:case l:case m:return a;default:switch(a=a&&a.$$typeof,a){case h:case k:case p:case n:case g:return a;default:return t}}case c:return t}}}var z=g,A=b,B=k,C=d,D=p,E=n,F=c,G=f,H=e,I=l;reactIs_production_min.ContextConsumer=h;reactIs_production_min.ContextProvider=z;reactIs_production_min.Element=A;reactIs_production_min.ForwardRef=B;reactIs_production_min.Fragment=C;reactIs_production_min.Lazy=D;reactIs_production_min.Memo=E;reactIs_production_min.Portal=F;reactIs_production_min.Profiler=G;reactIs_production_min.StrictMode=H;
561
+ reactIs_production_min.Suspense=I;reactIs_production_min.isAsyncMode=function(){return !1};reactIs_production_min.isConcurrentMode=function(){return !1};reactIs_production_min.isContextConsumer=function(a){return y(a)===h};reactIs_production_min.isContextProvider=function(a){return y(a)===g};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===b};reactIs_production_min.isForwardRef=function(a){return y(a)===k};reactIs_production_min.isFragment=function(a){return y(a)===d};reactIs_production_min.isLazy=function(a){return y(a)===p};reactIs_production_min.isMemo=function(a){return y(a)===n};
562
+ reactIs_production_min.isPortal=function(a){return y(a)===c};reactIs_production_min.isProfiler=function(a){return y(a)===f};reactIs_production_min.isStrictMode=function(a){return y(a)===e};reactIs_production_min.isSuspense=function(a){return y(a)===l};reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===d||a===f||a===v||a===e||a===l||a===m||a===w||"object"===typeof a&&null!==a&&(a.$$typeof===p||a.$$typeof===n||a.$$typeof===g||a.$$typeof===h||a.$$typeof===k||a.$$typeof===u||a.$$typeof===q||a[0]===r)?!0:!1};
563
+ reactIs_production_min.typeOf=y;
564
+ return reactIs_production_min;
565
+ }
566
+
567
+ var reactIs_development = {};
568
+
569
+ /** @license React v17.0.2
570
+ * react-is.development.js
571
+ *
572
+ * Copyright (c) Facebook, Inc. and its affiliates.
573
+ *
574
+ * This source code is licensed under the MIT license found in the
575
+ * LICENSE file in the root directory of this source tree.
576
+ */
577
+
578
+ var hasRequiredReactIs_development;
579
+
580
+ function requireReactIs_development () {
581
+ if (hasRequiredReactIs_development) return reactIs_development;
582
+ hasRequiredReactIs_development = 1;
583
+
584
+ if (process.env.NODE_ENV !== "production") {
585
+ (function() {
586
+
587
+ // ATTENTION
588
+ // When adding new symbols to this file,
589
+ // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
590
+ // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
591
+ // nor polyfill, then a plain number is used for performance.
592
+ var REACT_ELEMENT_TYPE = 0xeac7;
593
+ var REACT_PORTAL_TYPE = 0xeaca;
594
+ var REACT_FRAGMENT_TYPE = 0xeacb;
595
+ var REACT_STRICT_MODE_TYPE = 0xeacc;
596
+ var REACT_PROFILER_TYPE = 0xead2;
597
+ var REACT_PROVIDER_TYPE = 0xeacd;
598
+ var REACT_CONTEXT_TYPE = 0xeace;
599
+ var REACT_FORWARD_REF_TYPE = 0xead0;
600
+ var REACT_SUSPENSE_TYPE = 0xead1;
601
+ var REACT_SUSPENSE_LIST_TYPE = 0xead8;
602
+ var REACT_MEMO_TYPE = 0xead3;
603
+ var REACT_LAZY_TYPE = 0xead4;
604
+ var REACT_BLOCK_TYPE = 0xead9;
605
+ var REACT_SERVER_BLOCK_TYPE = 0xeada;
606
+ var REACT_FUNDAMENTAL_TYPE = 0xead5;
607
+ var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;
608
+ var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;
609
+
610
+ if (typeof Symbol === 'function' && Symbol.for) {
611
+ var symbolFor = Symbol.for;
612
+ REACT_ELEMENT_TYPE = symbolFor('react.element');
613
+ REACT_PORTAL_TYPE = symbolFor('react.portal');
614
+ REACT_FRAGMENT_TYPE = symbolFor('react.fragment');
615
+ REACT_STRICT_MODE_TYPE = symbolFor('react.strict_mode');
616
+ REACT_PROFILER_TYPE = symbolFor('react.profiler');
617
+ REACT_PROVIDER_TYPE = symbolFor('react.provider');
618
+ REACT_CONTEXT_TYPE = symbolFor('react.context');
619
+ REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');
620
+ REACT_SUSPENSE_TYPE = symbolFor('react.suspense');
621
+ REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list');
622
+ REACT_MEMO_TYPE = symbolFor('react.memo');
623
+ REACT_LAZY_TYPE = symbolFor('react.lazy');
624
+ REACT_BLOCK_TYPE = symbolFor('react.block');
625
+ REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block');
626
+ REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental');
627
+ symbolFor('react.scope');
628
+ symbolFor('react.opaque.id');
629
+ REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode');
630
+ symbolFor('react.offscreen');
631
+ REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');
632
+ }
633
+
634
+ // Filter certain DOM attributes (e.g. src, href) if their values are empty strings.
635
+
636
+ var enableScopeAPI = false; // Experimental Create Event Handle API.
637
+
638
+ function isValidElementType(type) {
639
+ if (typeof type === 'string' || typeof type === 'function') {
640
+ return true;
641
+ } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
642
+
643
+
644
+ if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_DEBUG_TRACING_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI ) {
645
+ return true;
646
+ }
647
+
648
+ if (typeof type === 'object' && type !== null) {
649
+ if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) {
650
+ return true;
651
+ }
652
+ }
653
+
654
+ return false;
655
+ }
656
+
657
+ function typeOf(object) {
658
+ if (typeof object === 'object' && object !== null) {
659
+ var $$typeof = object.$$typeof;
660
+
661
+ switch ($$typeof) {
662
+ case REACT_ELEMENT_TYPE:
663
+ var type = object.type;
664
+
665
+ switch (type) {
666
+ case REACT_FRAGMENT_TYPE:
667
+ case REACT_PROFILER_TYPE:
668
+ case REACT_STRICT_MODE_TYPE:
669
+ case REACT_SUSPENSE_TYPE:
670
+ case REACT_SUSPENSE_LIST_TYPE:
671
+ return type;
672
+
673
+ default:
674
+ var $$typeofType = type && type.$$typeof;
675
+
676
+ switch ($$typeofType) {
677
+ case REACT_CONTEXT_TYPE:
678
+ case REACT_FORWARD_REF_TYPE:
679
+ case REACT_LAZY_TYPE:
680
+ case REACT_MEMO_TYPE:
681
+ case REACT_PROVIDER_TYPE:
682
+ return $$typeofType;
683
+
684
+ default:
685
+ return $$typeof;
686
+ }
687
+
688
+ }
689
+
690
+ case REACT_PORTAL_TYPE:
691
+ return $$typeof;
692
+ }
693
+ }
694
+
695
+ return undefined;
696
+ }
697
+ var ContextConsumer = REACT_CONTEXT_TYPE;
698
+ var ContextProvider = REACT_PROVIDER_TYPE;
699
+ var Element = REACT_ELEMENT_TYPE;
700
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
701
+ var Fragment = REACT_FRAGMENT_TYPE;
702
+ var Lazy = REACT_LAZY_TYPE;
703
+ var Memo = REACT_MEMO_TYPE;
704
+ var Portal = REACT_PORTAL_TYPE;
705
+ var Profiler = REACT_PROFILER_TYPE;
706
+ var StrictMode = REACT_STRICT_MODE_TYPE;
707
+ var Suspense = REACT_SUSPENSE_TYPE;
708
+ var hasWarnedAboutDeprecatedIsAsyncMode = false;
709
+ var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated
710
+
711
+ function isAsyncMode(object) {
712
+ {
713
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
714
+ hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
715
+
716
+ console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
717
+ }
718
+ }
719
+
720
+ return false;
721
+ }
722
+ function isConcurrentMode(object) {
723
+ {
724
+ if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
725
+ hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint
726
+
727
+ console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
728
+ }
729
+ }
730
+
731
+ return false;
732
+ }
733
+ function isContextConsumer(object) {
734
+ return typeOf(object) === REACT_CONTEXT_TYPE;
735
+ }
736
+ function isContextProvider(object) {
737
+ return typeOf(object) === REACT_PROVIDER_TYPE;
738
+ }
739
+ function isElement(object) {
740
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
741
+ }
742
+ function isForwardRef(object) {
743
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
744
+ }
745
+ function isFragment(object) {
746
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
747
+ }
748
+ function isLazy(object) {
749
+ return typeOf(object) === REACT_LAZY_TYPE;
750
+ }
751
+ function isMemo(object) {
752
+ return typeOf(object) === REACT_MEMO_TYPE;
753
+ }
754
+ function isPortal(object) {
755
+ return typeOf(object) === REACT_PORTAL_TYPE;
756
+ }
757
+ function isProfiler(object) {
758
+ return typeOf(object) === REACT_PROFILER_TYPE;
759
+ }
760
+ function isStrictMode(object) {
761
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
762
+ }
763
+ function isSuspense(object) {
764
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
765
+ }
766
+
767
+ reactIs_development.ContextConsumer = ContextConsumer;
768
+ reactIs_development.ContextProvider = ContextProvider;
769
+ reactIs_development.Element = Element;
770
+ reactIs_development.ForwardRef = ForwardRef;
771
+ reactIs_development.Fragment = Fragment;
772
+ reactIs_development.Lazy = Lazy;
773
+ reactIs_development.Memo = Memo;
774
+ reactIs_development.Portal = Portal;
775
+ reactIs_development.Profiler = Profiler;
776
+ reactIs_development.StrictMode = StrictMode;
777
+ reactIs_development.Suspense = Suspense;
778
+ reactIs_development.isAsyncMode = isAsyncMode;
779
+ reactIs_development.isConcurrentMode = isConcurrentMode;
780
+ reactIs_development.isContextConsumer = isContextConsumer;
781
+ reactIs_development.isContextProvider = isContextProvider;
782
+ reactIs_development.isElement = isElement;
783
+ reactIs_development.isForwardRef = isForwardRef;
784
+ reactIs_development.isFragment = isFragment;
785
+ reactIs_development.isLazy = isLazy;
786
+ reactIs_development.isMemo = isMemo;
787
+ reactIs_development.isPortal = isPortal;
788
+ reactIs_development.isProfiler = isProfiler;
789
+ reactIs_development.isStrictMode = isStrictMode;
790
+ reactIs_development.isSuspense = isSuspense;
791
+ reactIs_development.isValidElementType = isValidElementType;
792
+ reactIs_development.typeOf = typeOf;
793
+ })();
794
+ }
795
+ return reactIs_development;
796
+ }
797
+
798
+ (function (module) {
799
+
800
+ if (process.env.NODE_ENV === 'production') {
801
+ module.exports = requireReactIs_production_min();
802
+ } else {
803
+ module.exports = requireReactIs_development();
804
+ }
805
+ } (reactIs));
806
+
807
+ export { createStore as a, bindActionCreators as b, compose as c, applyMiddleware as d, reactIsExports as r };