@spothero/ui 13.10.1-beta.0 → 14.0.0-beta.0
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.
- package/CHANGELOG.md +10 -0
- package/CHANGELOG.tmp +4 -3
- package/backlog/Alert/Alert.js +1 -4
- package/backlog/AutoSuggestInput/AutoSuggestInput.js +11 -18
- package/backlog/AutoSuggestInput/AutoSuggestItem.js +7 -10
- package/backlog/AutoSuggestInput/AutoSuggestList.js +9 -12
- package/backlog/Badge/Badge.js +1 -4
- package/backlog/Chart/Chart.js +11 -18
- package/backlog/Checkbox/Checkbox.js +7 -10
- package/backlog/DateTime/DatePicker.js +7 -10
- package/backlog/DateTime/DatePickerCalendar.js +7 -10
- package/backlog/DateTime/DatePickerCalendarNavigation.js +7 -10
- package/backlog/DateTime/DatePickerCalendarWithRange.js +11 -18
- package/backlog/DateTime/DateTimePicker.js +7 -10
- package/backlog/DateTime/DateTimeRangePicker.js +12 -21
- package/backlog/DateTime/TimePicker.js +7 -10
- package/backlog/DateTime/date-time-assertions.js +1 -4
- package/backlog/DateTime/index.js +7 -15
- package/backlog/ErrorBoundary/ErrorBoundary.js +7 -10
- package/backlog/Flyout/Flyout.js +11 -21
- package/backlog/Form/Form.js +8 -13
- package/backlog/Form/FormElementError.js +1 -4
- package/backlog/Form/FormGroup.js +1 -4
- package/backlog/Form/FormGroupError.js +1 -4
- package/backlog/Form/index.js +5 -11
- package/backlog/GooglePlacesSearchInput/GooglePlacesSearchInput.js +11 -18
- package/backlog/GooglePlacesSearchInput/PoweredByGoogle.js +1 -4
- package/backlog/GooglePlacesSearchInput/index.js +3 -7
- package/backlog/HorizontalRule/HorizontalRule.js +1 -4
- package/backlog/Label/Label.js +1 -4
- package/backlog/Modal/Modal.js +12 -22
- package/backlog/Modal/ModalContent.js +7 -10
- package/backlog/Modal/ModalFooter.js +7 -10
- package/backlog/Modal/index.js +4 -9
- package/backlog/Notification/Notification.js +7 -10
- package/backlog/Notification/NotificationContainer.js +7 -10
- package/backlog/Notification/NotificationPropTypes.js +1 -4
- package/backlog/Notification/index.js +3 -7
- package/backlog/PasswordControl/PasswordControl.js +8 -13
- package/backlog/Portal/Portal.js +7 -10
- package/backlog/PulseLoader/PulseLoader.js +1 -4
- package/backlog/Radio/Radio.js +7 -10
- package/backlog/Radio/RadioGroup.js +9 -12
- package/backlog/Radio/index.js +3 -7
- package/backlog/RenderInBody/RenderInBody.js +7 -10
- package/backlog/Select/Select.js +10 -15
- package/backlog/Select/SelectItemPropTypes.js +1 -4
- package/backlog/Select/index.js +3 -7
- package/backlog/SelectControlled/SelectControlled.js +10 -15
- package/backlog/SelectControlled/index.js +2 -5
- package/backlog/Sprite/Sprite.js +1 -4
- package/backlog/Tabs/Tab.js +7 -10
- package/backlog/Tabs/TabContent.js +6 -9
- package/backlog/Tabs/TabNavigation.js +8 -13
- package/backlog/Tabs/TabPanel.js +1 -4
- package/backlog/Tabs/Tabs.js +7 -10
- package/backlog/Tabs/index.js +6 -13
- package/backlog/TextArea/TextArea.js +7 -10
- package/backlog/TextInput/TextInput.js +9 -12
- package/backlog/TextInput/TextInputPropTypes.js +1 -4
- package/backlog/TextInput/index.js +3 -7
- package/backlog/Tooltip/Tooltip.js +9 -16
- package/backlog/index.js +55 -111
- package/backlog/v1/components/Button/Button.js +1 -4
- package/backlog/v1/components/Button/button-props.js +1 -4
- package/backlog/v1/components/Image/Image.js +9 -12
- package/backlog/v1/components/Loader/Loader.js +1 -4
- package/backlog/v1/components/Panel/Panel.js +7 -10
- package/backlog/v1/components/Table/Table.js +9 -14
- package/backlog/v1/components/Table/TableCell.js +1 -4
- package/backlog/v1/components/Table/TableCellPropTypes.js +1 -4
- package/backlog/v1/components/Table/TableControls.js +1 -4
- package/backlog/v1/components/Table/TableFooter.js +1 -4
- package/backlog/v1/components/Table/TableHeading.js +7 -10
- package/backlog/v1/components/Table/TableHeadingPropTypes.js +1 -4
- package/backlog/v1/components/Table/TableSortSelector.js +7 -10
- package/backlog/v1/components/Table/TableSortType.js +1 -4
- package/backlog/v1/components/Table/index.js +6 -13
- package/backlog/v1/components/TextButton/TextButton.js +8 -15
- package/backlog/v1/components/index.js +7 -15
- package/backlog/v1/utils/deprecate.js +3 -8
- package/package.json +13 -22
- package/v1/index-bundled-cjs/index.js +1 -1
- package/v1/index-bundled-cjs/index.js.map +1 -1
- package/v1/index-bundled-esm/index.js +1 -1
- package/v1/index-bundled-esm/index.js.map +1 -1
- package/v1/index-unbundled-cjs/index.js +4168 -1840
- package/v1/index-unbundled-cjs/index.js.map +1 -1
- package/v1/index-unbundled-esm/index.js +4162 -1829
- package/v1/index-unbundled-esm/index.js.map +1 -1
- package/v2/index-bundled-cjs/ImageCarousel-080ac52d.js +2 -0
- package/v2/index-bundled-cjs/ImageCarousel-080ac52d.js.map +1 -0
- package/v2/index-bundled-cjs/index-3ec6f4f6.js +25 -0
- package/v2/index-bundled-cjs/index-3ec6f4f6.js.map +1 -0
- package/v2/index-bundled-cjs/index.js +1 -1
- package/v2/index-bundled-esm/ImageCarousel-f28813a0.js +2 -0
- package/v2/index-bundled-esm/ImageCarousel-f28813a0.js.map +1 -0
- package/v2/index-bundled-esm/index-1758d567.js +24 -0
- package/v2/index-bundled-esm/index-1758d567.js.map +1 -0
- package/v2/index-bundled-esm/index.js +1 -1
- package/v2/index-unbundled-cjs/{ImageCarousel-7ccd8f2f.js → ImageCarousel-a6361ff4.js} +963 -52
- package/v2/index-unbundled-cjs/ImageCarousel-a6361ff4.js.map +1 -0
- package/v2/index-unbundled-cjs/{index-9d5ea07a.js → index-fc04c985.js} +1592 -2449
- package/v2/index-unbundled-cjs/index-fc04c985.js.map +1 -0
- package/v2/index-unbundled-cjs/index.js +15 -16
- package/v2/index-unbundled-cjs/index.js.map +1 -1
- package/v2/index-unbundled-esm/{ImageCarousel-fbb24dbe.js → ImageCarousel-3b5e450a.js} +963 -50
- package/v2/index-unbundled-esm/ImageCarousel-3b5e450a.js.map +1 -0
- package/v2/index-unbundled-esm/{index-23e28656.js → index-0a927912.js} +1558 -2432
- package/v2/index-unbundled-esm/index-0a927912.js.map +1 -0
- package/v2/index-unbundled-esm/index.js +1 -2
- package/v2/index-unbundled-esm/index.js.map +1 -1
- package/v2/index-bundled-cjs/ImageCarousel-6fd5db39.js +0 -2
- package/v2/index-bundled-cjs/ImageCarousel-6fd5db39.js.map +0 -1
- package/v2/index-bundled-cjs/index-8d0f80f6.js +0 -26
- package/v2/index-bundled-cjs/index-8d0f80f6.js.map +0 -1
- package/v2/index-bundled-esm/ImageCarousel-eab1d6cd.js +0 -2
- package/v2/index-bundled-esm/ImageCarousel-eab1d6cd.js.map +0 -1
- package/v2/index-bundled-esm/index-c0705cec.js +0 -24
- package/v2/index-bundled-esm/index-c0705cec.js.map +0 -1
- package/v2/index-unbundled-cjs/ImageCarousel-7ccd8f2f.js.map +0 -1
- package/v2/index-unbundled-cjs/index-9d5ea07a.js.map +0 -1
- package/v2/index-unbundled-esm/ImageCarousel-fbb24dbe.js.map +0 -1
- package/v2/index-unbundled-esm/index-23e28656.js.map +0 -1
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import { _ as _export, i as isArray$
|
|
1
|
+
import { _ as _export, i as isArray$5, p as path, d as defineWellKnownSymbol, s as setToStringTag, g as global_1, h as hasOwnProperty_1, a as descriptors, f as fails, b as sharedKey, t as toObject, c as isCallable, w as wellKnownSymbol, o as objectCreate, r as redefine, e as createPropertyDescriptor, j as functionUncurryThis, k as anObject, l as functionCall, m as internalState, n as toIndexedObject, q as classof, u as createNonEnumerableProperty, v as toString_1, x as requireObjectCoercible, y as toIntegerOrInfinity, z as getMethod, A as arrayMethodHasSpeciesSupport, B as lengthOfArrayLike, C as isConstructor, D as isObject, E as arraySlice, F as createProperty, G as toAbsoluteIndex, H as entryVirtual, I as objectIsPrototypeOf, J as aCallable, K as tryToString, L as functionBindContext, M as wellKnownSymbolWrapped, N as internalMetadata, O as objectDefineProperty, P as arrayIteration, Q as nativeWeakMap, R as objectIsExtensible, S as getOwnPropertyDescriptor$3, T as defineProperty$1, U as createCommonjsModule, V as defineProperty$2, W as _extends$1, X as unwrapExports, Y as _objectWithoutProperties, Z as Box, $ as map$1, a0 as concat, a1 as Button } from './index-0a927912.js';
|
|
2
2
|
import React, { useState, useRef, useMemo, useEffect, useCallback } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import IconChevronLeft from '@spothero/icons/chevron-left';
|
|
5
|
-
import IconChevronRight from '@spothero/icons/chevron-right';
|
|
6
4
|
import 'lodash/merge';
|
|
7
|
-
import '@spothero/utils/environment';
|
|
8
5
|
import 'lodash/template';
|
|
9
6
|
import 'react-dom';
|
|
10
7
|
|
|
11
8
|
// `Array.isArray` method
|
|
12
9
|
// https://tc39.es/ecma262/#sec-array.isarray
|
|
13
10
|
_export({ target: 'Array', stat: true }, {
|
|
14
|
-
isArray: isArray$
|
|
11
|
+
isArray: isArray$5
|
|
15
12
|
});
|
|
16
13
|
|
|
17
|
-
var isArray$
|
|
14
|
+
var isArray$4 = path.Array.isArray;
|
|
15
|
+
|
|
16
|
+
var isArray$3 = isArray$4;
|
|
18
17
|
|
|
19
18
|
var isArray$2 = isArray$3;
|
|
20
19
|
|
|
@@ -82,7 +81,302 @@ defineWellKnownSymbol('unscopables');
|
|
|
82
81
|
// https://tc39.es/ecma262/#sec-json-@@tostringtag
|
|
83
82
|
setToStringTag(global_1.JSON, 'JSON', true);
|
|
84
83
|
|
|
85
|
-
var symbol$
|
|
84
|
+
var symbol$4 = path.Symbol;
|
|
85
|
+
|
|
86
|
+
var iterators = {};
|
|
87
|
+
|
|
88
|
+
var FunctionPrototype = Function.prototype;
|
|
89
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
90
|
+
var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
|
|
91
|
+
|
|
92
|
+
var EXISTS = hasOwnProperty_1(FunctionPrototype, 'name');
|
|
93
|
+
// additional protection from minified / mangled / dropped function names
|
|
94
|
+
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
95
|
+
var CONFIGURABLE = EXISTS && (!descriptors || (descriptors && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
96
|
+
|
|
97
|
+
var functionName = {
|
|
98
|
+
EXISTS: EXISTS,
|
|
99
|
+
PROPER: PROPER,
|
|
100
|
+
CONFIGURABLE: CONFIGURABLE
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
var correctPrototypeGetter = !fails(function () {
|
|
104
|
+
function F() { /* empty */ }
|
|
105
|
+
F.prototype.constructor = null;
|
|
106
|
+
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
107
|
+
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
var IE_PROTO = sharedKey('IE_PROTO');
|
|
111
|
+
var Object$1 = global_1.Object;
|
|
112
|
+
var ObjectPrototype = Object$1.prototype;
|
|
113
|
+
|
|
114
|
+
// `Object.getPrototypeOf` method
|
|
115
|
+
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
116
|
+
var objectGetPrototypeOf = correctPrototypeGetter ? Object$1.getPrototypeOf : function (O) {
|
|
117
|
+
var object = toObject(O);
|
|
118
|
+
if (hasOwnProperty_1(object, IE_PROTO)) return object[IE_PROTO];
|
|
119
|
+
var constructor = object.constructor;
|
|
120
|
+
if (isCallable(constructor) && object instanceof constructor) {
|
|
121
|
+
return constructor.prototype;
|
|
122
|
+
} return object instanceof Object$1 ? ObjectPrototype : null;
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
var ITERATOR$4 = wellKnownSymbol('iterator');
|
|
126
|
+
var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
127
|
+
|
|
128
|
+
// `%IteratorPrototype%` object
|
|
129
|
+
// https://tc39.es/ecma262/#sec-%iteratorprototype%-object
|
|
130
|
+
var IteratorPrototype$1, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
|
131
|
+
|
|
132
|
+
/* eslint-disable es/no-array-prototype-keys -- safe */
|
|
133
|
+
if ([].keys) {
|
|
134
|
+
arrayIterator = [].keys();
|
|
135
|
+
// Safari 8 has buggy iterators w/o `next`
|
|
136
|
+
if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
|
|
137
|
+
else {
|
|
138
|
+
PrototypeOfArrayIteratorPrototype = objectGetPrototypeOf(objectGetPrototypeOf(arrayIterator));
|
|
139
|
+
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$1 = PrototypeOfArrayIteratorPrototype;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$1 == undefined || fails(function () {
|
|
144
|
+
var test = {};
|
|
145
|
+
// FF44- legacy iterators case
|
|
146
|
+
return IteratorPrototype$1[ITERATOR$4].call(test) !== test;
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$1 = {};
|
|
150
|
+
else IteratorPrototype$1 = objectCreate(IteratorPrototype$1);
|
|
151
|
+
|
|
152
|
+
// `%IteratorPrototype%[@@iterator]()` method
|
|
153
|
+
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
154
|
+
if (!isCallable(IteratorPrototype$1[ITERATOR$4])) {
|
|
155
|
+
redefine(IteratorPrototype$1, ITERATOR$4, function () {
|
|
156
|
+
return this;
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
var iteratorsCore = {
|
|
161
|
+
IteratorPrototype: IteratorPrototype$1,
|
|
162
|
+
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
var IteratorPrototype = iteratorsCore.IteratorPrototype;
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
var returnThis$1 = function () { return this; };
|
|
172
|
+
|
|
173
|
+
var createIteratorConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
|
174
|
+
var TO_STRING_TAG = NAME + ' Iterator';
|
|
175
|
+
IteratorConstructor.prototype = objectCreate(IteratorPrototype, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
|
|
176
|
+
setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);
|
|
177
|
+
iterators[TO_STRING_TAG] = returnThis$1;
|
|
178
|
+
return IteratorConstructor;
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
var String$1 = global_1.String;
|
|
182
|
+
var TypeError$6 = global_1.TypeError;
|
|
183
|
+
|
|
184
|
+
var aPossiblePrototype = function (argument) {
|
|
185
|
+
if (typeof argument == 'object' || isCallable(argument)) return argument;
|
|
186
|
+
throw TypeError$6("Can't set " + String$1(argument) + ' as a prototype');
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
/* eslint-disable no-proto -- safe */
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
// `Object.setPrototypeOf` method
|
|
195
|
+
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
196
|
+
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
197
|
+
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
198
|
+
Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
199
|
+
var CORRECT_SETTER = false;
|
|
200
|
+
var test = {};
|
|
201
|
+
var setter;
|
|
202
|
+
try {
|
|
203
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
204
|
+
setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
205
|
+
setter(test, []);
|
|
206
|
+
CORRECT_SETTER = test instanceof Array;
|
|
207
|
+
} catch (error) { /* empty */ }
|
|
208
|
+
return function setPrototypeOf(O, proto) {
|
|
209
|
+
anObject(O);
|
|
210
|
+
aPossiblePrototype(proto);
|
|
211
|
+
if (CORRECT_SETTER) setter(O, proto);
|
|
212
|
+
else O.__proto__ = proto;
|
|
213
|
+
return O;
|
|
214
|
+
};
|
|
215
|
+
}() : undefined);
|
|
216
|
+
|
|
217
|
+
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
218
|
+
var BUGGY_SAFARI_ITERATORS = iteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
219
|
+
var ITERATOR$3 = wellKnownSymbol('iterator');
|
|
220
|
+
var KEYS = 'keys';
|
|
221
|
+
var VALUES = 'values';
|
|
222
|
+
var ENTRIES = 'entries';
|
|
223
|
+
|
|
224
|
+
var returnThis = function () { return this; };
|
|
225
|
+
|
|
226
|
+
var defineIterator = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
|
|
227
|
+
createIteratorConstructor(IteratorConstructor, NAME, next);
|
|
228
|
+
|
|
229
|
+
var getIterationMethod = function (KIND) {
|
|
230
|
+
if (KIND === DEFAULT && defaultIterator) return defaultIterator;
|
|
231
|
+
if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
|
|
232
|
+
switch (KIND) {
|
|
233
|
+
case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
|
|
234
|
+
case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
|
|
235
|
+
case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
|
|
236
|
+
} return function () { return new IteratorConstructor(this); };
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
var TO_STRING_TAG = NAME + ' Iterator';
|
|
240
|
+
var INCORRECT_VALUES_NAME = false;
|
|
241
|
+
var IterablePrototype = Iterable.prototype;
|
|
242
|
+
var nativeIterator = IterablePrototype[ITERATOR$3]
|
|
243
|
+
|| IterablePrototype['@@iterator']
|
|
244
|
+
|| DEFAULT && IterablePrototype[DEFAULT];
|
|
245
|
+
var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
|
|
246
|
+
var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
|
|
247
|
+
var CurrentIteratorPrototype, methods, KEY;
|
|
248
|
+
|
|
249
|
+
// fix native
|
|
250
|
+
if (anyNativeIterator) {
|
|
251
|
+
CurrentIteratorPrototype = objectGetPrototypeOf(anyNativeIterator.call(new Iterable()));
|
|
252
|
+
if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
|
|
253
|
+
// Set @@toStringTag to native iterators
|
|
254
|
+
setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);
|
|
255
|
+
iterators[TO_STRING_TAG] = returnThis;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
|
|
260
|
+
if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
261
|
+
{
|
|
262
|
+
INCORRECT_VALUES_NAME = true;
|
|
263
|
+
defaultIterator = function values() { return functionCall(nativeIterator, this); };
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
// export additional methods
|
|
268
|
+
if (DEFAULT) {
|
|
269
|
+
methods = {
|
|
270
|
+
values: getIterationMethod(VALUES),
|
|
271
|
+
keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
|
|
272
|
+
entries: getIterationMethod(ENTRIES)
|
|
273
|
+
};
|
|
274
|
+
if (FORCED) for (KEY in methods) {
|
|
275
|
+
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
276
|
+
redefine(IterablePrototype, KEY, methods[KEY]);
|
|
277
|
+
}
|
|
278
|
+
} else _export({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
// define iterator
|
|
282
|
+
if ((FORCED) && IterablePrototype[ITERATOR$3] !== defaultIterator) {
|
|
283
|
+
redefine(IterablePrototype, ITERATOR$3, defaultIterator, { name: DEFAULT });
|
|
284
|
+
}
|
|
285
|
+
iterators[NAME] = defaultIterator;
|
|
286
|
+
|
|
287
|
+
return methods;
|
|
288
|
+
};
|
|
289
|
+
|
|
290
|
+
var ARRAY_ITERATOR = 'Array Iterator';
|
|
291
|
+
var setInternalState$3 = internalState.set;
|
|
292
|
+
var getInternalState$1 = internalState.getterFor(ARRAY_ITERATOR);
|
|
293
|
+
|
|
294
|
+
// `Array.prototype.entries` method
|
|
295
|
+
// https://tc39.es/ecma262/#sec-array.prototype.entries
|
|
296
|
+
// `Array.prototype.keys` method
|
|
297
|
+
// https://tc39.es/ecma262/#sec-array.prototype.keys
|
|
298
|
+
// `Array.prototype.values` method
|
|
299
|
+
// https://tc39.es/ecma262/#sec-array.prototype.values
|
|
300
|
+
// `Array.prototype[@@iterator]` method
|
|
301
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@iterator
|
|
302
|
+
// `CreateArrayIterator` internal method
|
|
303
|
+
// https://tc39.es/ecma262/#sec-createarrayiterator
|
|
304
|
+
defineIterator(Array, 'Array', function (iterated, kind) {
|
|
305
|
+
setInternalState$3(this, {
|
|
306
|
+
type: ARRAY_ITERATOR,
|
|
307
|
+
target: toIndexedObject(iterated), // target
|
|
308
|
+
index: 0, // next index
|
|
309
|
+
kind: kind // kind
|
|
310
|
+
});
|
|
311
|
+
// `%ArrayIteratorPrototype%.next` method
|
|
312
|
+
// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
|
|
313
|
+
}, function () {
|
|
314
|
+
var state = getInternalState$1(this);
|
|
315
|
+
var target = state.target;
|
|
316
|
+
var kind = state.kind;
|
|
317
|
+
var index = state.index++;
|
|
318
|
+
if (!target || index >= target.length) {
|
|
319
|
+
state.target = undefined;
|
|
320
|
+
return { value: undefined, done: true };
|
|
321
|
+
}
|
|
322
|
+
if (kind == 'keys') return { value: index, done: false };
|
|
323
|
+
if (kind == 'values') return { value: target[index], done: false };
|
|
324
|
+
return { value: [index, target[index]], done: false };
|
|
325
|
+
}, 'values');
|
|
326
|
+
|
|
327
|
+
// argumentsList[@@iterator] is %ArrayProto_values%
|
|
328
|
+
// https://tc39.es/ecma262/#sec-createunmappedargumentsobject
|
|
329
|
+
// https://tc39.es/ecma262/#sec-createmappedargumentsobject
|
|
330
|
+
iterators.Arguments = iterators.Array;
|
|
331
|
+
|
|
332
|
+
// iterable DOM collections
|
|
333
|
+
// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
|
|
334
|
+
var domIterables = {
|
|
335
|
+
CSSRuleList: 0,
|
|
336
|
+
CSSStyleDeclaration: 0,
|
|
337
|
+
CSSValueList: 0,
|
|
338
|
+
ClientRectList: 0,
|
|
339
|
+
DOMRectList: 0,
|
|
340
|
+
DOMStringList: 0,
|
|
341
|
+
DOMTokenList: 1,
|
|
342
|
+
DataTransferItemList: 0,
|
|
343
|
+
FileList: 0,
|
|
344
|
+
HTMLAllCollection: 0,
|
|
345
|
+
HTMLCollection: 0,
|
|
346
|
+
HTMLFormElement: 0,
|
|
347
|
+
HTMLSelectElement: 0,
|
|
348
|
+
MediaList: 0,
|
|
349
|
+
MimeTypeArray: 0,
|
|
350
|
+
NamedNodeMap: 0,
|
|
351
|
+
NodeList: 1,
|
|
352
|
+
PaintRequestList: 0,
|
|
353
|
+
Plugin: 0,
|
|
354
|
+
PluginArray: 0,
|
|
355
|
+
SVGLengthList: 0,
|
|
356
|
+
SVGNumberList: 0,
|
|
357
|
+
SVGPathSegList: 0,
|
|
358
|
+
SVGPointList: 0,
|
|
359
|
+
SVGStringList: 0,
|
|
360
|
+
SVGTransformList: 0,
|
|
361
|
+
SourceBufferList: 0,
|
|
362
|
+
StyleSheetList: 0,
|
|
363
|
+
TextTrackCueList: 0,
|
|
364
|
+
TextTrackList: 0,
|
|
365
|
+
TouchList: 0
|
|
366
|
+
};
|
|
367
|
+
|
|
368
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
369
|
+
|
|
370
|
+
for (var COLLECTION_NAME in domIterables) {
|
|
371
|
+
var Collection = global_1[COLLECTION_NAME];
|
|
372
|
+
var CollectionPrototype = Collection && Collection.prototype;
|
|
373
|
+
if (CollectionPrototype && classof(CollectionPrototype) !== TO_STRING_TAG) {
|
|
374
|
+
createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
|
|
375
|
+
}
|
|
376
|
+
iterators[COLLECTION_NAME] = iterators.Array;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
var symbol$3 = symbol$4;
|
|
86
380
|
|
|
87
381
|
var symbol$2 = symbol$3;
|
|
88
382
|
|
|
@@ -165,13 +459,13 @@ var charAt = stringMultibyte.charAt;
|
|
|
165
459
|
|
|
166
460
|
|
|
167
461
|
var STRING_ITERATOR = 'String Iterator';
|
|
168
|
-
var setInternalState = internalState.set;
|
|
462
|
+
var setInternalState$2 = internalState.set;
|
|
169
463
|
var getInternalState = internalState.getterFor(STRING_ITERATOR);
|
|
170
464
|
|
|
171
465
|
// `String.prototype[@@iterator]` method
|
|
172
466
|
// https://tc39.es/ecma262/#sec-string.prototype-@@iterator
|
|
173
467
|
defineIterator(String, 'String', function (iterated) {
|
|
174
|
-
setInternalState(this, {
|
|
468
|
+
setInternalState$2(this, {
|
|
175
469
|
type: STRING_ITERATOR,
|
|
176
470
|
string: toString_1(iterated),
|
|
177
471
|
index: 0
|
|
@@ -191,15 +485,17 @@ defineIterator(String, 'String', function (iterated) {
|
|
|
191
485
|
|
|
192
486
|
var ITERATOR$2 = wellKnownSymbol('iterator');
|
|
193
487
|
|
|
194
|
-
var getIteratorMethod$
|
|
488
|
+
var getIteratorMethod$4 = function (it) {
|
|
195
489
|
if (it != undefined) return getMethod(it, ITERATOR$2)
|
|
196
490
|
|| getMethod(it, '@@iterator')
|
|
197
491
|
|| iterators[classof(it)];
|
|
198
492
|
};
|
|
199
493
|
|
|
200
|
-
var getIteratorMethod_1 = getIteratorMethod$
|
|
494
|
+
var getIteratorMethod_1 = getIteratorMethod$4;
|
|
495
|
+
|
|
496
|
+
var getIteratorMethod$3 = getIteratorMethod_1;
|
|
201
497
|
|
|
202
|
-
var getIteratorMethod$2 =
|
|
498
|
+
var getIteratorMethod$2 = getIteratorMethod$3;
|
|
203
499
|
|
|
204
500
|
var getIteratorMethod$1 = getIteratorMethod$2;
|
|
205
501
|
|
|
@@ -252,10 +548,10 @@ _export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
|
|
252
548
|
var fin = toAbsoluteIndex(end === undefined ? length : end, length);
|
|
253
549
|
// inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
|
|
254
550
|
var Constructor, result, n;
|
|
255
|
-
if (isArray$
|
|
551
|
+
if (isArray$5(O)) {
|
|
256
552
|
Constructor = O.constructor;
|
|
257
553
|
// cross-realm fallback
|
|
258
|
-
if (isConstructor(Constructor) && (Constructor === Array$2 || isArray$
|
|
554
|
+
if (isConstructor(Constructor) && (Constructor === Array$2 || isArray$5(Constructor.prototype))) {
|
|
259
555
|
Constructor = undefined;
|
|
260
556
|
} else if (isObject(Constructor)) {
|
|
261
557
|
Constructor = Constructor[SPECIES];
|
|
@@ -272,15 +568,17 @@ _export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
|
|
272
568
|
}
|
|
273
569
|
});
|
|
274
570
|
|
|
275
|
-
var slice$
|
|
571
|
+
var slice$5 = entryVirtual('Array').slice;
|
|
276
572
|
|
|
277
573
|
var ArrayPrototype$1 = Array.prototype;
|
|
278
574
|
|
|
279
|
-
var slice$
|
|
575
|
+
var slice$4 = function (it) {
|
|
280
576
|
var own = it.slice;
|
|
281
|
-
return it === ArrayPrototype$1 || (objectIsPrototypeOf(ArrayPrototype$1, it) && own === ArrayPrototype$1.slice) ? slice$
|
|
577
|
+
return it === ArrayPrototype$1 || (objectIsPrototypeOf(ArrayPrototype$1, it) && own === ArrayPrototype$1.slice) ? slice$5 : own;
|
|
282
578
|
};
|
|
283
579
|
|
|
580
|
+
var slice$3 = slice$4;
|
|
581
|
+
|
|
284
582
|
var slice$2 = slice$3;
|
|
285
583
|
|
|
286
584
|
var slice$1 = slice$2;
|
|
@@ -324,12 +622,12 @@ var isArrayIteratorMethod = function (it) {
|
|
|
324
622
|
return it !== undefined && (iterators.Array === it || ArrayPrototype[ITERATOR$1] === it);
|
|
325
623
|
};
|
|
326
624
|
|
|
327
|
-
var TypeError$
|
|
625
|
+
var TypeError$5 = global_1.TypeError;
|
|
328
626
|
|
|
329
627
|
var getIterator = function (argument, usingIterator) {
|
|
330
|
-
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$
|
|
628
|
+
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$4(argument) : usingIterator;
|
|
331
629
|
if (aCallable(iteratorMethod)) return anObject(functionCall(iteratorMethod, argument));
|
|
332
|
-
throw TypeError$
|
|
630
|
+
throw TypeError$5(tryToString(argument) + ' is not iterable');
|
|
333
631
|
};
|
|
334
632
|
|
|
335
633
|
var Array$1 = global_1.Array;
|
|
@@ -343,7 +641,7 @@ var arrayFrom = function from(arrayLike /* , mapfn = undefined, thisArg = undefi
|
|
|
343
641
|
var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
|
|
344
642
|
var mapping = mapfn !== undefined;
|
|
345
643
|
if (mapping) mapfn = functionBindContext(mapfn, argumentsLength > 2 ? arguments[2] : undefined);
|
|
346
|
-
var iteratorMethod = getIteratorMethod$
|
|
644
|
+
var iteratorMethod = getIteratorMethod$4(O);
|
|
347
645
|
var index = 0;
|
|
348
646
|
var length, result, step, iterator, next, value;
|
|
349
647
|
// if the target is not iterable or it's an array with the default iterator - use a simple case
|
|
@@ -415,7 +713,9 @@ _export({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {
|
|
|
415
713
|
from: arrayFrom
|
|
416
714
|
});
|
|
417
715
|
|
|
418
|
-
var from_1$
|
|
716
|
+
var from_1$4 = path.Array.from;
|
|
717
|
+
|
|
718
|
+
var from_1$3 = from_1$4;
|
|
419
719
|
|
|
420
720
|
var from_1$2 = from_1$3;
|
|
421
721
|
|
|
@@ -2063,18 +2363,643 @@ function useEmblaCarousel(options) {
|
|
|
2063
2363
|
return [setViewport, embla];
|
|
2064
2364
|
}
|
|
2065
2365
|
|
|
2066
|
-
var
|
|
2366
|
+
var iterator$4 = wellKnownSymbolWrapped.f('iterator');
|
|
2367
|
+
|
|
2368
|
+
var iterator$3 = iterator$4;
|
|
2369
|
+
|
|
2370
|
+
var iterator$2 = iterator$3;
|
|
2371
|
+
|
|
2372
|
+
var iterator$1 = iterator$2;
|
|
2373
|
+
|
|
2374
|
+
var iterator = iterator$1;
|
|
2375
|
+
|
|
2376
|
+
function _typeof(obj) {
|
|
2377
|
+
"@babel/helpers - typeof";
|
|
2378
|
+
|
|
2379
|
+
if (typeof symbol === "function" && typeof iterator === "symbol") {
|
|
2380
|
+
_typeof = function _typeof(obj) {
|
|
2381
|
+
return typeof obj;
|
|
2382
|
+
};
|
|
2383
|
+
} else {
|
|
2384
|
+
_typeof = function _typeof(obj) {
|
|
2385
|
+
return obj && typeof symbol === "function" && obj.constructor === symbol && obj !== symbol.prototype ? "symbol" : typeof obj;
|
|
2386
|
+
};
|
|
2387
|
+
}
|
|
2388
|
+
|
|
2389
|
+
return _typeof(obj);
|
|
2390
|
+
}
|
|
2391
|
+
|
|
2392
|
+
var redefineAll = function (target, src, options) {
|
|
2393
|
+
for (var key in src) {
|
|
2394
|
+
if (options && options.unsafe && target[key]) target[key] = src[key];
|
|
2395
|
+
else redefine(target, key, src[key], options);
|
|
2396
|
+
} return target;
|
|
2397
|
+
};
|
|
2398
|
+
|
|
2399
|
+
var TypeError$4 = global_1.TypeError;
|
|
2400
|
+
|
|
2401
|
+
var Result = function (stopped, result) {
|
|
2402
|
+
this.stopped = stopped;
|
|
2403
|
+
this.result = result;
|
|
2404
|
+
};
|
|
2405
|
+
|
|
2406
|
+
var ResultPrototype = Result.prototype;
|
|
2407
|
+
|
|
2408
|
+
var iterate = function (iterable, unboundFunction, options) {
|
|
2409
|
+
var that = options && options.that;
|
|
2410
|
+
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
|
2411
|
+
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
|
2412
|
+
var INTERRUPTED = !!(options && options.INTERRUPTED);
|
|
2413
|
+
var fn = functionBindContext(unboundFunction, that);
|
|
2414
|
+
var iterator, iterFn, index, length, result, next, step;
|
|
2415
|
+
|
|
2416
|
+
var stop = function (condition) {
|
|
2417
|
+
if (iterator) iteratorClose(iterator, 'normal', condition);
|
|
2418
|
+
return new Result(true, condition);
|
|
2419
|
+
};
|
|
2420
|
+
|
|
2421
|
+
var callFn = function (value) {
|
|
2422
|
+
if (AS_ENTRIES) {
|
|
2423
|
+
anObject(value);
|
|
2424
|
+
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
2425
|
+
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
2426
|
+
};
|
|
2427
|
+
|
|
2428
|
+
if (IS_ITERATOR) {
|
|
2429
|
+
iterator = iterable;
|
|
2430
|
+
} else {
|
|
2431
|
+
iterFn = getIteratorMethod$4(iterable);
|
|
2432
|
+
if (!iterFn) throw TypeError$4(tryToString(iterable) + ' is not iterable');
|
|
2433
|
+
// optimisation for array iterators
|
|
2434
|
+
if (isArrayIteratorMethod(iterFn)) {
|
|
2435
|
+
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
|
|
2436
|
+
result = callFn(iterable[index]);
|
|
2437
|
+
if (result && objectIsPrototypeOf(ResultPrototype, result)) return result;
|
|
2438
|
+
} return new Result(false);
|
|
2439
|
+
}
|
|
2440
|
+
iterator = getIterator(iterable, iterFn);
|
|
2441
|
+
}
|
|
2442
|
+
|
|
2443
|
+
next = iterator.next;
|
|
2444
|
+
while (!(step = functionCall(next, iterator)).done) {
|
|
2445
|
+
try {
|
|
2446
|
+
result = callFn(step.value);
|
|
2447
|
+
} catch (error) {
|
|
2448
|
+
iteratorClose(iterator, 'throw', error);
|
|
2449
|
+
}
|
|
2450
|
+
if (typeof result == 'object' && result && objectIsPrototypeOf(ResultPrototype, result)) return result;
|
|
2451
|
+
} return new Result(false);
|
|
2452
|
+
};
|
|
2453
|
+
|
|
2454
|
+
var TypeError$3 = global_1.TypeError;
|
|
2455
|
+
|
|
2456
|
+
var anInstance = function (it, Prototype) {
|
|
2457
|
+
if (objectIsPrototypeOf(Prototype, it)) return it;
|
|
2458
|
+
throw TypeError$3('Incorrect invocation');
|
|
2459
|
+
};
|
|
2460
|
+
|
|
2461
|
+
var defineProperty = objectDefineProperty.f;
|
|
2462
|
+
var forEach = arrayIteration.forEach;
|
|
2463
|
+
|
|
2464
|
+
|
|
2465
|
+
|
|
2466
|
+
var setInternalState$1 = internalState.set;
|
|
2467
|
+
var internalStateGetterFor$1 = internalState.getterFor;
|
|
2468
|
+
|
|
2469
|
+
var collection = function (CONSTRUCTOR_NAME, wrapper, common) {
|
|
2470
|
+
var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;
|
|
2471
|
+
var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;
|
|
2472
|
+
var ADDER = IS_MAP ? 'set' : 'add';
|
|
2473
|
+
var NativeConstructor = global_1[CONSTRUCTOR_NAME];
|
|
2474
|
+
var NativePrototype = NativeConstructor && NativeConstructor.prototype;
|
|
2475
|
+
var exported = {};
|
|
2476
|
+
var Constructor;
|
|
2477
|
+
|
|
2478
|
+
if (!descriptors || !isCallable(NativeConstructor)
|
|
2479
|
+
|| !(IS_WEAK || NativePrototype.forEach && !fails(function () { new NativeConstructor().entries().next(); }))
|
|
2480
|
+
) {
|
|
2481
|
+
// create collection constructor
|
|
2482
|
+
Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);
|
|
2483
|
+
internalMetadata.enable();
|
|
2484
|
+
} else {
|
|
2485
|
+
Constructor = wrapper(function (target, iterable) {
|
|
2486
|
+
setInternalState$1(anInstance(target, Prototype), {
|
|
2487
|
+
type: CONSTRUCTOR_NAME,
|
|
2488
|
+
collection: new NativeConstructor()
|
|
2489
|
+
});
|
|
2490
|
+
if (iterable != undefined) iterate(iterable, target[ADDER], { that: target, AS_ENTRIES: IS_MAP });
|
|
2491
|
+
});
|
|
2492
|
+
|
|
2493
|
+
var Prototype = Constructor.prototype;
|
|
2494
|
+
|
|
2495
|
+
var getInternalState = internalStateGetterFor$1(CONSTRUCTOR_NAME);
|
|
2496
|
+
|
|
2497
|
+
forEach(['add', 'clear', 'delete', 'forEach', 'get', 'has', 'set', 'keys', 'values', 'entries'], function (KEY) {
|
|
2498
|
+
var IS_ADDER = KEY == 'add' || KEY == 'set';
|
|
2499
|
+
if (KEY in NativePrototype && !(IS_WEAK && KEY == 'clear')) {
|
|
2500
|
+
createNonEnumerableProperty(Prototype, KEY, function (a, b) {
|
|
2501
|
+
var collection = getInternalState(this).collection;
|
|
2502
|
+
if (!IS_ADDER && IS_WEAK && !isObject(a)) return KEY == 'get' ? undefined : false;
|
|
2503
|
+
var result = collection[KEY](a === 0 ? 0 : a, b);
|
|
2504
|
+
return IS_ADDER ? this : result;
|
|
2505
|
+
});
|
|
2506
|
+
}
|
|
2507
|
+
});
|
|
2508
|
+
|
|
2509
|
+
IS_WEAK || defineProperty(Prototype, 'size', {
|
|
2510
|
+
configurable: true,
|
|
2511
|
+
get: function () {
|
|
2512
|
+
return getInternalState(this).collection.size;
|
|
2513
|
+
}
|
|
2514
|
+
});
|
|
2515
|
+
}
|
|
2516
|
+
|
|
2517
|
+
setToStringTag(Constructor, CONSTRUCTOR_NAME, false, true);
|
|
2518
|
+
|
|
2519
|
+
exported[CONSTRUCTOR_NAME] = Constructor;
|
|
2520
|
+
_export({ global: true, forced: true }, exported);
|
|
2521
|
+
|
|
2522
|
+
if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);
|
|
2523
|
+
|
|
2524
|
+
return Constructor;
|
|
2525
|
+
};
|
|
2526
|
+
|
|
2527
|
+
var getWeakData = internalMetadata.getWeakData;
|
|
2528
|
+
|
|
2529
|
+
|
|
2530
|
+
|
|
2531
|
+
|
|
2532
|
+
|
|
2533
|
+
|
|
2534
|
+
|
|
2535
|
+
|
|
2536
|
+
var setInternalState = internalState.set;
|
|
2537
|
+
var internalStateGetterFor = internalState.getterFor;
|
|
2538
|
+
var find = arrayIteration.find;
|
|
2539
|
+
var findIndex = arrayIteration.findIndex;
|
|
2540
|
+
var splice = functionUncurryThis([].splice);
|
|
2541
|
+
var id = 0;
|
|
2542
|
+
|
|
2543
|
+
// fallback for uncaught frozen keys
|
|
2544
|
+
var uncaughtFrozenStore = function (store) {
|
|
2545
|
+
return store.frozen || (store.frozen = new UncaughtFrozenStore());
|
|
2546
|
+
};
|
|
2547
|
+
|
|
2548
|
+
var UncaughtFrozenStore = function () {
|
|
2549
|
+
this.entries = [];
|
|
2550
|
+
};
|
|
2551
|
+
|
|
2552
|
+
var findUncaughtFrozen = function (store, key) {
|
|
2553
|
+
return find(store.entries, function (it) {
|
|
2554
|
+
return it[0] === key;
|
|
2555
|
+
});
|
|
2556
|
+
};
|
|
2557
|
+
|
|
2558
|
+
UncaughtFrozenStore.prototype = {
|
|
2559
|
+
get: function (key) {
|
|
2560
|
+
var entry = findUncaughtFrozen(this, key);
|
|
2561
|
+
if (entry) return entry[1];
|
|
2562
|
+
},
|
|
2563
|
+
has: function (key) {
|
|
2564
|
+
return !!findUncaughtFrozen(this, key);
|
|
2565
|
+
},
|
|
2566
|
+
set: function (key, value) {
|
|
2567
|
+
var entry = findUncaughtFrozen(this, key);
|
|
2568
|
+
if (entry) entry[1] = value;
|
|
2569
|
+
else this.entries.push([key, value]);
|
|
2570
|
+
},
|
|
2571
|
+
'delete': function (key) {
|
|
2572
|
+
var index = findIndex(this.entries, function (it) {
|
|
2573
|
+
return it[0] === key;
|
|
2574
|
+
});
|
|
2575
|
+
if (~index) splice(this.entries, index, 1);
|
|
2576
|
+
return !!~index;
|
|
2577
|
+
}
|
|
2578
|
+
};
|
|
2067
2579
|
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2580
|
+
var collectionWeak = {
|
|
2581
|
+
getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {
|
|
2582
|
+
var Constructor = wrapper(function (that, iterable) {
|
|
2583
|
+
anInstance(that, Prototype);
|
|
2584
|
+
setInternalState(that, {
|
|
2585
|
+
type: CONSTRUCTOR_NAME,
|
|
2586
|
+
id: id++,
|
|
2587
|
+
frozen: undefined
|
|
2588
|
+
});
|
|
2589
|
+
if (iterable != undefined) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
|
|
2590
|
+
});
|
|
2591
|
+
|
|
2592
|
+
var Prototype = Constructor.prototype;
|
|
2593
|
+
|
|
2594
|
+
var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);
|
|
2595
|
+
|
|
2596
|
+
var define = function (that, key, value) {
|
|
2597
|
+
var state = getInternalState(that);
|
|
2598
|
+
var data = getWeakData(anObject(key), true);
|
|
2599
|
+
if (data === true) uncaughtFrozenStore(state).set(key, value);
|
|
2600
|
+
else data[state.id] = value;
|
|
2601
|
+
return that;
|
|
2602
|
+
};
|
|
2603
|
+
|
|
2604
|
+
redefineAll(Prototype, {
|
|
2605
|
+
// `{ WeakMap, WeakSet }.prototype.delete(key)` methods
|
|
2606
|
+
// https://tc39.es/ecma262/#sec-weakmap.prototype.delete
|
|
2607
|
+
// https://tc39.es/ecma262/#sec-weakset.prototype.delete
|
|
2608
|
+
'delete': function (key) {
|
|
2609
|
+
var state = getInternalState(this);
|
|
2610
|
+
if (!isObject(key)) return false;
|
|
2611
|
+
var data = getWeakData(key);
|
|
2612
|
+
if (data === true) return uncaughtFrozenStore(state)['delete'](key);
|
|
2613
|
+
return data && hasOwnProperty_1(data, state.id) && delete data[state.id];
|
|
2614
|
+
},
|
|
2615
|
+
// `{ WeakMap, WeakSet }.prototype.has(key)` methods
|
|
2616
|
+
// https://tc39.es/ecma262/#sec-weakmap.prototype.has
|
|
2617
|
+
// https://tc39.es/ecma262/#sec-weakset.prototype.has
|
|
2618
|
+
has: function has(key) {
|
|
2619
|
+
var state = getInternalState(this);
|
|
2620
|
+
if (!isObject(key)) return false;
|
|
2621
|
+
var data = getWeakData(key);
|
|
2622
|
+
if (data === true) return uncaughtFrozenStore(state).has(key);
|
|
2623
|
+
return data && hasOwnProperty_1(data, state.id);
|
|
2624
|
+
}
|
|
2625
|
+
});
|
|
2626
|
+
|
|
2627
|
+
redefineAll(Prototype, IS_MAP ? {
|
|
2628
|
+
// `WeakMap.prototype.get(key)` method
|
|
2629
|
+
// https://tc39.es/ecma262/#sec-weakmap.prototype.get
|
|
2630
|
+
get: function get(key) {
|
|
2631
|
+
var state = getInternalState(this);
|
|
2632
|
+
if (isObject(key)) {
|
|
2633
|
+
var data = getWeakData(key);
|
|
2634
|
+
if (data === true) return uncaughtFrozenStore(state).get(key);
|
|
2635
|
+
return data ? data[state.id] : undefined;
|
|
2636
|
+
}
|
|
2637
|
+
},
|
|
2638
|
+
// `WeakMap.prototype.set(key, value)` method
|
|
2639
|
+
// https://tc39.es/ecma262/#sec-weakmap.prototype.set
|
|
2640
|
+
set: function set(key, value) {
|
|
2641
|
+
return define(this, key, value);
|
|
2642
|
+
}
|
|
2643
|
+
} : {
|
|
2644
|
+
// `WeakSet.prototype.add(value)` method
|
|
2645
|
+
// https://tc39.es/ecma262/#sec-weakset.prototype.add
|
|
2646
|
+
add: function add(value) {
|
|
2647
|
+
return define(this, value, true);
|
|
2648
|
+
}
|
|
2649
|
+
});
|
|
2650
|
+
|
|
2651
|
+
return Constructor;
|
|
2652
|
+
}
|
|
2653
|
+
};
|
|
2072
2654
|
|
|
2073
|
-
var
|
|
2074
|
-
|
|
2655
|
+
var enforceInternalState = internalState.enforce;
|
|
2656
|
+
|
|
2657
|
+
|
|
2658
|
+
var IS_IE11 = !global_1.ActiveXObject && 'ActiveXObject' in global_1;
|
|
2659
|
+
var InternalWeakMap;
|
|
2660
|
+
|
|
2661
|
+
var wrapper = function (init) {
|
|
2662
|
+
return function WeakMap() {
|
|
2663
|
+
return init(this, arguments.length ? arguments[0] : undefined);
|
|
2664
|
+
};
|
|
2075
2665
|
};
|
|
2076
2666
|
|
|
2667
|
+
// `WeakMap` constructor
|
|
2668
|
+
// https://tc39.es/ecma262/#sec-weakmap-constructor
|
|
2669
|
+
var $WeakMap = collection('WeakMap', wrapper, collectionWeak);
|
|
2670
|
+
|
|
2671
|
+
// IE11 WeakMap frozen keys fix
|
|
2672
|
+
// We can't use feature detection because it crash some old IE builds
|
|
2673
|
+
// https://github.com/zloirock/core-js/issues/485
|
|
2674
|
+
if (nativeWeakMap && IS_IE11) {
|
|
2675
|
+
InternalWeakMap = collectionWeak.getConstructor(wrapper, 'WeakMap', true);
|
|
2676
|
+
internalMetadata.enable();
|
|
2677
|
+
var WeakMapPrototype = $WeakMap.prototype;
|
|
2678
|
+
var nativeDelete = functionUncurryThis(WeakMapPrototype['delete']);
|
|
2679
|
+
var nativeHas = functionUncurryThis(WeakMapPrototype.has);
|
|
2680
|
+
var nativeGet = functionUncurryThis(WeakMapPrototype.get);
|
|
2681
|
+
var nativeSet = functionUncurryThis(WeakMapPrototype.set);
|
|
2682
|
+
redefineAll(WeakMapPrototype, {
|
|
2683
|
+
'delete': function (key) {
|
|
2684
|
+
if (isObject(key) && !objectIsExtensible(key)) {
|
|
2685
|
+
var state = enforceInternalState(this);
|
|
2686
|
+
if (!state.frozen) state.frozen = new InternalWeakMap();
|
|
2687
|
+
return nativeDelete(this, key) || state.frozen['delete'](key);
|
|
2688
|
+
} return nativeDelete(this, key);
|
|
2689
|
+
},
|
|
2690
|
+
has: function has(key) {
|
|
2691
|
+
if (isObject(key) && !objectIsExtensible(key)) {
|
|
2692
|
+
var state = enforceInternalState(this);
|
|
2693
|
+
if (!state.frozen) state.frozen = new InternalWeakMap();
|
|
2694
|
+
return nativeHas(this, key) || state.frozen.has(key);
|
|
2695
|
+
} return nativeHas(this, key);
|
|
2696
|
+
},
|
|
2697
|
+
get: function get(key) {
|
|
2698
|
+
if (isObject(key) && !objectIsExtensible(key)) {
|
|
2699
|
+
var state = enforceInternalState(this);
|
|
2700
|
+
if (!state.frozen) state.frozen = new InternalWeakMap();
|
|
2701
|
+
return nativeHas(this, key) ? nativeGet(this, key) : state.frozen.get(key);
|
|
2702
|
+
} return nativeGet(this, key);
|
|
2703
|
+
},
|
|
2704
|
+
set: function set(key, value) {
|
|
2705
|
+
if (isObject(key) && !objectIsExtensible(key)) {
|
|
2706
|
+
var state = enforceInternalState(this);
|
|
2707
|
+
if (!state.frozen) state.frozen = new InternalWeakMap();
|
|
2708
|
+
nativeHas(this, key) ? nativeSet(this, key, value) : state.frozen.set(key, value);
|
|
2709
|
+
} else nativeSet(this, key, value);
|
|
2710
|
+
return this;
|
|
2711
|
+
}
|
|
2712
|
+
});
|
|
2713
|
+
}
|
|
2714
|
+
|
|
2715
|
+
var weakMap$4 = path.WeakMap;
|
|
2716
|
+
|
|
2717
|
+
var weakMap$3 = weakMap$4;
|
|
2718
|
+
|
|
2719
|
+
var weakMap$2 = weakMap$3;
|
|
2720
|
+
|
|
2721
|
+
// `Map.prototype.emplace` method
|
|
2722
|
+
// https://github.com/thumbsupep/proposal-upsert
|
|
2723
|
+
var mapEmplace = function emplace(key, handler) {
|
|
2724
|
+
var map = anObject(this);
|
|
2725
|
+
var get = aCallable(map.get);
|
|
2726
|
+
var has = aCallable(map.has);
|
|
2727
|
+
var set = aCallable(map.set);
|
|
2728
|
+
var value = (functionCall(has, map, key) && 'update' in handler)
|
|
2729
|
+
? handler.update(functionCall(get, map, key), key, map)
|
|
2730
|
+
: handler.insert(key, map);
|
|
2731
|
+
functionCall(set, map, key, value);
|
|
2732
|
+
return value;
|
|
2733
|
+
};
|
|
2734
|
+
|
|
2735
|
+
// `WeakMap.prototype.emplace` method
|
|
2736
|
+
// https://github.com/tc39/proposal-upsert
|
|
2737
|
+
_export({ target: 'WeakMap', proto: true, real: true, forced: true }, {
|
|
2738
|
+
emplace: mapEmplace
|
|
2739
|
+
});
|
|
2740
|
+
|
|
2741
|
+
var TypeError$2 = global_1.TypeError;
|
|
2742
|
+
|
|
2743
|
+
// `Assert: IsConstructor(argument) is true`
|
|
2744
|
+
var aConstructor = function (argument) {
|
|
2745
|
+
if (isConstructor(argument)) return argument;
|
|
2746
|
+
throw TypeError$2(tryToString(argument) + ' is not a constructor');
|
|
2747
|
+
};
|
|
2748
|
+
|
|
2749
|
+
// https://tc39.github.io/proposal-setmap-offrom/
|
|
2750
|
+
|
|
2751
|
+
|
|
2752
|
+
|
|
2753
|
+
|
|
2754
|
+
|
|
2755
|
+
|
|
2756
|
+
var push = [].push;
|
|
2757
|
+
|
|
2758
|
+
var collectionFrom = function from(source /* , mapFn, thisArg */) {
|
|
2759
|
+
var length = arguments.length;
|
|
2760
|
+
var mapFn = length > 1 ? arguments[1] : undefined;
|
|
2761
|
+
var mapping, array, n, boundFunction;
|
|
2762
|
+
aConstructor(this);
|
|
2763
|
+
mapping = mapFn !== undefined;
|
|
2764
|
+
if (mapping) aCallable(mapFn);
|
|
2765
|
+
if (source == undefined) return new this();
|
|
2766
|
+
array = [];
|
|
2767
|
+
if (mapping) {
|
|
2768
|
+
n = 0;
|
|
2769
|
+
boundFunction = functionBindContext(mapFn, length > 2 ? arguments[2] : undefined);
|
|
2770
|
+
iterate(source, function (nextItem) {
|
|
2771
|
+
functionCall(push, array, boundFunction(nextItem, n++));
|
|
2772
|
+
});
|
|
2773
|
+
} else {
|
|
2774
|
+
iterate(source, push, { that: array });
|
|
2775
|
+
}
|
|
2776
|
+
return new this(array);
|
|
2777
|
+
};
|
|
2778
|
+
|
|
2779
|
+
// `WeakMap.from` method
|
|
2780
|
+
// https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.from
|
|
2781
|
+
_export({ target: 'WeakMap', stat: true, forced: true }, {
|
|
2782
|
+
from: collectionFrom
|
|
2783
|
+
});
|
|
2784
|
+
|
|
2785
|
+
// https://tc39.github.io/proposal-setmap-offrom/
|
|
2786
|
+
var collectionOf = function of() {
|
|
2787
|
+
return new this(arraySlice(arguments));
|
|
2788
|
+
};
|
|
2789
|
+
|
|
2790
|
+
// `WeakMap.of` method
|
|
2791
|
+
// https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.of
|
|
2792
|
+
_export({ target: 'WeakMap', stat: true, forced: true }, {
|
|
2793
|
+
of: collectionOf
|
|
2794
|
+
});
|
|
2795
|
+
|
|
2796
|
+
// https://github.com/tc39/collection-methods
|
|
2797
|
+
var collectionDeleteAll = function deleteAll(/* ...elements */) {
|
|
2798
|
+
var collection = anObject(this);
|
|
2799
|
+
var remover = aCallable(collection['delete']);
|
|
2800
|
+
var allDeleted = true;
|
|
2801
|
+
var wasDeleted;
|
|
2802
|
+
for (var k = 0, len = arguments.length; k < len; k++) {
|
|
2803
|
+
wasDeleted = functionCall(remover, collection, arguments[k]);
|
|
2804
|
+
allDeleted = allDeleted && wasDeleted;
|
|
2805
|
+
}
|
|
2806
|
+
return !!allDeleted;
|
|
2807
|
+
};
|
|
2808
|
+
|
|
2809
|
+
// `WeakMap.prototype.deleteAll` method
|
|
2810
|
+
// https://github.com/tc39/proposal-collection-methods
|
|
2811
|
+
_export({ target: 'WeakMap', proto: true, real: true, forced: true }, {
|
|
2812
|
+
deleteAll: collectionDeleteAll
|
|
2813
|
+
});
|
|
2814
|
+
|
|
2815
|
+
var TypeError$1 = global_1.TypeError;
|
|
2816
|
+
|
|
2817
|
+
// `Map.prototype.upsert` method
|
|
2818
|
+
// https://github.com/thumbsupep/proposal-upsert
|
|
2819
|
+
var mapUpsert = function upsert(key, updateFn /* , insertFn */) {
|
|
2820
|
+
var map = anObject(this);
|
|
2821
|
+
var get = aCallable(map.get);
|
|
2822
|
+
var has = aCallable(map.has);
|
|
2823
|
+
var set = aCallable(map.set);
|
|
2824
|
+
var insertFn = arguments.length > 2 ? arguments[2] : undefined;
|
|
2825
|
+
var value;
|
|
2826
|
+
if (!isCallable(updateFn) && !isCallable(insertFn)) {
|
|
2827
|
+
throw TypeError$1('At least one callback required');
|
|
2828
|
+
}
|
|
2829
|
+
if (functionCall(has, map, key)) {
|
|
2830
|
+
value = functionCall(get, map, key);
|
|
2831
|
+
if (isCallable(updateFn)) {
|
|
2832
|
+
value = updateFn(value);
|
|
2833
|
+
functionCall(set, map, key, value);
|
|
2834
|
+
}
|
|
2835
|
+
} else if (isCallable(insertFn)) {
|
|
2836
|
+
value = insertFn();
|
|
2837
|
+
functionCall(set, map, key, value);
|
|
2838
|
+
} return value;
|
|
2839
|
+
};
|
|
2840
|
+
|
|
2841
|
+
// TODO: remove from `core-js@4`
|
|
2842
|
+
|
|
2843
|
+
|
|
2844
|
+
|
|
2845
|
+
// `WeakMap.prototype.upsert` method (replaced by `WeakMap.prototype.emplace`)
|
|
2846
|
+
// https://github.com/tc39/proposal-upsert
|
|
2847
|
+
_export({ target: 'WeakMap', proto: true, real: true, forced: true }, {
|
|
2848
|
+
upsert: mapUpsert
|
|
2849
|
+
});
|
|
2850
|
+
|
|
2851
|
+
// TODO: remove from `core-js@4`
|
|
2852
|
+
|
|
2853
|
+
|
|
2854
|
+
var weakMap$1 = weakMap$2;
|
|
2855
|
+
|
|
2856
|
+
var weakMap = weakMap$1;
|
|
2857
|
+
|
|
2858
|
+
var getOwnPropertyDescriptor$2 = getOwnPropertyDescriptor$3;
|
|
2859
|
+
|
|
2860
|
+
var getOwnPropertyDescriptor$1 = getOwnPropertyDescriptor$2;
|
|
2861
|
+
|
|
2862
|
+
var getOwnPropertyDescriptor = getOwnPropertyDescriptor$1;
|
|
2863
|
+
|
|
2864
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
2865
|
+
if (typeof weakMap !== "function") return null;
|
|
2866
|
+
var cacheBabelInterop = new weakMap();
|
|
2867
|
+
var cacheNodeInterop = new weakMap();
|
|
2868
|
+
return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) {
|
|
2869
|
+
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
2870
|
+
})(nodeInterop);
|
|
2871
|
+
}
|
|
2872
|
+
|
|
2873
|
+
function _interopRequireWildcard(obj, nodeInterop) {
|
|
2874
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
|
2875
|
+
return obj;
|
|
2876
|
+
}
|
|
2877
|
+
|
|
2878
|
+
if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") {
|
|
2879
|
+
return {
|
|
2880
|
+
"default": obj
|
|
2881
|
+
};
|
|
2882
|
+
}
|
|
2883
|
+
|
|
2884
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
2885
|
+
|
|
2886
|
+
if (cache && cache.has(obj)) {
|
|
2887
|
+
return cache.get(obj);
|
|
2888
|
+
}
|
|
2889
|
+
|
|
2890
|
+
var newObj = {};
|
|
2891
|
+
var hasPropertyDescriptor = defineProperty$1 && getOwnPropertyDescriptor;
|
|
2892
|
+
|
|
2893
|
+
for (var key in obj) {
|
|
2894
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
2895
|
+
var desc = hasPropertyDescriptor ? getOwnPropertyDescriptor(obj, key) : null;
|
|
2896
|
+
|
|
2897
|
+
if (desc && (desc.get || desc.set)) {
|
|
2898
|
+
defineProperty$1(newObj, key, desc);
|
|
2899
|
+
} else {
|
|
2900
|
+
newObj[key] = obj[key];
|
|
2901
|
+
}
|
|
2902
|
+
}
|
|
2903
|
+
}
|
|
2904
|
+
|
|
2905
|
+
newObj["default"] = obj;
|
|
2906
|
+
|
|
2907
|
+
if (cache) {
|
|
2908
|
+
cache.set(obj, newObj);
|
|
2909
|
+
}
|
|
2910
|
+
|
|
2911
|
+
return newObj;
|
|
2912
|
+
}
|
|
2913
|
+
|
|
2914
|
+
function _interopRequireDefault(obj) {
|
|
2915
|
+
return obj && obj.__esModule ? obj : {
|
|
2916
|
+
"default": obj
|
|
2917
|
+
};
|
|
2918
|
+
}
|
|
2919
|
+
|
|
2920
|
+
var ChevronLeft = createCommonjsModule(function (module, exports) {
|
|
2921
|
+
|
|
2922
|
+
|
|
2923
|
+
|
|
2924
|
+
|
|
2925
|
+
|
|
2926
|
+
|
|
2927
|
+
|
|
2928
|
+
defineProperty$2(exports, "__esModule", {
|
|
2929
|
+
value: true
|
|
2930
|
+
});
|
|
2931
|
+
|
|
2932
|
+
exports.default = void 0;
|
|
2933
|
+
|
|
2934
|
+
var _extends2 = _interopRequireDefault(_extends$1);
|
|
2935
|
+
|
|
2936
|
+
var React$1 = _interopRequireWildcard(React);
|
|
2937
|
+
|
|
2938
|
+
function SvgChevronLeft(props, svgRef) {
|
|
2939
|
+
return /*#__PURE__*/React$1.createElement("svg", (0, _extends2.default)({}, props, {
|
|
2940
|
+
viewBox: "0 0 1024 1024",
|
|
2941
|
+
fill: "currentColor",
|
|
2942
|
+
className: "Icon ".concat(props.className ? props.className : ''),
|
|
2943
|
+
ref: svgRef
|
|
2944
|
+
}), /*#__PURE__*/React$1.createElement("path", {
|
|
2945
|
+
d: "M199.5 480L762.8 10.5c21.3-17.1 51.2-12.8 64 8.5 17.1 25.6 12.8 55.5-8.5 68.3L306.1 514.1l516.4 426.8c21.3 17.1 25.6 42.7 8.5 64-17.1 21.3-42.7 25.6-64 8.5L199.5 556.8c-12.8-8.5-17.1-21.3-17.1-38.4 0-17.1 4.2-29.9 17.1-38.4z"
|
|
2946
|
+
}));
|
|
2947
|
+
}
|
|
2948
|
+
|
|
2949
|
+
var ForwardRef = React$1.forwardRef(SvgChevronLeft);
|
|
2950
|
+
var _default = ForwardRef;
|
|
2951
|
+
exports.default = _default;
|
|
2952
|
+
});
|
|
2953
|
+
|
|
2954
|
+
unwrapExports(ChevronLeft);
|
|
2955
|
+
|
|
2956
|
+
var chevronLeft = ChevronLeft;
|
|
2957
|
+
|
|
2958
|
+
var ChevronRight = createCommonjsModule(function (module, exports) {
|
|
2959
|
+
|
|
2960
|
+
|
|
2961
|
+
|
|
2962
|
+
|
|
2963
|
+
|
|
2964
|
+
|
|
2965
|
+
|
|
2966
|
+
defineProperty$2(exports, "__esModule", {
|
|
2967
|
+
value: true
|
|
2968
|
+
});
|
|
2969
|
+
|
|
2970
|
+
exports.default = void 0;
|
|
2971
|
+
|
|
2972
|
+
var _extends2 = _interopRequireDefault(_extends$1);
|
|
2973
|
+
|
|
2974
|
+
var React$1 = _interopRequireWildcard(React);
|
|
2975
|
+
|
|
2976
|
+
function SvgChevronRight(props, svgRef) {
|
|
2977
|
+
return /*#__PURE__*/React$1.createElement("svg", (0, _extends2.default)({}, props, {
|
|
2978
|
+
viewBox: "0 0 1024 1024",
|
|
2979
|
+
fill: "currentColor",
|
|
2980
|
+
className: "Icon ".concat(props.className ? props.className : ''),
|
|
2981
|
+
ref: svgRef
|
|
2982
|
+
}), /*#__PURE__*/React$1.createElement("path", {
|
|
2983
|
+
d: "M841.6 518.4c0 17.1-4.3 29.9-17.1 38.4L257 1013.4c-21.3 17.1-46.9 12.8-64-8.5s-12.8-46.9 8.5-64l516.4-426.8L205.7 87.4c-21.3-12.8-25.6-42.7-8.5-68.3 12.8-21.3 42.7-25.6 64-8.5l563.3 469.5c12.9 8.5 17.1 21.3 17.1 38.3z"
|
|
2984
|
+
}));
|
|
2985
|
+
}
|
|
2986
|
+
|
|
2987
|
+
var ForwardRef = React$1.forwardRef(SvgChevronRight);
|
|
2988
|
+
var _default = ForwardRef;
|
|
2989
|
+
exports.default = _default;
|
|
2990
|
+
});
|
|
2991
|
+
|
|
2992
|
+
unwrapExports(ChevronRight);
|
|
2993
|
+
|
|
2994
|
+
var chevronRight = ChevronRight;
|
|
2995
|
+
|
|
2996
|
+
var _s = $RefreshSig$();
|
|
2997
|
+
|
|
2998
|
+
var _excluded = ["images", "width", "height"];
|
|
2999
|
+
|
|
2077
3000
|
var ImageCarousel = function ImageCarousel(_ref) {
|
|
3001
|
+
_s();
|
|
3002
|
+
|
|
2078
3003
|
var images = _ref.images,
|
|
2079
3004
|
width = _ref.width,
|
|
2080
3005
|
height = _ref.height,
|
|
@@ -2158,7 +3083,7 @@ var ImageCarousel = function ImageCarousel(_ref) {
|
|
|
2158
3083
|
src: image.src,
|
|
2159
3084
|
alt: image.alt
|
|
2160
3085
|
})));
|
|
2161
|
-
}))), /*#__PURE__*/React.createElement(
|
|
3086
|
+
}))), /*#__PURE__*/React.createElement(Button, {
|
|
2162
3087
|
onClick: scrollPrev,
|
|
2163
3088
|
width: "16",
|
|
2164
3089
|
height: "100%",
|
|
@@ -2182,7 +3107,7 @@ var ImageCarousel = function ImageCarousel(_ref) {
|
|
|
2182
3107
|
borderRadius: "50%",
|
|
2183
3108
|
bgColor: "black",
|
|
2184
3109
|
opacity: "0.6"
|
|
2185
|
-
}, /*#__PURE__*/React.createElement(
|
|
3110
|
+
}, /*#__PURE__*/React.createElement(chevronLeft, null))), /*#__PURE__*/React.createElement(Button, {
|
|
2186
3111
|
onClick: scrollNext,
|
|
2187
3112
|
width: "16",
|
|
2188
3113
|
height: "100%",
|
|
@@ -2206,7 +3131,7 @@ var ImageCarousel = function ImageCarousel(_ref) {
|
|
|
2206
3131
|
borderRadius: "50%",
|
|
2207
3132
|
bgColor: "black",
|
|
2208
3133
|
opacity: "0.6"
|
|
2209
|
-
}, /*#__PURE__*/React.createElement(
|
|
3134
|
+
}, /*#__PURE__*/React.createElement(chevronRight, null))), /*#__PURE__*/React.createElement(Box, {
|
|
2210
3135
|
color: "white",
|
|
2211
3136
|
borderRadius: "1rem",
|
|
2212
3137
|
bgColor: "black",
|
|
@@ -2221,10 +3146,11 @@ var ImageCarousel = function ImageCarousel(_ref) {
|
|
|
2221
3146
|
}, selectedIndex + 1, "/", images.length));
|
|
2222
3147
|
};
|
|
2223
3148
|
|
|
2224
|
-
|
|
3149
|
+
_s(ImageCarousel, "jxp7tUf1mQMbqWwZGJWfZ+Ibdl8=", false, function () {
|
|
2225
3150
|
return [useEmblaCarousel];
|
|
2226
3151
|
});
|
|
2227
3152
|
|
|
3153
|
+
_c = ImageCarousel;
|
|
2228
3154
|
ImageCarousel.propTypes = {
|
|
2229
3155
|
/** Array of images with src and alt */
|
|
2230
3156
|
images: PropTypes.arrayOf(PropTypes.shape({
|
|
@@ -2238,23 +3164,10 @@ ImageCarousel.propTypes = {
|
|
|
2238
3164
|
/** Width of the carousel in rem */
|
|
2239
3165
|
width: PropTypes.number
|
|
2240
3166
|
};
|
|
2241
|
-
var _default = ImageCarousel;
|
|
2242
|
-
|
|
2243
|
-
(function () {
|
|
2244
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
2245
|
-
|
|
2246
|
-
if (!reactHotLoader) {
|
|
2247
|
-
return;
|
|
2248
|
-
}
|
|
2249
3167
|
|
|
2250
|
-
|
|
2251
|
-
reactHotLoader.register(_default, "default", "/tmp/build/d4767a07/beta-pr/src/v2/components/ImageCarousel/ImageCarousel.jsx");
|
|
2252
|
-
})();
|
|
3168
|
+
var _c;
|
|
2253
3169
|
|
|
2254
|
-
(
|
|
2255
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
2256
|
-
leaveModule && leaveModule(module);
|
|
2257
|
-
})();
|
|
3170
|
+
$RefreshReg$(_c, "ImageCarousel");
|
|
2258
3171
|
|
|
2259
|
-
export default
|
|
2260
|
-
//# sourceMappingURL=ImageCarousel-
|
|
3172
|
+
export default ImageCarousel;
|
|
3173
|
+
//# sourceMappingURL=ImageCarousel-3b5e450a.js.map
|