@sinco/react 1.0.3 → 1.0.4-rc.1
Sign up to get free protection for your applications and to get access to all the features.
package/index.js
CHANGED
@@ -9,7 +9,7 @@ var check = function (it) {
|
|
9
9
|
};
|
10
10
|
|
11
11
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
12
|
-
var global$
|
12
|
+
var global$d =
|
13
13
|
// eslint-disable-next-line es/no-global-this -- safe
|
14
14
|
check(typeof globalThis == 'object' && globalThis) ||
|
15
15
|
check(typeof window == 'object' && window) ||
|
@@ -91,30 +91,30 @@ var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
|
|
91
91
|
};
|
92
92
|
};
|
93
93
|
|
94
|
-
var uncurryThis$
|
94
|
+
var uncurryThis$b = functionUncurryThis;
|
95
95
|
|
96
|
-
var toString$
|
97
|
-
var stringSlice$
|
96
|
+
var toString$3 = uncurryThis$b({}.toString);
|
97
|
+
var stringSlice$2 = uncurryThis$b(''.slice);
|
98
98
|
|
99
|
-
var classofRaw = function (it) {
|
100
|
-
return stringSlice$
|
99
|
+
var classofRaw$1 = function (it) {
|
100
|
+
return stringSlice$2(toString$3(it), 8, -1);
|
101
101
|
};
|
102
102
|
|
103
|
-
var uncurryThis$
|
103
|
+
var uncurryThis$a = functionUncurryThis;
|
104
104
|
var fails$8 = fails$b;
|
105
|
-
var classof = classofRaw;
|
105
|
+
var classof$2 = classofRaw$1;
|
106
106
|
|
107
|
-
var $Object$
|
108
|
-
var split = uncurryThis$
|
107
|
+
var $Object$4 = Object;
|
108
|
+
var split = uncurryThis$a(''.split);
|
109
109
|
|
110
110
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
111
111
|
var indexedObject = fails$8(function () {
|
112
112
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
113
113
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
114
|
-
return !$Object$
|
114
|
+
return !$Object$4('z').propertyIsEnumerable(0);
|
115
115
|
}) ? function (it) {
|
116
|
-
return classof(it) == 'String' ? split(it, '') : $Object$
|
117
|
-
} : $Object$
|
116
|
+
return classof$2(it) == 'String' ? split(it, '') : $Object$4(it);
|
117
|
+
} : $Object$4;
|
118
118
|
|
119
119
|
// we can't use just `it == null` since of `document.all` special case
|
120
120
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
@@ -158,45 +158,45 @@ var documentAll$1 = $documentAll$1.all;
|
|
158
158
|
|
159
159
|
// `IsCallable` abstract operation
|
160
160
|
// https://tc39.es/ecma262/#sec-iscallable
|
161
|
-
var isCallable$
|
161
|
+
var isCallable$g = $documentAll$1.IS_HTMLDDA ? function (argument) {
|
162
162
|
return typeof argument == 'function' || argument === documentAll$1;
|
163
163
|
} : function (argument) {
|
164
164
|
return typeof argument == 'function';
|
165
165
|
};
|
166
166
|
|
167
|
-
var isCallable$
|
167
|
+
var isCallable$f = isCallable$g;
|
168
168
|
var $documentAll = documentAll_1;
|
169
169
|
|
170
170
|
var documentAll = $documentAll.all;
|
171
171
|
|
172
172
|
var isObject$6 = $documentAll.IS_HTMLDDA ? function (it) {
|
173
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
173
|
+
return typeof it == 'object' ? it !== null : isCallable$f(it) || it === documentAll;
|
174
174
|
} : function (it) {
|
175
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
175
|
+
return typeof it == 'object' ? it !== null : isCallable$f(it);
|
176
176
|
};
|
177
177
|
|
178
|
-
var global$
|
179
|
-
var isCallable$
|
178
|
+
var global$c = global$d;
|
179
|
+
var isCallable$e = isCallable$g;
|
180
180
|
|
181
181
|
var aFunction = function (argument) {
|
182
|
-
return isCallable$
|
182
|
+
return isCallable$e(argument) ? argument : undefined;
|
183
183
|
};
|
184
184
|
|
185
185
|
var getBuiltIn$3 = function (namespace, method) {
|
186
|
-
return arguments.length < 2 ? aFunction(global$
|
186
|
+
return arguments.length < 2 ? aFunction(global$c[namespace]) : global$c[namespace] && global$c[namespace][method];
|
187
187
|
};
|
188
188
|
|
189
|
-
var uncurryThis$
|
189
|
+
var uncurryThis$9 = functionUncurryThis;
|
190
190
|
|
191
|
-
var objectIsPrototypeOf = uncurryThis$
|
191
|
+
var objectIsPrototypeOf = uncurryThis$9({}.isPrototypeOf);
|
192
192
|
|
193
193
|
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
194
194
|
|
195
|
-
var global$
|
195
|
+
var global$b = global$d;
|
196
196
|
var userAgent = engineUserAgent;
|
197
197
|
|
198
|
-
var process$1 = global$
|
199
|
-
var Deno = global$
|
198
|
+
var process$1 = global$b.process;
|
199
|
+
var Deno = global$b.Deno;
|
200
200
|
var versions = process$1 && process$1.versions || Deno && Deno.version;
|
201
201
|
var v8 = versions && versions.v8;
|
202
202
|
var match$1, version;
|
@@ -224,9 +224,9 @@ var engineV8Version = version;
|
|
224
224
|
|
225
225
|
var V8_VERSION = engineV8Version;
|
226
226
|
var fails$7 = fails$b;
|
227
|
-
var global$
|
227
|
+
var global$a = global$d;
|
228
228
|
|
229
|
-
var $String$
|
229
|
+
var $String$5 = global$a.String;
|
230
230
|
|
231
231
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
232
232
|
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$7(function () {
|
@@ -235,51 +235,51 @@ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$7(func
|
|
235
235
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
236
236
|
// nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
|
237
237
|
// of course, fail.
|
238
|
-
return !$String$
|
238
|
+
return !$String$5(symbol) || !(Object(symbol) instanceof Symbol) ||
|
239
239
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
240
240
|
!Symbol.sham && V8_VERSION && V8_VERSION < 41;
|
241
241
|
});
|
242
242
|
|
243
243
|
/* eslint-disable es/no-symbol -- required for testing */
|
244
244
|
|
245
|
-
var NATIVE_SYMBOL$
|
245
|
+
var NATIVE_SYMBOL$2 = symbolConstructorDetection;
|
246
246
|
|
247
|
-
var useSymbolAsUid = NATIVE_SYMBOL$
|
247
|
+
var useSymbolAsUid = NATIVE_SYMBOL$2
|
248
248
|
&& !Symbol.sham
|
249
249
|
&& typeof Symbol.iterator == 'symbol';
|
250
250
|
|
251
251
|
var getBuiltIn$2 = getBuiltIn$3;
|
252
|
-
var isCallable$
|
253
|
-
var isPrototypeOf = objectIsPrototypeOf;
|
252
|
+
var isCallable$d = isCallable$g;
|
253
|
+
var isPrototypeOf$1 = objectIsPrototypeOf;
|
254
254
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
255
255
|
|
256
|
-
var $Object$
|
256
|
+
var $Object$3 = Object;
|
257
257
|
|
258
258
|
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
259
259
|
return typeof it == 'symbol';
|
260
260
|
} : function (it) {
|
261
261
|
var $Symbol = getBuiltIn$2('Symbol');
|
262
|
-
return isCallable$
|
262
|
+
return isCallable$d($Symbol) && isPrototypeOf$1($Symbol.prototype, $Object$3(it));
|
263
263
|
};
|
264
264
|
|
265
|
-
var $String$
|
265
|
+
var $String$4 = String;
|
266
266
|
|
267
267
|
var tryToString$1 = function (argument) {
|
268
268
|
try {
|
269
|
-
return $String$
|
269
|
+
return $String$4(argument);
|
270
270
|
} catch (error) {
|
271
271
|
return 'Object';
|
272
272
|
}
|
273
273
|
};
|
274
274
|
|
275
|
-
var isCallable$
|
275
|
+
var isCallable$c = isCallable$g;
|
276
276
|
var tryToString = tryToString$1;
|
277
277
|
|
278
278
|
var $TypeError$5 = TypeError;
|
279
279
|
|
280
280
|
// `Assert: IsCallable(argument) is true`
|
281
281
|
var aCallable$2 = function (argument) {
|
282
|
-
if (isCallable$
|
282
|
+
if (isCallable$c(argument)) return argument;
|
283
283
|
throw $TypeError$5(tryToString(argument) + ' is not a function');
|
284
284
|
};
|
285
285
|
|
@@ -294,7 +294,7 @@ var getMethod$1 = function (V, P) {
|
|
294
294
|
};
|
295
295
|
|
296
296
|
var call$4 = functionCall;
|
297
|
-
var isCallable$
|
297
|
+
var isCallable$b = isCallable$g;
|
298
298
|
var isObject$5 = isObject$6;
|
299
299
|
|
300
300
|
var $TypeError$4 = TypeError;
|
@@ -303,32 +303,32 @@ var $TypeError$4 = TypeError;
|
|
303
303
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
304
304
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
305
305
|
var fn, val;
|
306
|
-
if (pref === 'string' && isCallable$
|
307
|
-
if (isCallable$
|
308
|
-
if (pref !== 'string' && isCallable$
|
306
|
+
if (pref === 'string' && isCallable$b(fn = input.toString) && !isObject$5(val = call$4(fn, input))) return val;
|
307
|
+
if (isCallable$b(fn = input.valueOf) && !isObject$5(val = call$4(fn, input))) return val;
|
308
|
+
if (pref !== 'string' && isCallable$b(fn = input.toString) && !isObject$5(val = call$4(fn, input))) return val;
|
309
309
|
throw $TypeError$4("Can't convert object to primitive value");
|
310
310
|
};
|
311
311
|
|
312
312
|
var shared$3 = {exports: {}};
|
313
313
|
|
314
|
-
var global$
|
314
|
+
var global$9 = global$d;
|
315
315
|
|
316
316
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
317
|
-
var defineProperty$
|
317
|
+
var defineProperty$6 = Object.defineProperty;
|
318
318
|
|
319
319
|
var defineGlobalProperty$3 = function (key, value) {
|
320
320
|
try {
|
321
|
-
defineProperty$
|
321
|
+
defineProperty$6(global$9, key, { value: value, configurable: true, writable: true });
|
322
322
|
} catch (error) {
|
323
|
-
global$
|
323
|
+
global$9[key] = value;
|
324
324
|
} return value;
|
325
325
|
};
|
326
326
|
|
327
|
-
var global$
|
327
|
+
var global$8 = global$d;
|
328
328
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
329
329
|
|
330
330
|
var SHARED = '__core-js_shared__';
|
331
|
-
var store$3 = global$
|
331
|
+
var store$3 = global$8[SHARED] || defineGlobalProperty$2(SHARED, {});
|
332
332
|
|
333
333
|
var sharedStore = store$3;
|
334
334
|
|
@@ -337,27 +337,27 @@ var store$2 = sharedStore;
|
|
337
337
|
(shared$3.exports = function (key, value) {
|
338
338
|
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
339
339
|
})('versions', []).push({
|
340
|
-
version: '3.
|
340
|
+
version: '3.30.2',
|
341
341
|
mode: 'global',
|
342
342
|
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
|
343
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
343
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE',
|
344
344
|
source: 'https://github.com/zloirock/core-js'
|
345
345
|
});
|
346
346
|
|
347
347
|
var requireObjectCoercible = requireObjectCoercible$2;
|
348
348
|
|
349
|
-
var $Object$
|
349
|
+
var $Object$2 = Object;
|
350
350
|
|
351
351
|
// `ToObject` abstract operation
|
352
352
|
// https://tc39.es/ecma262/#sec-toobject
|
353
353
|
var toObject$4 = function (argument) {
|
354
|
-
return $Object$
|
354
|
+
return $Object$2(requireObjectCoercible(argument));
|
355
355
|
};
|
356
356
|
|
357
|
-
var uncurryThis$
|
357
|
+
var uncurryThis$8 = functionUncurryThis;
|
358
358
|
var toObject$3 = toObject$4;
|
359
359
|
|
360
|
-
var hasOwnProperty$2 = uncurryThis$
|
360
|
+
var hasOwnProperty$2 = uncurryThis$8({}.hasOwnProperty);
|
361
361
|
|
362
362
|
// `HasOwnProperty` abstract operation
|
363
363
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
@@ -366,30 +366,30 @@ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
366
366
|
return hasOwnProperty$2(toObject$3(it), key);
|
367
367
|
};
|
368
368
|
|
369
|
-
var uncurryThis$
|
369
|
+
var uncurryThis$7 = functionUncurryThis;
|
370
370
|
|
371
371
|
var id = 0;
|
372
372
|
var postfix = Math.random();
|
373
|
-
var toString = uncurryThis$
|
373
|
+
var toString$2 = uncurryThis$7(1.0.toString);
|
374
374
|
|
375
375
|
var uid$2 = function (key) {
|
376
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
376
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$2(++id + postfix, 36);
|
377
377
|
};
|
378
378
|
|
379
|
-
var global$
|
379
|
+
var global$7 = global$d;
|
380
380
|
var shared$2 = shared$3.exports;
|
381
|
-
var hasOwn$
|
381
|
+
var hasOwn$9 = hasOwnProperty_1;
|
382
382
|
var uid$1 = uid$2;
|
383
|
-
var NATIVE_SYMBOL = symbolConstructorDetection;
|
383
|
+
var NATIVE_SYMBOL$1 = symbolConstructorDetection;
|
384
384
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
385
385
|
|
386
|
-
var Symbol$1 = global$
|
386
|
+
var Symbol$1 = global$7.Symbol;
|
387
387
|
var WellKnownSymbolsStore = shared$2('wks');
|
388
388
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
389
389
|
|
390
|
-
var wellKnownSymbol$
|
391
|
-
if (!hasOwn$
|
392
|
-
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$
|
390
|
+
var wellKnownSymbol$8 = function (name) {
|
391
|
+
if (!hasOwn$9(WellKnownSymbolsStore, name)) {
|
392
|
+
WellKnownSymbolsStore[name] = NATIVE_SYMBOL$1 && hasOwn$9(Symbol$1, name)
|
393
393
|
? Symbol$1[name]
|
394
394
|
: createWellKnownSymbol('Symbol.' + name);
|
395
395
|
} return WellKnownSymbolsStore[name];
|
@@ -400,10 +400,10 @@ var isObject$4 = isObject$6;
|
|
400
400
|
var isSymbol$1 = isSymbol$2;
|
401
401
|
var getMethod = getMethod$1;
|
402
402
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
403
|
-
var wellKnownSymbol$
|
403
|
+
var wellKnownSymbol$7 = wellKnownSymbol$8;
|
404
404
|
|
405
405
|
var $TypeError$3 = TypeError;
|
406
|
-
var TO_PRIMITIVE = wellKnownSymbol$
|
406
|
+
var TO_PRIMITIVE = wellKnownSymbol$7('toPrimitive');
|
407
407
|
|
408
408
|
// `ToPrimitive` abstract operation
|
409
409
|
// https://tc39.es/ecma262/#sec-toprimitive
|
@@ -431,10 +431,10 @@ var toPropertyKey$2 = function (argument) {
|
|
431
431
|
return isSymbol(key) ? key : key + '';
|
432
432
|
};
|
433
433
|
|
434
|
-
var global$
|
434
|
+
var global$6 = global$d;
|
435
435
|
var isObject$3 = isObject$6;
|
436
436
|
|
437
|
-
var document$1 = global$
|
437
|
+
var document$1 = global$6.document;
|
438
438
|
// typeof document.createElement is 'object' in old IE
|
439
439
|
var EXISTS$1 = isObject$3(document$1) && isObject$3(document$1.createElement);
|
440
440
|
|
@@ -442,25 +442,25 @@ var documentCreateElement$2 = function (it) {
|
|
442
442
|
return EXISTS$1 ? document$1.createElement(it) : {};
|
443
443
|
};
|
444
444
|
|
445
|
-
var DESCRIPTORS$
|
445
|
+
var DESCRIPTORS$a = descriptors;
|
446
446
|
var fails$6 = fails$b;
|
447
447
|
var createElement = documentCreateElement$2;
|
448
448
|
|
449
449
|
// Thanks to IE8 for its funny defineProperty
|
450
|
-
var ie8DomDefine = !DESCRIPTORS$
|
450
|
+
var ie8DomDefine = !DESCRIPTORS$a && !fails$6(function () {
|
451
451
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
452
452
|
return Object.defineProperty(createElement('div'), 'a', {
|
453
453
|
get: function () { return 7; }
|
454
454
|
}).a != 7;
|
455
455
|
});
|
456
456
|
|
457
|
-
var DESCRIPTORS$
|
457
|
+
var DESCRIPTORS$9 = descriptors;
|
458
458
|
var call$2 = functionCall;
|
459
459
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
460
460
|
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
461
461
|
var toIndexedObject$4 = toIndexedObject$5;
|
462
462
|
var toPropertyKey$1 = toPropertyKey$2;
|
463
|
-
var hasOwn$
|
463
|
+
var hasOwn$8 = hasOwnProperty_1;
|
464
464
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
465
465
|
|
466
466
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
@@ -468,23 +468,23 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
468
468
|
|
469
469
|
// `Object.getOwnPropertyDescriptor` method
|
470
470
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
471
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$
|
471
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$9 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
472
472
|
O = toIndexedObject$4(O);
|
473
473
|
P = toPropertyKey$1(P);
|
474
474
|
if (IE8_DOM_DEFINE$1) try {
|
475
475
|
return $getOwnPropertyDescriptor$1(O, P);
|
476
476
|
} catch (error) { /* empty */ }
|
477
|
-
if (hasOwn$
|
477
|
+
if (hasOwn$8(O, P)) return createPropertyDescriptor$2(!call$2(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
478
478
|
};
|
479
479
|
|
480
480
|
var objectDefineProperty = {};
|
481
481
|
|
482
|
-
var DESCRIPTORS$
|
482
|
+
var DESCRIPTORS$8 = descriptors;
|
483
483
|
var fails$5 = fails$b;
|
484
484
|
|
485
485
|
// V8 ~ Chrome 36-
|
486
486
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
487
|
-
var v8PrototypeDefineBug = DESCRIPTORS$
|
487
|
+
var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$5(function () {
|
488
488
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
489
489
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
490
490
|
value: 42,
|
@@ -494,16 +494,16 @@ var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$5(function () {
|
|
494
494
|
|
495
495
|
var isObject$2 = isObject$6;
|
496
496
|
|
497
|
-
var $String$
|
497
|
+
var $String$3 = String;
|
498
498
|
var $TypeError$2 = TypeError;
|
499
499
|
|
500
500
|
// `Assert: Type(argument) is Object`
|
501
501
|
var anObject$5 = function (argument) {
|
502
502
|
if (isObject$2(argument)) return argument;
|
503
|
-
throw $TypeError$2($String$
|
503
|
+
throw $TypeError$2($String$3(argument) + ' is not an object');
|
504
504
|
};
|
505
505
|
|
506
|
-
var DESCRIPTORS$
|
506
|
+
var DESCRIPTORS$7 = descriptors;
|
507
507
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
508
508
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
509
509
|
var anObject$4 = anObject$5;
|
@@ -520,7 +520,7 @@ var WRITABLE = 'writable';
|
|
520
520
|
|
521
521
|
// `Object.defineProperty` method
|
522
522
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
523
|
-
objectDefineProperty.f = DESCRIPTORS$
|
523
|
+
objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
524
524
|
anObject$4(O);
|
525
525
|
P = toPropertyKey(P);
|
526
526
|
anObject$4(Attributes);
|
@@ -547,30 +547,30 @@ objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
547
547
|
return O;
|
548
548
|
};
|
549
549
|
|
550
|
-
var DESCRIPTORS$
|
550
|
+
var DESCRIPTORS$6 = descriptors;
|
551
551
|
var definePropertyModule$3 = objectDefineProperty;
|
552
552
|
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
553
553
|
|
554
|
-
var createNonEnumerableProperty$4 = DESCRIPTORS$
|
554
|
+
var createNonEnumerableProperty$4 = DESCRIPTORS$6 ? function (object, key, value) {
|
555
555
|
return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
|
556
556
|
} : function (object, key, value) {
|
557
557
|
object[key] = value;
|
558
558
|
return object;
|
559
559
|
};
|
560
560
|
|
561
|
-
var makeBuiltIn$
|
561
|
+
var makeBuiltIn$3 = {exports: {}};
|
562
562
|
|
563
|
-
var DESCRIPTORS$
|
564
|
-
var hasOwn$
|
563
|
+
var DESCRIPTORS$5 = descriptors;
|
564
|
+
var hasOwn$7 = hasOwnProperty_1;
|
565
565
|
|
566
566
|
var FunctionPrototype = Function.prototype;
|
567
567
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
568
|
-
var getDescriptor = DESCRIPTORS$
|
568
|
+
var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor;
|
569
569
|
|
570
|
-
var EXISTS = hasOwn$
|
570
|
+
var EXISTS = hasOwn$7(FunctionPrototype, 'name');
|
571
571
|
// additional protection from minified / mangled / dropped function names
|
572
572
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
573
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$
|
573
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype, 'name').configurable));
|
574
574
|
|
575
575
|
var functionName = {
|
576
576
|
EXISTS: EXISTS,
|
@@ -578,14 +578,14 @@ var functionName = {
|
|
578
578
|
CONFIGURABLE: CONFIGURABLE
|
579
579
|
};
|
580
580
|
|
581
|
-
var uncurryThis$
|
582
|
-
var isCallable$
|
581
|
+
var uncurryThis$6 = functionUncurryThis;
|
582
|
+
var isCallable$a = isCallable$g;
|
583
583
|
var store$1 = sharedStore;
|
584
584
|
|
585
|
-
var functionToString = uncurryThis$
|
585
|
+
var functionToString = uncurryThis$6(Function.toString);
|
586
586
|
|
587
587
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
588
|
-
if (!isCallable$
|
588
|
+
if (!isCallable$a(store$1.inspectSource)) {
|
589
589
|
store$1.inspectSource = function (it) {
|
590
590
|
return functionToString(it);
|
591
591
|
};
|
@@ -593,12 +593,12 @@ if (!isCallable$8(store$1.inspectSource)) {
|
|
593
593
|
|
594
594
|
var inspectSource$1 = store$1.inspectSource;
|
595
595
|
|
596
|
-
var global$
|
597
|
-
var isCallable$
|
596
|
+
var global$5 = global$d;
|
597
|
+
var isCallable$9 = isCallable$g;
|
598
598
|
|
599
|
-
var WeakMap$2 = global$
|
599
|
+
var WeakMap$2 = global$5.WeakMap;
|
600
600
|
|
601
|
-
var weakMapBasicDetection = isCallable$
|
601
|
+
var weakMapBasicDetection = isCallable$9(WeakMap$2) && /native code/.test(String(WeakMap$2));
|
602
602
|
|
603
603
|
var shared$1 = shared$3.exports;
|
604
604
|
var uid = uid$2;
|
@@ -612,17 +612,17 @@ var sharedKey$3 = function (key) {
|
|
612
612
|
var hiddenKeys$4 = {};
|
613
613
|
|
614
614
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
615
|
-
var global$
|
615
|
+
var global$4 = global$d;
|
616
616
|
var isObject$1 = isObject$6;
|
617
617
|
var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
|
618
|
-
var hasOwn$
|
618
|
+
var hasOwn$6 = hasOwnProperty_1;
|
619
619
|
var shared = sharedStore;
|
620
620
|
var sharedKey$2 = sharedKey$3;
|
621
621
|
var hiddenKeys$3 = hiddenKeys$4;
|
622
622
|
|
623
623
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
624
|
-
var TypeError$1 = global$
|
625
|
-
var WeakMap$1 = global$
|
624
|
+
var TypeError$1 = global$4.TypeError;
|
625
|
+
var WeakMap$1 = global$4.WeakMap;
|
626
626
|
var set, get, has$3;
|
627
627
|
|
628
628
|
var enforce = function (it) {
|
@@ -661,16 +661,16 @@ if (NATIVE_WEAK_MAP || shared.state) {
|
|
661
661
|
var STATE = sharedKey$2('state');
|
662
662
|
hiddenKeys$3[STATE] = true;
|
663
663
|
set = function (it, metadata) {
|
664
|
-
if (hasOwn$
|
664
|
+
if (hasOwn$6(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
665
665
|
metadata.facade = it;
|
666
666
|
createNonEnumerableProperty$3(it, STATE, metadata);
|
667
667
|
return metadata;
|
668
668
|
};
|
669
669
|
get = function (it) {
|
670
|
-
return hasOwn$
|
670
|
+
return hasOwn$6(it, STATE) ? it[STATE] : {};
|
671
671
|
};
|
672
672
|
has$3 = function (it) {
|
673
|
-
return hasOwn$
|
673
|
+
return hasOwn$6(it, STATE);
|
674
674
|
};
|
675
675
|
}
|
676
676
|
|
@@ -682,71 +682,71 @@ var internalState = {
|
|
682
682
|
getterFor: getterFor
|
683
683
|
};
|
684
684
|
|
685
|
-
var uncurryThis$
|
685
|
+
var uncurryThis$5 = functionUncurryThis;
|
686
686
|
var fails$4 = fails$b;
|
687
|
-
var isCallable$
|
688
|
-
var hasOwn$
|
689
|
-
var DESCRIPTORS$
|
687
|
+
var isCallable$8 = isCallable$g;
|
688
|
+
var hasOwn$5 = hasOwnProperty_1;
|
689
|
+
var DESCRIPTORS$4 = descriptors;
|
690
690
|
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
691
691
|
var inspectSource = inspectSource$1;
|
692
692
|
var InternalStateModule$1 = internalState;
|
693
693
|
|
694
694
|
var enforceInternalState = InternalStateModule$1.enforce;
|
695
695
|
var getInternalState$1 = InternalStateModule$1.get;
|
696
|
-
var $String$
|
696
|
+
var $String$2 = String;
|
697
697
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
698
|
-
var defineProperty$
|
699
|
-
var stringSlice = uncurryThis$
|
700
|
-
var replace$
|
701
|
-
var join = uncurryThis$
|
698
|
+
var defineProperty$5 = Object.defineProperty;
|
699
|
+
var stringSlice$1 = uncurryThis$5(''.slice);
|
700
|
+
var replace$2 = uncurryThis$5(''.replace);
|
701
|
+
var join = uncurryThis$5([].join);
|
702
702
|
|
703
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$
|
704
|
-
return defineProperty$
|
703
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$4(function () {
|
704
|
+
return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
705
705
|
});
|
706
706
|
|
707
707
|
var TEMPLATE = String(String).split('String');
|
708
708
|
|
709
|
-
var makeBuiltIn$
|
710
|
-
if (stringSlice($String$
|
711
|
-
name = '[' + replace$
|
709
|
+
var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
710
|
+
if (stringSlice$1($String$2(name), 0, 7) === 'Symbol(') {
|
711
|
+
name = '[' + replace$2($String$2(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
|
712
712
|
}
|
713
713
|
if (options && options.getter) name = 'get ' + name;
|
714
714
|
if (options && options.setter) name = 'set ' + name;
|
715
|
-
if (!hasOwn$
|
716
|
-
if (DESCRIPTORS$
|
715
|
+
if (!hasOwn$5(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
716
|
+
if (DESCRIPTORS$4) defineProperty$5(value, 'name', { value: name, configurable: true });
|
717
717
|
else value.name = name;
|
718
718
|
}
|
719
|
-
if (CONFIGURABLE_LENGTH && options && hasOwn$
|
720
|
-
defineProperty$
|
719
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$5(options, 'arity') && value.length !== options.arity) {
|
720
|
+
defineProperty$5(value, 'length', { value: options.arity });
|
721
721
|
}
|
722
722
|
try {
|
723
|
-
if (options && hasOwn$
|
724
|
-
if (DESCRIPTORS$
|
723
|
+
if (options && hasOwn$5(options, 'constructor') && options.constructor) {
|
724
|
+
if (DESCRIPTORS$4) defineProperty$5(value, 'prototype', { writable: false });
|
725
725
|
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
726
726
|
} else if (value.prototype) value.prototype = undefined;
|
727
727
|
} catch (error) { /* empty */ }
|
728
728
|
var state = enforceInternalState(value);
|
729
|
-
if (!hasOwn$
|
729
|
+
if (!hasOwn$5(state, 'source')) {
|
730
730
|
state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
|
731
731
|
} return value;
|
732
732
|
};
|
733
733
|
|
734
734
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
735
735
|
// eslint-disable-next-line no-extend-native -- required
|
736
|
-
Function.prototype.toString = makeBuiltIn$
|
737
|
-
return isCallable$
|
736
|
+
Function.prototype.toString = makeBuiltIn$2(function toString() {
|
737
|
+
return isCallable$8(this) && getInternalState$1(this).source || inspectSource(this);
|
738
738
|
}, 'toString');
|
739
739
|
|
740
|
-
var isCallable$
|
740
|
+
var isCallable$7 = isCallable$g;
|
741
741
|
var definePropertyModule$2 = objectDefineProperty;
|
742
|
-
var makeBuiltIn = makeBuiltIn$
|
742
|
+
var makeBuiltIn$1 = makeBuiltIn$3.exports;
|
743
743
|
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
744
744
|
|
745
745
|
var defineBuiltIn$3 = function (O, key, value, options) {
|
746
746
|
if (!options) options = {};
|
747
747
|
var simple = options.enumerable;
|
748
748
|
var name = options.name !== undefined ? options.name : key;
|
749
|
-
if (isCallable$
|
749
|
+
if (isCallable$7(value)) makeBuiltIn$1(value, name, options);
|
750
750
|
if (options.global) {
|
751
751
|
if (simple) O[key] = value;
|
752
752
|
else defineGlobalProperty$1(key, value);
|
@@ -852,22 +852,22 @@ var arrayIncludes = {
|
|
852
852
|
indexOf: createMethod(false)
|
853
853
|
};
|
854
854
|
|
855
|
-
var uncurryThis$
|
856
|
-
var hasOwn$
|
855
|
+
var uncurryThis$4 = functionUncurryThis;
|
856
|
+
var hasOwn$4 = hasOwnProperty_1;
|
857
857
|
var toIndexedObject$2 = toIndexedObject$5;
|
858
858
|
var indexOf = arrayIncludes.indexOf;
|
859
859
|
var hiddenKeys$2 = hiddenKeys$4;
|
860
860
|
|
861
|
-
var push = uncurryThis$
|
861
|
+
var push = uncurryThis$4([].push);
|
862
862
|
|
863
863
|
var objectKeysInternal = function (object, names) {
|
864
864
|
var O = toIndexedObject$2(object);
|
865
865
|
var i = 0;
|
866
866
|
var result = [];
|
867
867
|
var key;
|
868
|
-
for (key in O) !hasOwn$
|
868
|
+
for (key in O) !hasOwn$4(hiddenKeys$2, key) && hasOwn$4(O, key) && push(result, key);
|
869
869
|
// Don't enum bug & hidden keys
|
870
|
-
while (names.length > i) if (hasOwn$
|
870
|
+
while (names.length > i) if (hasOwn$4(O, key = names[i++])) {
|
871
871
|
~indexOf(result, key) || push(result, key);
|
872
872
|
}
|
873
873
|
return result;
|
@@ -902,12 +902,12 @@ var objectGetOwnPropertySymbols = {};
|
|
902
902
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
903
903
|
|
904
904
|
var getBuiltIn$1 = getBuiltIn$3;
|
905
|
-
var uncurryThis$
|
905
|
+
var uncurryThis$3 = functionUncurryThis;
|
906
906
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
907
907
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
908
908
|
var anObject$3 = anObject$5;
|
909
909
|
|
910
|
-
var concat$1 = uncurryThis$
|
910
|
+
var concat$1 = uncurryThis$3([].concat);
|
911
911
|
|
912
912
|
// all object keys, includes non-enumerable and symbols
|
913
913
|
var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
|
@@ -916,25 +916,25 @@ var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
916
916
|
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
917
917
|
};
|
918
918
|
|
919
|
-
var hasOwn$
|
919
|
+
var hasOwn$3 = hasOwnProperty_1;
|
920
920
|
var ownKeys = ownKeys$1;
|
921
921
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
922
922
|
var definePropertyModule$1 = objectDefineProperty;
|
923
923
|
|
924
|
-
var copyConstructorProperties$
|
924
|
+
var copyConstructorProperties$2 = function (target, source, exceptions) {
|
925
925
|
var keys = ownKeys(source);
|
926
926
|
var defineProperty = definePropertyModule$1.f;
|
927
927
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
928
928
|
for (var i = 0; i < keys.length; i++) {
|
929
929
|
var key = keys[i];
|
930
|
-
if (!hasOwn$
|
930
|
+
if (!hasOwn$3(target, key) && !(exceptions && hasOwn$3(exceptions, key))) {
|
931
931
|
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
932
932
|
}
|
933
933
|
}
|
934
934
|
};
|
935
935
|
|
936
936
|
var fails$3 = fails$b;
|
937
|
-
var isCallable$
|
937
|
+
var isCallable$6 = isCallable$g;
|
938
938
|
|
939
939
|
var replacement = /#|\.prototype\./;
|
940
940
|
|
@@ -942,7 +942,7 @@ var isForced$1 = function (feature, detection) {
|
|
942
942
|
var value = data[normalize(feature)];
|
943
943
|
return value == POLYFILL ? true
|
944
944
|
: value == NATIVE ? false
|
945
|
-
: isCallable$
|
945
|
+
: isCallable$6(detection) ? fails$3(detection)
|
946
946
|
: !!detection;
|
947
947
|
};
|
948
948
|
|
@@ -956,12 +956,12 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
956
956
|
|
957
957
|
var isForced_1 = isForced$1;
|
958
958
|
|
959
|
-
var global$
|
959
|
+
var global$3 = global$d;
|
960
960
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
961
961
|
var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
|
962
962
|
var defineBuiltIn$2 = defineBuiltIn$3;
|
963
963
|
var defineGlobalProperty = defineGlobalProperty$3;
|
964
|
-
var copyConstructorProperties = copyConstructorProperties$
|
964
|
+
var copyConstructorProperties$1 = copyConstructorProperties$2;
|
965
965
|
var isForced = isForced_1;
|
966
966
|
|
967
967
|
/*
|
@@ -985,11 +985,11 @@ var _export = function (options, source) {
|
|
985
985
|
var STATIC = options.stat;
|
986
986
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
987
987
|
if (GLOBAL) {
|
988
|
-
target = global$
|
988
|
+
target = global$3;
|
989
989
|
} else if (STATIC) {
|
990
|
-
target = global$
|
990
|
+
target = global$3[TARGET] || defineGlobalProperty(TARGET, {});
|
991
991
|
} else {
|
992
|
-
target = (global$
|
992
|
+
target = (global$3[TARGET] || {}).prototype;
|
993
993
|
}
|
994
994
|
if (target) for (key in source) {
|
995
995
|
sourceProperty = source[key];
|
@@ -1001,7 +1001,7 @@ var _export = function (options, source) {
|
|
1001
1001
|
// contained in target
|
1002
1002
|
if (!FORCED && targetProperty !== undefined) {
|
1003
1003
|
if (typeof sourceProperty == typeof targetProperty) continue;
|
1004
|
-
copyConstructorProperties(sourceProperty, targetProperty);
|
1004
|
+
copyConstructorProperties$1(sourceProperty, targetProperty);
|
1005
1005
|
}
|
1006
1006
|
// add a flag to not completely full polyfills
|
1007
1007
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
@@ -1021,8 +1021,8 @@ var objectKeys$2 = Object.keys || function keys(O) {
|
|
1021
1021
|
return internalObjectKeys(O, enumBugKeys$1);
|
1022
1022
|
};
|
1023
1023
|
|
1024
|
-
var DESCRIPTORS$
|
1025
|
-
var uncurryThis$
|
1024
|
+
var DESCRIPTORS$3 = descriptors;
|
1025
|
+
var uncurryThis$2 = functionUncurryThis;
|
1026
1026
|
var call$1 = functionCall;
|
1027
1027
|
var fails$2 = fails$b;
|
1028
1028
|
var objectKeys$1 = objectKeys$2;
|
@@ -1034,17 +1034,17 @@ var IndexedObject = indexedObject;
|
|
1034
1034
|
// eslint-disable-next-line es/no-object-assign -- safe
|
1035
1035
|
var $assign = Object.assign;
|
1036
1036
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
1037
|
-
var defineProperty$
|
1038
|
-
var concat = uncurryThis$
|
1037
|
+
var defineProperty$4 = Object.defineProperty;
|
1038
|
+
var concat = uncurryThis$2([].concat);
|
1039
1039
|
|
1040
1040
|
// `Object.assign` method
|
1041
1041
|
// https://tc39.es/ecma262/#sec-object.assign
|
1042
1042
|
var objectAssign$1 = !$assign || fails$2(function () {
|
1043
1043
|
// should have correct order of operations (Edge bug)
|
1044
|
-
if (DESCRIPTORS$
|
1044
|
+
if (DESCRIPTORS$3 && $assign({ b: 1 }, $assign(defineProperty$4({}, 'a', {
|
1045
1045
|
enumerable: true,
|
1046
1046
|
get: function () {
|
1047
|
-
defineProperty$
|
1047
|
+
defineProperty$4(this, 'b', {
|
1048
1048
|
value: 3,
|
1049
1049
|
enumerable: false
|
1050
1050
|
});
|
@@ -1073,18 +1073,18 @@ var objectAssign$1 = !$assign || fails$2(function () {
|
|
1073
1073
|
var key;
|
1074
1074
|
while (length > j) {
|
1075
1075
|
key = keys[j++];
|
1076
|
-
if (!DESCRIPTORS$
|
1076
|
+
if (!DESCRIPTORS$3 || call$1(propertyIsEnumerable, S, key)) T[key] = S[key];
|
1077
1077
|
}
|
1078
1078
|
} return T;
|
1079
1079
|
} : $assign;
|
1080
1080
|
|
1081
|
-
var $$
|
1081
|
+
var $$2 = _export;
|
1082
1082
|
var assign$2 = objectAssign$1;
|
1083
1083
|
|
1084
1084
|
// `Object.assign` method
|
1085
1085
|
// https://tc39.es/ecma262/#sec-object.assign
|
1086
1086
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
1087
|
-
$$
|
1087
|
+
$$2({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign$2 }, {
|
1088
1088
|
assign: assign$2
|
1089
1089
|
});
|
1090
1090
|
|
@@ -1097,21 +1097,6 @@ function chainPropTypes(propType1, propType2) {
|
|
1097
1097
|
};
|
1098
1098
|
}
|
1099
1099
|
|
1100
|
-
function _extends$4() {
|
1101
|
-
_extends$4 = Object.assign ? Object.assign.bind() : function (target) {
|
1102
|
-
for (var i = 1; i < arguments.length; i++) {
|
1103
|
-
var source = arguments[i];
|
1104
|
-
for (var key in source) {
|
1105
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
1106
|
-
target[key] = source[key];
|
1107
|
-
}
|
1108
|
-
}
|
1109
|
-
}
|
1110
|
-
return target;
|
1111
|
-
};
|
1112
|
-
return _extends$4.apply(this, arguments);
|
1113
|
-
}
|
1114
|
-
|
1115
1100
|
function isPlainObject(item) {
|
1116
1101
|
return item !== null && typeof item === 'object' && item.constructor === Object;
|
1117
1102
|
}
|
@@ -1128,7 +1113,9 @@ function deepClone(source) {
|
|
1128
1113
|
function deepmerge(target, source, options = {
|
1129
1114
|
clone: true
|
1130
1115
|
}) {
|
1131
|
-
const output = options.clone ?
|
1116
|
+
const output = options.clone ? {
|
1117
|
+
...target
|
1118
|
+
} : target;
|
1132
1119
|
if (isPlainObject(target) && isPlainObject(source)) {
|
1133
1120
|
Object.keys(source).forEach(key => {
|
1134
1121
|
// Avoid prototype pollution
|
@@ -2300,7 +2287,8 @@ function exactProp(propTypes) {
|
|
2300
2287
|
if (process.env.NODE_ENV === 'production') {
|
2301
2288
|
return propTypes;
|
2302
2289
|
}
|
2303
|
-
return
|
2290
|
+
return {
|
2291
|
+
...propTypes,
|
2304
2292
|
[specialProperty]: props => {
|
2305
2293
|
const unsupportedProps = Object.keys(props).filter(prop => !propTypes.hasOwnProperty(prop));
|
2306
2294
|
if (unsupportedProps.length > 0) {
|
@@ -2308,7 +2296,7 @@ function exactProp(propTypes) {
|
|
2308
2296
|
}
|
2309
2297
|
return null;
|
2310
2298
|
}
|
2311
|
-
}
|
2299
|
+
};
|
2312
2300
|
}
|
2313
2301
|
|
2314
2302
|
/**
|
@@ -2664,7 +2652,6 @@ var useEnhancedEffect$1 = useEnhancedEffect;
|
|
2664
2652
|
/**
|
2665
2653
|
* https://github.com/facebook/react/issues/14099#issuecomment-440013892
|
2666
2654
|
*/
|
2667
|
-
|
2668
2655
|
function useEventCallback(fn) {
|
2669
2656
|
const ref = React.useRef(fn);
|
2670
2657
|
useEnhancedEffect$1(() => {
|
@@ -2695,6 +2682,7 @@ function useForkRef(...refs) {
|
|
2695
2682
|
}, refs);
|
2696
2683
|
}
|
2697
2684
|
|
2685
|
+
// based on https://github.com/WICG/focus-visible/blob/v4.1.5/src/focus-visible.js
|
2698
2686
|
let hadKeyboardEvent = true;
|
2699
2687
|
let hadFocusVisibleRecently = false;
|
2700
2688
|
let hadFocusVisibleRecentlyTimeout;
|
@@ -2855,10 +2843,15 @@ function useIsFocusVisible() {
|
|
2855
2843
|
* @returns {object} resolved props
|
2856
2844
|
*/
|
2857
2845
|
function resolveProps(defaultProps, props) {
|
2858
|
-
const output =
|
2846
|
+
const output = {
|
2847
|
+
...props
|
2848
|
+
};
|
2859
2849
|
Object.keys(defaultProps).forEach(propName => {
|
2860
2850
|
if (propName.toString().match(/^(components|slots)$/)) {
|
2861
|
-
output[propName] =
|
2851
|
+
output[propName] = {
|
2852
|
+
...defaultProps[propName],
|
2853
|
+
...output[propName]
|
2854
|
+
};
|
2862
2855
|
} else if (propName.toString().match(/^(componentsProps|slotProps)$/)) {
|
2863
2856
|
const defaultSlotProps = defaultProps[propName] || {};
|
2864
2857
|
const slotProps = props[propName];
|
@@ -2870,7 +2863,9 @@ function resolveProps(defaultProps, props) {
|
|
2870
2863
|
// Reduce the iteration if the default slot props is empty
|
2871
2864
|
output[propName] = slotProps;
|
2872
2865
|
} else {
|
2873
|
-
output[propName] =
|
2866
|
+
output[propName] = {
|
2867
|
+
...slotProps
|
2868
|
+
};
|
2874
2869
|
Object.keys(defaultSlotProps).forEach(slotPropName => {
|
2875
2870
|
output[propName][slotPropName] = resolveProps(defaultSlotProps[slotPropName], slotProps[slotPropName]);
|
2876
2871
|
});
|
@@ -2950,8 +2945,8 @@ function generateUtilityClasses(componentName, slots, globalStatePrefix = 'Mui')
|
|
2950
2945
|
|
2951
2946
|
var THEME_ID = '$$material';
|
2952
2947
|
|
2953
|
-
function _extends
|
2954
|
-
_extends
|
2948
|
+
function _extends() {
|
2949
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
2955
2950
|
for (var i = 1; i < arguments.length; i++) {
|
2956
2951
|
var source = arguments[i];
|
2957
2952
|
for (var key in source) {
|
@@ -2962,10 +2957,10 @@ function _extends$3() {
|
|
2962
2957
|
}
|
2963
2958
|
return target;
|
2964
2959
|
};
|
2965
|
-
return _extends
|
2960
|
+
return _extends.apply(this, arguments);
|
2966
2961
|
}
|
2967
2962
|
|
2968
|
-
function _objectWithoutPropertiesLoose
|
2963
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
2969
2964
|
if (source == null) return {};
|
2970
2965
|
var target = {};
|
2971
2966
|
var sourceKeys = Object.keys(source);
|
@@ -2978,21 +2973,6 @@ function _objectWithoutPropertiesLoose$2(source, excluded) {
|
|
2978
2973
|
return target;
|
2979
2974
|
}
|
2980
2975
|
|
2981
|
-
function _extends$2() {
|
2982
|
-
_extends$2 = Object.assign ? Object.assign.bind() : function (target) {
|
2983
|
-
for (var i = 1; i < arguments.length; i++) {
|
2984
|
-
var source = arguments[i];
|
2985
|
-
for (var key in source) {
|
2986
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
2987
|
-
target[key] = source[key];
|
2988
|
-
}
|
2989
|
-
}
|
2990
|
-
}
|
2991
|
-
return target;
|
2992
|
-
};
|
2993
|
-
return _extends$2.apply(this, arguments);
|
2994
|
-
}
|
2995
|
-
|
2996
2976
|
function memoize$1(fn) {
|
2997
2977
|
var cache = Object.create(null);
|
2998
2978
|
return function (arg) {
|
@@ -3227,7 +3207,7 @@ function match (value, pattern) {
|
|
3227
3207
|
* @param {string} replacement
|
3228
3208
|
* @return {string}
|
3229
3209
|
*/
|
3230
|
-
function replace (value, pattern, replacement) {
|
3210
|
+
function replace$1 (value, pattern, replacement) {
|
3231
3211
|
return value.replace(pattern, replacement)
|
3232
3212
|
}
|
3233
3213
|
|
@@ -3555,7 +3535,7 @@ function parse (value, root, parent, rule, rules, rulesets, pseudo, points, decl
|
|
3555
3535
|
// (
|
3556
3536
|
case 40:
|
3557
3537
|
if (previous != 108 && charat(characters, length - 1) == 58) {
|
3558
|
-
if (indexof(characters += replace(delimit(character), '&', '&\f'), '&\f') != -1)
|
3538
|
+
if (indexof(characters += replace$1(delimit(character), '&', '&\f'), '&\f') != -1)
|
3559
3539
|
ampersand = -1;
|
3560
3540
|
break
|
3561
3541
|
}
|
@@ -3590,9 +3570,9 @@ function parse (value, root, parent, rule, rules, rulesets, pseudo, points, decl
|
|
3590
3570
|
// \0 }
|
3591
3571
|
case 0: case 125: scanning = 0;
|
3592
3572
|
// ;
|
3593
|
-
case 59 + offset: if (ampersand == -1) characters = replace(characters, /\f/g, '');
|
3573
|
+
case 59 + offset: if (ampersand == -1) characters = replace$1(characters, /\f/g, '');
|
3594
3574
|
if (property > 0 && (strlen(characters) - length))
|
3595
|
-
append(property > 32 ? declaration(characters + ';', rule, parent, length - 1) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2), declarations);
|
3575
|
+
append(property > 32 ? declaration(characters + ';', rule, parent, length - 1) : declaration(replace$1(characters, ' ', '') + ';', rule, parent, length - 2), declarations);
|
3596
3576
|
break
|
3597
3577
|
// @ ;
|
3598
3578
|
case 59: characters += ';';
|
@@ -3674,7 +3654,7 @@ function ruleset (value, root, parent, index, offset, rules, points, type, props
|
|
3674
3654
|
|
3675
3655
|
for (var i = 0, j = 0, k = 0; i < index; ++i)
|
3676
3656
|
for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
|
3677
|
-
if (z = trim(j > 0 ? rule[x] + ' ' + y : replace(y, /&\f/g, rule[x])))
|
3657
|
+
if (z = trim(j > 0 ? rule[x] + ' ' + y : replace$1(y, /&\f/g, rule[x])))
|
3678
3658
|
props[k++] = z;
|
3679
3659
|
|
3680
3660
|
return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length)
|
@@ -4070,51 +4050,51 @@ function prefix(value, length) {
|
|
4070
4050
|
// align-items
|
4071
4051
|
|
4072
4052
|
case 5187:
|
4073
|
-
return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;
|
4053
|
+
return WEBKIT + value + replace$1(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;
|
4074
4054
|
// align-self
|
4075
4055
|
|
4076
4056
|
case 5443:
|
4077
|
-
return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/, '') + value;
|
4057
|
+
return WEBKIT + value + MS + 'flex-item-' + replace$1(value, /flex-|-self/, '') + value;
|
4078
4058
|
// align-content
|
4079
4059
|
|
4080
4060
|
case 4675:
|
4081
|
-
return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/, '') + value;
|
4061
|
+
return WEBKIT + value + MS + 'flex-line-pack' + replace$1(value, /align-content|flex-|-self/, '') + value;
|
4082
4062
|
// flex-shrink
|
4083
4063
|
|
4084
4064
|
case 5548:
|
4085
|
-
return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value;
|
4065
|
+
return WEBKIT + value + MS + replace$1(value, 'shrink', 'negative') + value;
|
4086
4066
|
// flex-basis
|
4087
4067
|
|
4088
4068
|
case 5292:
|
4089
|
-
return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value;
|
4069
|
+
return WEBKIT + value + MS + replace$1(value, 'basis', 'preferred-size') + value;
|
4090
4070
|
// flex-grow
|
4091
4071
|
|
4092
4072
|
case 6060:
|
4093
|
-
return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value;
|
4073
|
+
return WEBKIT + 'box-' + replace$1(value, '-grow', '') + WEBKIT + value + MS + replace$1(value, 'grow', 'positive') + value;
|
4094
4074
|
// transition
|
4095
4075
|
|
4096
4076
|
case 4554:
|
4097
|
-
return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;
|
4077
|
+
return WEBKIT + replace$1(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;
|
4098
4078
|
// cursor
|
4099
4079
|
|
4100
4080
|
case 6187:
|
4101
|
-
return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;
|
4081
|
+
return replace$1(replace$1(replace$1(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;
|
4102
4082
|
// background, background-image
|
4103
4083
|
|
4104
4084
|
case 5495:
|
4105
4085
|
case 3959:
|
4106
|
-
return replace(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1');
|
4086
|
+
return replace$1(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1');
|
4107
4087
|
// justify-content
|
4108
4088
|
|
4109
4089
|
case 4968:
|
4110
|
-
return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;
|
4090
|
+
return replace$1(replace$1(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;
|
4111
4091
|
// (margin|padding)-inline-(start|end)
|
4112
4092
|
|
4113
4093
|
case 4095:
|
4114
4094
|
case 3583:
|
4115
4095
|
case 4068:
|
4116
4096
|
case 2532:
|
4117
|
-
return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;
|
4097
|
+
return replace$1(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;
|
4118
4098
|
// (min|max)?(width|height|inline-size|block-size)
|
4119
4099
|
|
4120
4100
|
case 8116:
|
@@ -4138,11 +4118,11 @@ function prefix(value, length) {
|
|
4138
4118
|
// (f)ill-available, (f)it-content
|
4139
4119
|
|
4140
4120
|
case 102:
|
4141
|
-
return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
|
4121
|
+
return replace$1(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
|
4142
4122
|
// (s)tretch
|
4143
4123
|
|
4144
4124
|
case 115:
|
4145
|
-
return ~indexof(value, 'stretch') ? prefix(replace(value, 'stretch', 'fill-available'), length) + value : value;
|
4125
|
+
return ~indexof(value, 'stretch') ? prefix(replace$1(value, 'stretch', 'fill-available'), length) + value : value;
|
4146
4126
|
}
|
4147
4127
|
break;
|
4148
4128
|
// position: sticky
|
@@ -4156,11 +4136,11 @@ function prefix(value, length) {
|
|
4156
4136
|
switch (charat(value, strlen(value) - 3 - (~indexof(value, '!important') && 10))) {
|
4157
4137
|
// stic(k)y
|
4158
4138
|
case 107:
|
4159
|
-
return replace(value, ':', ':' + WEBKIT) + value;
|
4139
|
+
return replace$1(value, ':', ':' + WEBKIT) + value;
|
4160
4140
|
// (inline-)?fl(e)x
|
4161
4141
|
|
4162
4142
|
case 101:
|
4163
|
-
return replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;
|
4143
|
+
return replace$1(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;
|
4164
4144
|
}
|
4165
4145
|
|
4166
4146
|
break;
|
@@ -4170,15 +4150,15 @@ function prefix(value, length) {
|
|
4170
4150
|
switch (charat(value, length + 11)) {
|
4171
4151
|
// vertical-l(r)
|
4172
4152
|
case 114:
|
4173
|
-
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
|
4153
|
+
return WEBKIT + value + MS + replace$1(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
|
4174
4154
|
// vertical-r(l)
|
4175
4155
|
|
4176
4156
|
case 108:
|
4177
|
-
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
|
4157
|
+
return WEBKIT + value + MS + replace$1(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
|
4178
4158
|
// horizontal(-)tb
|
4179
4159
|
|
4180
4160
|
case 45:
|
4181
|
-
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
|
4161
|
+
return WEBKIT + value + MS + replace$1(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
|
4182
4162
|
}
|
4183
4163
|
|
4184
4164
|
return WEBKIT + value + MS + value + value;
|
@@ -4195,7 +4175,7 @@ var prefixer = function prefixer(element, index, children, callback) {
|
|
4195
4175
|
|
4196
4176
|
case KEYFRAMES:
|
4197
4177
|
return serialize([copy(element, {
|
4198
|
-
value: replace(element.value, '@', '@' + WEBKIT)
|
4178
|
+
value: replace$1(element.value, '@', '@' + WEBKIT)
|
4199
4179
|
})], callback);
|
4200
4180
|
|
4201
4181
|
case RULESET:
|
@@ -4205,17 +4185,17 @@ var prefixer = function prefixer(element, index, children, callback) {
|
|
4205
4185
|
case ':read-only':
|
4206
4186
|
case ':read-write':
|
4207
4187
|
return serialize([copy(element, {
|
4208
|
-
props: [replace(value, /:(read-\w+)/, ':' + MOZ + '$1')]
|
4188
|
+
props: [replace$1(value, /:(read-\w+)/, ':' + MOZ + '$1')]
|
4209
4189
|
})], callback);
|
4210
4190
|
// :placeholder
|
4211
4191
|
|
4212
4192
|
case '::placeholder':
|
4213
4193
|
return serialize([copy(element, {
|
4214
|
-
props: [replace(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]
|
4194
|
+
props: [replace$1(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]
|
4215
4195
|
}), copy(element, {
|
4216
|
-
props: [replace(value, /:(plac\w+)/, ':' + MOZ + '$1')]
|
4196
|
+
props: [replace$1(value, /:(plac\w+)/, ':' + MOZ + '$1')]
|
4217
4197
|
}), copy(element, {
|
4218
|
-
props: [replace(value, /:(plac\w+)/, MS + 'input-$1')]
|
4198
|
+
props: [replace$1(value, /:(plac\w+)/, MS + 'input-$1')]
|
4219
4199
|
})], callback);
|
4220
4200
|
}
|
4221
4201
|
|
@@ -5867,7 +5847,7 @@ var createStyled$1 = function createStyled(tag, options) {
|
|
5867
5847
|
});
|
5868
5848
|
|
5869
5849
|
Styled.withComponent = function (nextTag, nextOptions) {
|
5870
|
-
return createStyled(nextTag, _extends
|
5850
|
+
return createStyled(nextTag, _extends({}, options, nextOptions, {
|
5871
5851
|
shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
|
5872
5852
|
})).apply(void 0, styles);
|
5873
5853
|
};
|
@@ -5917,34 +5897,6 @@ const internal_processStyles = (tag, processor) => {
|
|
5917
5897
|
}
|
5918
5898
|
};
|
5919
5899
|
|
5920
|
-
function _extends$1() {
|
5921
|
-
_extends$1 = Object.assign ? Object.assign.bind() : function (target) {
|
5922
|
-
for (var i = 1; i < arguments.length; i++) {
|
5923
|
-
var source = arguments[i];
|
5924
|
-
for (var key in source) {
|
5925
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
5926
|
-
target[key] = source[key];
|
5927
|
-
}
|
5928
|
-
}
|
5929
|
-
}
|
5930
|
-
return target;
|
5931
|
-
};
|
5932
|
-
return _extends$1.apply(this, arguments);
|
5933
|
-
}
|
5934
|
-
|
5935
|
-
function _objectWithoutPropertiesLoose$1(source, excluded) {
|
5936
|
-
if (source == null) return {};
|
5937
|
-
var target = {};
|
5938
|
-
var sourceKeys = Object.keys(source);
|
5939
|
-
var key, i;
|
5940
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
5941
|
-
key = sourceKeys[i];
|
5942
|
-
if (excluded.indexOf(key) >= 0) continue;
|
5943
|
-
target[key] = source[key];
|
5944
|
-
}
|
5945
|
-
return target;
|
5946
|
-
}
|
5947
|
-
|
5948
5900
|
const _excluded$j = ["values", "unit", "step"];
|
5949
5901
|
const sortBreakpointsValues = values => {
|
5950
5902
|
const breakpointsAsArray = Object.keys(values).map(key => ({
|
@@ -5954,7 +5906,7 @@ const sortBreakpointsValues = values => {
|
|
5954
5906
|
// Sort in ascending order
|
5955
5907
|
breakpointsAsArray.sort((breakpoint1, breakpoint2) => breakpoint1.val - breakpoint2.val);
|
5956
5908
|
return breakpointsAsArray.reduce((acc, obj) => {
|
5957
|
-
return _extends
|
5909
|
+
return _extends({}, acc, {
|
5958
5910
|
[obj.key]: obj.val
|
5959
5911
|
});
|
5960
5912
|
}, {});
|
@@ -5980,7 +5932,7 @@ function createBreakpoints(breakpoints) {
|
|
5980
5932
|
unit = 'px',
|
5981
5933
|
step = 5
|
5982
5934
|
} = breakpoints,
|
5983
|
-
other = _objectWithoutPropertiesLoose
|
5935
|
+
other = _objectWithoutPropertiesLoose(breakpoints, _excluded$j);
|
5984
5936
|
const sortedValues = sortBreakpointsValues(values);
|
5985
5937
|
const keys = Object.keys(sortedValues);
|
5986
5938
|
function up(key) {
|
@@ -6012,7 +5964,7 @@ function createBreakpoints(breakpoints) {
|
|
6012
5964
|
}
|
6013
5965
|
return between(key, keys[keys.indexOf(key) + 1]).replace('@media', '@media not all and');
|
6014
5966
|
}
|
6015
|
-
return _extends
|
5967
|
+
return _extends({
|
6016
5968
|
keys,
|
6017
5969
|
values: sortedValues,
|
6018
5970
|
up,
|
@@ -6620,8 +6572,8 @@ const width = style$2({
|
|
6620
6572
|
const maxWidth = props => {
|
6621
6573
|
if (props.maxWidth !== undefined && props.maxWidth !== null) {
|
6622
6574
|
const styleFromPropValue = propValue => {
|
6623
|
-
var _props$theme;
|
6624
|
-
const breakpoint = ((_props$theme = props.theme) == null
|
6575
|
+
var _props$theme, _props$theme$breakpoi, _props$theme$breakpoi2;
|
6576
|
+
const breakpoint = ((_props$theme = props.theme) == null ? void 0 : (_props$theme$breakpoi = _props$theme.breakpoints) == null ? void 0 : (_props$theme$breakpoi2 = _props$theme$breakpoi.values) == null ? void 0 : _props$theme$breakpoi2[propValue]) || values$2[propValue];
|
6625
6577
|
return {
|
6626
6578
|
maxWidth: breakpoint || sizingTransform(propValue)
|
6627
6579
|
};
|
@@ -7072,7 +7024,7 @@ function createTheme$1(options = {}, ...args) {
|
|
7072
7024
|
spacing: spacingInput,
|
7073
7025
|
shape: shapeInput = {}
|
7074
7026
|
} = options,
|
7075
|
-
other = _objectWithoutPropertiesLoose
|
7027
|
+
other = _objectWithoutPropertiesLoose(options, _excluded$i);
|
7076
7028
|
const breakpoints = createBreakpoints(breakpointsInput);
|
7077
7029
|
const spacing = createSpacing(spacingInput);
|
7078
7030
|
let muiTheme = deepmerge({
|
@@ -7080,14 +7032,14 @@ function createTheme$1(options = {}, ...args) {
|
|
7080
7032
|
direction: 'ltr',
|
7081
7033
|
components: {},
|
7082
7034
|
// Inject component definitions.
|
7083
|
-
palette: _extends
|
7035
|
+
palette: _extends({
|
7084
7036
|
mode: 'light'
|
7085
7037
|
}, paletteInput),
|
7086
7038
|
spacing,
|
7087
|
-
shape: _extends
|
7039
|
+
shape: _extends({}, shape$1, shapeInput)
|
7088
7040
|
}, other);
|
7089
7041
|
muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);
|
7090
|
-
muiTheme.unstable_sxConfig = _extends
|
7042
|
+
muiTheme.unstable_sxConfig = _extends({}, defaultSxConfig$1, other == null ? void 0 : other.unstable_sxConfig);
|
7091
7043
|
muiTheme.unstable_sx = function sx(props) {
|
7092
7044
|
return styleFunctionSx$1({
|
7093
7045
|
sx: props,
|
@@ -7117,7 +7069,7 @@ const splitProps = props => {
|
|
7117
7069
|
systemProps: {},
|
7118
7070
|
otherProps: {}
|
7119
7071
|
};
|
7120
|
-
const config = (_props$theme$unstable = props == null
|
7072
|
+
const config = (_props$theme$unstable = props == null ? void 0 : (_props$theme = props.theme) == null ? void 0 : _props$theme.unstable_sxConfig) != null ? _props$theme$unstable : defaultSxConfig$1;
|
7121
7073
|
Object.keys(props).forEach(prop => {
|
7122
7074
|
if (config[prop]) {
|
7123
7075
|
result.systemProps[prop] = props[prop];
|
@@ -7131,7 +7083,7 @@ function extendSxProp(props) {
|
|
7131
7083
|
const {
|
7132
7084
|
sx: inSx
|
7133
7085
|
} = props,
|
7134
|
-
other = _objectWithoutPropertiesLoose
|
7086
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$h);
|
7135
7087
|
const {
|
7136
7088
|
systemProps,
|
7137
7089
|
otherProps
|
@@ -7145,12 +7097,12 @@ function extendSxProp(props) {
|
|
7145
7097
|
if (!isPlainObject(result)) {
|
7146
7098
|
return systemProps;
|
7147
7099
|
}
|
7148
|
-
return _extends
|
7100
|
+
return _extends({}, systemProps, result);
|
7149
7101
|
};
|
7150
7102
|
} else {
|
7151
|
-
finalSx = _extends
|
7103
|
+
finalSx = _extends({}, systemProps, inSx);
|
7152
7104
|
}
|
7153
|
-
return _extends
|
7105
|
+
return _extends({}, otherProps, {
|
7154
7106
|
sx: finalSx
|
7155
7107
|
});
|
7156
7108
|
}
|
@@ -7175,8 +7127,8 @@ function createBox(options = {}) {
|
|
7175
7127
|
className,
|
7176
7128
|
component = 'div'
|
7177
7129
|
} = _extendSxProp,
|
7178
|
-
other = _objectWithoutPropertiesLoose
|
7179
|
-
return /*#__PURE__*/jsx(BoxRoot, _extends
|
7130
|
+
other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$g);
|
7131
|
+
return /*#__PURE__*/jsx(BoxRoot, _extends({
|
7180
7132
|
as: component,
|
7181
7133
|
ref: ref,
|
7182
7134
|
className: clsx(className, generateClassName ? generateClassName(defaultClassName) : defaultClassName),
|
@@ -7200,7 +7152,7 @@ function propsToClassKey(props) {
|
|
7200
7152
|
const {
|
7201
7153
|
variant
|
7202
7154
|
} = props,
|
7203
|
-
other = _objectWithoutPropertiesLoose
|
7155
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$f);
|
7204
7156
|
let classKey = variant || '';
|
7205
7157
|
Object.keys(other).sort().forEach(key => {
|
7206
7158
|
if (key === 'color') {
|
@@ -7244,12 +7196,12 @@ const getVariantStyles = (name, theme) => {
|
|
7244
7196
|
return variantsStyles;
|
7245
7197
|
};
|
7246
7198
|
const variantsResolver = (props, styles, theme, name) => {
|
7247
|
-
var _theme$components;
|
7199
|
+
var _theme$components, _theme$components$nam;
|
7248
7200
|
const {
|
7249
7201
|
ownerState = {}
|
7250
7202
|
} = props;
|
7251
7203
|
const variantsStyles = [];
|
7252
|
-
const themeVariants = theme == null
|
7204
|
+
const themeVariants = theme == null ? void 0 : (_theme$components = theme.components) == null ? void 0 : (_theme$components$nam = _theme$components[name]) == null ? void 0 : _theme$components$nam.variants;
|
7253
7205
|
if (themeVariants) {
|
7254
7206
|
themeVariants.forEach(themeVariant => {
|
7255
7207
|
let isMatch = true;
|
@@ -7289,8 +7241,8 @@ function createStyled(input = {}) {
|
|
7289
7241
|
slotShouldForwardProp = shouldForwardProp
|
7290
7242
|
} = input;
|
7291
7243
|
const systemSx = props => {
|
7292
|
-
return styleFunctionSx$1(_extends
|
7293
|
-
theme: resolveTheme(_extends
|
7244
|
+
return styleFunctionSx$1(_extends({}, props, {
|
7245
|
+
theme: resolveTheme(_extends({}, props, {
|
7294
7246
|
defaultTheme,
|
7295
7247
|
themeId
|
7296
7248
|
}))
|
@@ -7307,7 +7259,7 @@ function createStyled(input = {}) {
|
|
7307
7259
|
skipSx: inputSkipSx,
|
7308
7260
|
overridesResolver
|
7309
7261
|
} = inputOptions,
|
7310
|
-
options = _objectWithoutPropertiesLoose
|
7262
|
+
options = _objectWithoutPropertiesLoose(inputOptions, _excluded$e);
|
7311
7263
|
|
7312
7264
|
// if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.
|
7313
7265
|
const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver : componentSlot && componentSlot !== 'Root' || false;
|
@@ -7328,7 +7280,7 @@ function createStyled(input = {}) {
|
|
7328
7280
|
// for string (html) tag, preserve the behavior in emotion & styled-components.
|
7329
7281
|
shouldForwardPropOption = undefined;
|
7330
7282
|
}
|
7331
|
-
const defaultStyledResolver = styled$3(tag, _extends
|
7283
|
+
const defaultStyledResolver = styled$3(tag, _extends({
|
7332
7284
|
shouldForwardProp: shouldForwardPropOption,
|
7333
7285
|
label
|
7334
7286
|
}, options));
|
@@ -7338,8 +7290,8 @@ function createStyled(input = {}) {
|
|
7338
7290
|
// component stays as a function. This condition makes sure that we do not interpolate functions
|
7339
7291
|
// which are basically components used as a selectors.
|
7340
7292
|
return typeof stylesArg === 'function' && stylesArg.__emotion_real !== stylesArg ? props => {
|
7341
|
-
return stylesArg(_extends
|
7342
|
-
theme: resolveTheme(_extends
|
7293
|
+
return stylesArg(_extends({}, props, {
|
7294
|
+
theme: resolveTheme(_extends({}, props, {
|
7343
7295
|
defaultTheme,
|
7344
7296
|
themeId
|
7345
7297
|
}))
|
@@ -7349,7 +7301,7 @@ function createStyled(input = {}) {
|
|
7349
7301
|
let transformedStyleArg = styleArg;
|
7350
7302
|
if (componentName && overridesResolver) {
|
7351
7303
|
expressionsWithDefaultTheme.push(props => {
|
7352
|
-
const theme = resolveTheme(_extends
|
7304
|
+
const theme = resolveTheme(_extends({}, props, {
|
7353
7305
|
defaultTheme,
|
7354
7306
|
themeId
|
7355
7307
|
}));
|
@@ -7357,7 +7309,7 @@ function createStyled(input = {}) {
|
|
7357
7309
|
if (styleOverrides) {
|
7358
7310
|
const resolvedStyleOverrides = {};
|
7359
7311
|
Object.entries(styleOverrides).forEach(([slotKey, slotStyle]) => {
|
7360
|
-
resolvedStyleOverrides[slotKey] = typeof slotStyle === 'function' ? slotStyle(_extends
|
7312
|
+
resolvedStyleOverrides[slotKey] = typeof slotStyle === 'function' ? slotStyle(_extends({}, props, {
|
7361
7313
|
theme
|
7362
7314
|
})) : slotStyle;
|
7363
7315
|
});
|
@@ -7368,7 +7320,7 @@ function createStyled(input = {}) {
|
|
7368
7320
|
}
|
7369
7321
|
if (componentName && !skipVariantsResolver) {
|
7370
7322
|
expressionsWithDefaultTheme.push(props => {
|
7371
|
-
const theme = resolveTheme(_extends
|
7323
|
+
const theme = resolveTheme(_extends({}, props, {
|
7372
7324
|
defaultTheme,
|
7373
7325
|
themeId
|
7374
7326
|
}));
|
@@ -7390,8 +7342,8 @@ function createStyled(input = {}) {
|
|
7390
7342
|
// which are basically components used as a selectors.
|
7391
7343
|
styleArg.__emotion_real !== styleArg) {
|
7392
7344
|
// If the type is function, we need to define the default theme.
|
7393
|
-
transformedStyleArg = props => styleArg(_extends
|
7394
|
-
theme: resolveTheme(_extends
|
7345
|
+
transformedStyleArg = props => styleArg(_extends({}, props, {
|
7346
|
+
theme: resolveTheme(_extends({}, props, {
|
7395
7347
|
defaultTheme,
|
7396
7348
|
themeId
|
7397
7349
|
}))
|
@@ -7687,21 +7639,6 @@ function lighten(color, coefficient) {
|
|
7687
7639
|
return recomposeColor(color);
|
7688
7640
|
}
|
7689
7641
|
|
7690
|
-
function _extends() {
|
7691
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
7692
|
-
for (var i = 1; i < arguments.length; i++) {
|
7693
|
-
var source = arguments[i];
|
7694
|
-
for (var key in source) {
|
7695
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
7696
|
-
target[key] = source[key];
|
7697
|
-
}
|
7698
|
-
}
|
7699
|
-
}
|
7700
|
-
return target;
|
7701
|
-
};
|
7702
|
-
return _extends.apply(this, arguments);
|
7703
|
-
}
|
7704
|
-
|
7705
7642
|
const ThemeContext = /*#__PURE__*/React.createContext(null);
|
7706
7643
|
if (process.env.NODE_ENV !== 'production') {
|
7707
7644
|
ThemeContext.displayName = 'ThemeContext';
|
@@ -7730,7 +7667,10 @@ function mergeOuterLocalTheme(outerTheme, localTheme) {
|
|
7730
7667
|
}
|
7731
7668
|
return mergedTheme;
|
7732
7669
|
}
|
7733
|
-
return
|
7670
|
+
return {
|
7671
|
+
...outerTheme,
|
7672
|
+
...localTheme
|
7673
|
+
};
|
7734
7674
|
}
|
7735
7675
|
|
7736
7676
|
/**
|
@@ -7781,7 +7721,7 @@ function useThemeScoping(themeId, upperTheme, localTheme, isPrivate = false) {
|
|
7781
7721
|
const resolvedTheme = themeId ? upperTheme[themeId] || upperTheme : upperTheme;
|
7782
7722
|
if (typeof localTheme === 'function') {
|
7783
7723
|
const mergedTheme = localTheme(resolvedTheme);
|
7784
|
-
const result = themeId ? _extends
|
7724
|
+
const result = themeId ? _extends({}, upperTheme, {
|
7785
7725
|
[themeId]: mergedTheme
|
7786
7726
|
}) : mergedTheme;
|
7787
7727
|
// must return a function for the private theme to NOT merge with the upper theme.
|
@@ -7791,9 +7731,9 @@ function useThemeScoping(themeId, upperTheme, localTheme, isPrivate = false) {
|
|
7791
7731
|
}
|
7792
7732
|
return result;
|
7793
7733
|
}
|
7794
|
-
return themeId ? _extends
|
7734
|
+
return themeId ? _extends({}, upperTheme, {
|
7795
7735
|
[themeId]: localTheme
|
7796
|
-
}) : _extends
|
7736
|
+
}) : _extends({}, upperTheme, localTheme);
|
7797
7737
|
}, [themeId, upperTheme, localTheme, isPrivate]);
|
7798
7738
|
}
|
7799
7739
|
|
@@ -7896,7 +7836,7 @@ const style = ({
|
|
7896
7836
|
ownerState,
|
7897
7837
|
theme
|
7898
7838
|
}) => {
|
7899
|
-
let styles = _extends
|
7839
|
+
let styles = _extends({
|
7900
7840
|
display: 'flex',
|
7901
7841
|
flexDirection: 'column'
|
7902
7842
|
}, handleBreakpoints({
|
@@ -7939,7 +7879,7 @@ const style = ({
|
|
7939
7879
|
};
|
7940
7880
|
}
|
7941
7881
|
return {
|
7942
|
-
'& > :not(style)
|
7882
|
+
'& > :not(style) + :not(style)': {
|
7943
7883
|
margin: 0,
|
7944
7884
|
[`margin${getSideFromDirection(breakpoint ? directionValues[breakpoint] : ownerState.direction)}`]: getValue(transformer, propValue)
|
7945
7885
|
}
|
@@ -7978,14 +7918,14 @@ function createStack(options = {}) {
|
|
7978
7918
|
className,
|
7979
7919
|
useFlexGap = false
|
7980
7920
|
} = props,
|
7981
|
-
other = _objectWithoutPropertiesLoose
|
7921
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$d);
|
7982
7922
|
const ownerState = {
|
7983
7923
|
direction,
|
7984
7924
|
spacing,
|
7985
7925
|
useFlexGap
|
7986
7926
|
};
|
7987
7927
|
const classes = useUtilityClasses();
|
7988
|
-
return /*#__PURE__*/jsx(StackRoot, _extends
|
7928
|
+
return /*#__PURE__*/jsx(StackRoot, _extends({
|
7989
7929
|
as: component,
|
7990
7930
|
ownerState: ownerState,
|
7991
7931
|
ref: ref,
|
@@ -8005,7 +7945,7 @@ function createStack(options = {}) {
|
|
8005
7945
|
}
|
8006
7946
|
|
8007
7947
|
function createMixins(breakpoints, mixins) {
|
8008
|
-
return _extends
|
7948
|
+
return _extends({
|
8009
7949
|
toolbar: {
|
8010
7950
|
minHeight: 56,
|
8011
7951
|
[breakpoints.up('xs')]: {
|
@@ -8321,7 +8261,7 @@ function createPalette(palette) {
|
|
8321
8261
|
contrastThreshold = 3,
|
8322
8262
|
tonalOffset = 0.2
|
8323
8263
|
} = palette,
|
8324
|
-
other = _objectWithoutPropertiesLoose
|
8264
|
+
other = _objectWithoutPropertiesLoose(palette, _excluded$c);
|
8325
8265
|
const primary = palette.primary || getDefaultPrimary(mode);
|
8326
8266
|
const secondary = palette.secondary || getDefaultSecondary(mode);
|
8327
8267
|
const error = palette.error || getDefaultError(mode);
|
@@ -8349,7 +8289,7 @@ function createPalette(palette) {
|
|
8349
8289
|
lightShade = 300,
|
8350
8290
|
darkShade = 700
|
8351
8291
|
}) => {
|
8352
|
-
color = _extends
|
8292
|
+
color = _extends({}, color);
|
8353
8293
|
if (!color.main && color[mainShade]) {
|
8354
8294
|
color.main = color[mainShade];
|
8355
8295
|
}
|
@@ -8389,9 +8329,9 @@ const theme2 = createTheme({ palette: {
|
|
8389
8329
|
console.error(`MUI: The palette mode \`${mode}\` is not supported.`);
|
8390
8330
|
}
|
8391
8331
|
}
|
8392
|
-
const paletteOutput = deepmerge(_extends
|
8332
|
+
const paletteOutput = deepmerge(_extends({
|
8393
8333
|
// A collection of common colors.
|
8394
|
-
common: _extends
|
8334
|
+
common: _extends({}, common$1),
|
8395
8335
|
// prevent mutable object.
|
8396
8336
|
// The palette mode, can be light or dark.
|
8397
8337
|
mode,
|
@@ -8476,7 +8416,7 @@ function createTypography(palette, typography) {
|
|
8476
8416
|
allVariants,
|
8477
8417
|
pxToRem: pxToRem2
|
8478
8418
|
} = _ref,
|
8479
|
-
other = _objectWithoutPropertiesLoose
|
8419
|
+
other = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
8480
8420
|
if (process.env.NODE_ENV !== 'production') {
|
8481
8421
|
if (typeof fontSize !== 'number') {
|
8482
8422
|
console.error('MUI: `fontSize` is required to be a number.');
|
@@ -8487,7 +8427,7 @@ function createTypography(palette, typography) {
|
|
8487
8427
|
}
|
8488
8428
|
const coef = fontSize / 14;
|
8489
8429
|
const pxToRem = pxToRem2 || (size => `${size / htmlFontSize * coef}rem`);
|
8490
|
-
const buildVariant = (fontWeight, size, lineHeight, letterSpacing, casing) => _extends
|
8430
|
+
const buildVariant = (fontWeight, size, lineHeight, letterSpacing, casing) => _extends({
|
8491
8431
|
fontFamily,
|
8492
8432
|
fontWeight,
|
8493
8433
|
fontSize: pxToRem(size),
|
@@ -8518,7 +8458,7 @@ function createTypography(palette, typography) {
|
|
8518
8458
|
letterSpacing: 'inherit'
|
8519
8459
|
}
|
8520
8460
|
};
|
8521
|
-
return deepmerge(_extends
|
8461
|
+
return deepmerge(_extends({
|
8522
8462
|
htmlFontSize,
|
8523
8463
|
pxToRem,
|
8524
8464
|
fontFamily,
|
@@ -8586,15 +8526,15 @@ function getAutoHeightDuration(height) {
|
|
8586
8526
|
return Math.round((4 + 15 * constant ** 0.25 + constant / 5) * 10);
|
8587
8527
|
}
|
8588
8528
|
function createTransitions(inputTransitions) {
|
8589
|
-
const mergedEasing = _extends
|
8590
|
-
const mergedDuration = _extends
|
8529
|
+
const mergedEasing = _extends({}, easing, inputTransitions.easing);
|
8530
|
+
const mergedDuration = _extends({}, duration, inputTransitions.duration);
|
8591
8531
|
const create = (props = ['all'], options = {}) => {
|
8592
8532
|
const {
|
8593
8533
|
duration: durationOption = mergedDuration.standard,
|
8594
8534
|
easing: easingOption = mergedEasing.easeInOut,
|
8595
8535
|
delay = 0
|
8596
8536
|
} = options,
|
8597
|
-
other = _objectWithoutPropertiesLoose
|
8537
|
+
other = _objectWithoutPropertiesLoose(options, _excluded$a);
|
8598
8538
|
if (process.env.NODE_ENV !== 'production') {
|
8599
8539
|
const isString = value => typeof value === 'string';
|
8600
8540
|
// IE11 support, replace with Number.isNaN
|
@@ -8612,16 +8552,13 @@ function createTransitions(inputTransitions) {
|
|
8612
8552
|
if (!isNumber(delay) && !isString(delay)) {
|
8613
8553
|
console.error('MUI: Argument "delay" must be a number or a string.');
|
8614
8554
|
}
|
8615
|
-
if (typeof options !== 'object') {
|
8616
|
-
console.error(['MUI: Secong argument of transition.create must be an object.', "Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join('\n'));
|
8617
|
-
}
|
8618
8555
|
if (Object.keys(other).length !== 0) {
|
8619
8556
|
console.error(`MUI: Unrecognized argument(s) [${Object.keys(other).join(',')}].`);
|
8620
8557
|
}
|
8621
8558
|
}
|
8622
8559
|
return (Array.isArray(props) ? props : [props]).map(animatedProp => `${animatedProp} ${typeof durationOption === 'string' ? durationOption : formatMs(durationOption)} ${easingOption} ${typeof delay === 'string' ? delay : formatMs(delay)}`).join(',');
|
8623
8560
|
};
|
8624
|
-
return _extends
|
8561
|
+
return _extends({
|
8625
8562
|
getAutoHeightDuration,
|
8626
8563
|
create
|
8627
8564
|
}, inputTransitions, {
|
@@ -8652,7 +8589,7 @@ function createTheme(options = {}, ...args) {
|
|
8652
8589
|
transitions: transitionsInput = {},
|
8653
8590
|
typography: typographyInput = {}
|
8654
8591
|
} = options,
|
8655
|
-
other = _objectWithoutPropertiesLoose
|
8592
|
+
other = _objectWithoutPropertiesLoose(options, _excluded$9);
|
8656
8593
|
if (options.vars) {
|
8657
8594
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: \`vars\` is a private field used for CSS variables support.
|
8658
8595
|
Please use another name.` : formatMuiErrorMessage(18));
|
@@ -8666,7 +8603,7 @@ Please use another name.` : formatMuiErrorMessage(18));
|
|
8666
8603
|
shadows: shadows$1.slice(),
|
8667
8604
|
typography: createTypography(palette, typographyInput),
|
8668
8605
|
transitions: createTransitions(transitionsInput),
|
8669
|
-
zIndex: _extends
|
8606
|
+
zIndex: _extends({}, zIndex$1)
|
8670
8607
|
});
|
8671
8608
|
muiTheme = deepmerge(muiTheme, other);
|
8672
8609
|
muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);
|
@@ -8700,7 +8637,7 @@ Please use another name.` : formatMuiErrorMessage(18));
|
|
8700
8637
|
}
|
8701
8638
|
});
|
8702
8639
|
}
|
8703
|
-
muiTheme.unstable_sxConfig = _extends
|
8640
|
+
muiTheme.unstable_sxConfig = _extends({}, defaultSxConfig$1, other == null ? void 0 : other.unstable_sxConfig);
|
8704
8641
|
muiTheme.unstable_sx = function sx(props) {
|
8705
8642
|
return styleFunctionSx$1({
|
8706
8643
|
sx: props,
|
@@ -8747,9 +8684,9 @@ function ThemeProvider(_ref) {
|
|
8747
8684
|
let {
|
8748
8685
|
theme: themeInput
|
8749
8686
|
} = _ref,
|
8750
|
-
props = _objectWithoutPropertiesLoose
|
8687
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
8751
8688
|
const scopedTheme = themeInput[THEME_ID];
|
8752
|
-
return /*#__PURE__*/jsx(ThemeProvider$1, _extends
|
8689
|
+
return /*#__PURE__*/jsx(ThemeProvider$1, _extends({}, props, {
|
8753
8690
|
themeId: scopedTheme ? THEME_ID : undefined,
|
8754
8691
|
theme: scopedTheme || themeInput
|
8755
8692
|
}));
|
@@ -8795,29 +8732,27 @@ const SvgIconRoot = styled$1('svg', {
|
|
8795
8732
|
theme,
|
8796
8733
|
ownerState
|
8797
8734
|
}) => {
|
8798
|
-
var _theme$transitions, _theme$transitions$cr, _theme$transitions2, _theme$typography, _theme$typography$pxT, _theme$typography2, _theme$typography2$px, _theme$typography3, _theme$typography3$px, _palette$ownerState$c, _palette, _palette2, _palette3;
|
8735
|
+
var _theme$transitions, _theme$transitions$cr, _theme$transitions2, _theme$transitions2$d, _theme$typography, _theme$typography$pxT, _theme$typography2, _theme$typography2$px, _theme$typography3, _theme$typography3$px, _palette$ownerState$c, _palette, _palette$ownerState$c2, _palette2, _palette2$action, _palette3, _palette3$action;
|
8799
8736
|
return {
|
8800
8737
|
userSelect: 'none',
|
8801
8738
|
width: '1em',
|
8802
8739
|
height: '1em',
|
8803
8740
|
display: 'inline-block',
|
8804
|
-
|
8805
|
-
// e.g. heroicons uses fill="none" and stroke="currentColor"
|
8806
|
-
fill: ownerState.hasSvgAsChild ? undefined : 'currentColor',
|
8741
|
+
fill: 'currentColor',
|
8807
8742
|
flexShrink: 0,
|
8808
|
-
transition: (_theme$transitions = theme.transitions) == null
|
8809
|
-
duration: (_theme$transitions2 = theme.transitions) == null
|
8743
|
+
transition: (_theme$transitions = theme.transitions) == null ? void 0 : (_theme$transitions$cr = _theme$transitions.create) == null ? void 0 : _theme$transitions$cr.call(_theme$transitions, 'fill', {
|
8744
|
+
duration: (_theme$transitions2 = theme.transitions) == null ? void 0 : (_theme$transitions2$d = _theme$transitions2.duration) == null ? void 0 : _theme$transitions2$d.shorter
|
8810
8745
|
}),
|
8811
8746
|
fontSize: {
|
8812
8747
|
inherit: 'inherit',
|
8813
|
-
small: ((_theme$typography = theme.typography) == null
|
8814
|
-
medium: ((_theme$typography2 = theme.typography) == null
|
8815
|
-
large: ((_theme$typography3 = theme.typography) == null
|
8748
|
+
small: ((_theme$typography = theme.typography) == null ? void 0 : (_theme$typography$pxT = _theme$typography.pxToRem) == null ? void 0 : _theme$typography$pxT.call(_theme$typography, 20)) || '1.25rem',
|
8749
|
+
medium: ((_theme$typography2 = theme.typography) == null ? void 0 : (_theme$typography2$px = _theme$typography2.pxToRem) == null ? void 0 : _theme$typography2$px.call(_theme$typography2, 24)) || '1.5rem',
|
8750
|
+
large: ((_theme$typography3 = theme.typography) == null ? void 0 : (_theme$typography3$px = _theme$typography3.pxToRem) == null ? void 0 : _theme$typography3$px.call(_theme$typography3, 35)) || '2.1875rem'
|
8816
8751
|
}[ownerState.fontSize],
|
8817
8752
|
// TODO v5 deprecate, v6 remove for sx
|
8818
|
-
color: (_palette$ownerState$c = (_palette = (theme.vars || theme).palette) == null
|
8819
|
-
action: (_palette2 = (theme.vars || theme).palette) == null
|
8820
|
-
disabled: (_palette3 = (theme.vars || theme).palette) == null
|
8753
|
+
color: (_palette$ownerState$c = (_palette = (theme.vars || theme).palette) == null ? void 0 : (_palette$ownerState$c2 = _palette[ownerState.color]) == null ? void 0 : _palette$ownerState$c2.main) != null ? _palette$ownerState$c : {
|
8754
|
+
action: (_palette2 = (theme.vars || theme).palette) == null ? void 0 : (_palette2$action = _palette2.action) == null ? void 0 : _palette2$action.active,
|
8755
|
+
disabled: (_palette3 = (theme.vars || theme).palette) == null ? void 0 : (_palette3$action = _palette3.action) == null ? void 0 : _palette3$action.disabled,
|
8821
8756
|
inherit: undefined
|
8822
8757
|
}[ownerState.color]
|
8823
8758
|
};
|
@@ -8838,23 +8773,21 @@ const SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {
|
|
8838
8773
|
titleAccess,
|
8839
8774
|
viewBox = '0 0 24 24'
|
8840
8775
|
} = props,
|
8841
|
-
other = _objectWithoutPropertiesLoose
|
8842
|
-
const
|
8843
|
-
const ownerState = _extends$3({}, props, {
|
8776
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$7);
|
8777
|
+
const ownerState = _extends({}, props, {
|
8844
8778
|
color,
|
8845
8779
|
component,
|
8846
8780
|
fontSize,
|
8847
8781
|
instanceFontSize: inProps.fontSize,
|
8848
8782
|
inheritViewBox,
|
8849
|
-
viewBox
|
8850
|
-
hasSvgAsChild
|
8783
|
+
viewBox
|
8851
8784
|
});
|
8852
8785
|
const more = {};
|
8853
8786
|
if (!inheritViewBox) {
|
8854
8787
|
more.viewBox = viewBox;
|
8855
8788
|
}
|
8856
8789
|
const classes = useUtilityClasses$6(ownerState);
|
8857
|
-
return /*#__PURE__*/jsxs(SvgIconRoot, _extends
|
8790
|
+
return /*#__PURE__*/jsxs(SvgIconRoot, _extends({
|
8858
8791
|
as: component,
|
8859
8792
|
className: clsx(classes.root, className),
|
8860
8793
|
focusable: "false",
|
@@ -8862,9 +8795,9 @@ const SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {
|
|
8862
8795
|
"aria-hidden": titleAccess ? undefined : true,
|
8863
8796
|
role: titleAccess ? 'img' : undefined,
|
8864
8797
|
ref: ref
|
8865
|
-
}, more, other,
|
8798
|
+
}, more, other, {
|
8866
8799
|
ownerState: ownerState,
|
8867
|
-
children: [
|
8800
|
+
children: [children, titleAccess ? /*#__PURE__*/jsx("title", {
|
8868
8801
|
children: titleAccess
|
8869
8802
|
}) : null]
|
8870
8803
|
}));
|
@@ -8946,7 +8879,7 @@ var SvgIcon$1 = SvgIcon;
|
|
8946
8879
|
|
8947
8880
|
function createSvgIcon(path, displayName) {
|
8948
8881
|
function Component(props, ref) {
|
8949
|
-
return /*#__PURE__*/jsx(SvgIcon$1, _extends
|
8882
|
+
return /*#__PURE__*/jsx(SvgIcon$1, _extends({
|
8950
8883
|
"data-testid": `${displayName}Icon`,
|
8951
8884
|
ref: ref
|
8952
8885
|
}, props, {
|
@@ -9154,25 +9087,39 @@ const components = {
|
|
9154
9087
|
}
|
9155
9088
|
},
|
9156
9089
|
MuiButton: {
|
9157
|
-
defaultProps: {
|
9158
|
-
size: 'medium'
|
9159
|
-
},
|
9160
9090
|
styleOverrides: {
|
9161
|
-
|
9162
|
-
|
9091
|
+
endIcon: {
|
9092
|
+
marginLeft: 2
|
9093
|
+
},
|
9094
|
+
iconSizeSmall: {
|
9095
|
+
height: 14,
|
9096
|
+
width: 14
|
9097
|
+
},
|
9098
|
+
iconSizeMedium: {
|
9099
|
+
height: 15,
|
9100
|
+
width: 18
|
9101
|
+
},
|
9102
|
+
iconSizeLarge: {
|
9103
|
+
height: 17,
|
9104
|
+
width: 22
|
9163
9105
|
},
|
9164
9106
|
sizeSmall: {
|
9165
|
-
padding: '
|
9107
|
+
padding: '6px 5px'
|
9166
9108
|
},
|
9167
9109
|
sizeMedium: {
|
9168
|
-
padding: '
|
9110
|
+
padding: '8.5px 8px',
|
9111
|
+
".MuiSvgIcon-fontSizeMedium": {
|
9112
|
+
height: 18,
|
9113
|
+
width: 18
|
9114
|
+
}
|
9169
9115
|
},
|
9170
9116
|
sizeLarge: {
|
9171
|
-
padding: '10.5px
|
9172
|
-
fontSize: 14
|
9173
|
-
|
9174
|
-
|
9175
|
-
|
9117
|
+
padding: '10.5px 11px',
|
9118
|
+
fontSize: 14,
|
9119
|
+
".MuiSvgIcon-fontSizeLarge": {
|
9120
|
+
height: 20,
|
9121
|
+
width: 20
|
9122
|
+
}
|
9176
9123
|
}
|
9177
9124
|
}
|
9178
9125
|
},
|
@@ -9281,7 +9228,7 @@ const components = {
|
|
9281
9228
|
styleOverrides: {
|
9282
9229
|
sizeSmall: {
|
9283
9230
|
fontSize: 14,
|
9284
|
-
padding:
|
9231
|
+
padding: 4
|
9285
9232
|
},
|
9286
9233
|
sizeMedium: {
|
9287
9234
|
fontSize: 20,
|
@@ -9538,48 +9485,69 @@ const typography = {
|
|
9538
9485
|
fontSize: 14,
|
9539
9486
|
fontWeight: 400,
|
9540
9487
|
letterSpacing: 0.15,
|
9541
|
-
lineHeight: 1.4
|
9488
|
+
lineHeight: 1.4,
|
9489
|
+
'@media(max-width: 885px)': {
|
9490
|
+
fontSize: 15
|
9491
|
+
}
|
9542
9492
|
},
|
9543
9493
|
body2: {
|
9544
9494
|
fontFamily: 'Roboto',
|
9545
9495
|
fontSize: 13,
|
9546
9496
|
fontWeight: 400,
|
9547
9497
|
letterSpacing: 0.17,
|
9548
|
-
lineHeight: 1.2
|
9498
|
+
lineHeight: 1.2,
|
9499
|
+
'@media(max-width: 885px)': {
|
9500
|
+
fontSize: 14
|
9501
|
+
}
|
9549
9502
|
},
|
9550
9503
|
subtitle1: {
|
9551
9504
|
fontFamily: 'Roboto',
|
9552
9505
|
fontSize: 14,
|
9553
9506
|
fontWeight: 500,
|
9554
9507
|
letterSpacing: 0.15,
|
9555
|
-
lineHeight: 1.4
|
9508
|
+
lineHeight: 1.4,
|
9509
|
+
'@media(max-width: 885px)': {
|
9510
|
+
fontSize: 15
|
9511
|
+
}
|
9556
9512
|
},
|
9557
9513
|
subtitle2: {
|
9558
9514
|
fontFamily: 'Roboto',
|
9559
9515
|
fontSize: 13,
|
9560
9516
|
fontWeight: 500,
|
9561
9517
|
letterSpacing: 0.1,
|
9562
|
-
lineHeight: 1.4
|
9518
|
+
lineHeight: 1.4,
|
9519
|
+
'@media(max-width: 885px)': {
|
9520
|
+
fontSize: 14
|
9521
|
+
}
|
9563
9522
|
},
|
9564
9523
|
caption: {
|
9565
9524
|
fontFamily: 'Roboto',
|
9566
9525
|
fontSize: 11,
|
9567
9526
|
fontWeight: 400,
|
9568
9527
|
letterSpacing: 0.4,
|
9569
|
-
lineHeight: 1.4
|
9528
|
+
lineHeight: 1.4,
|
9529
|
+
'@media(max-width: 885px)': {
|
9530
|
+
fontSize: 12
|
9531
|
+
}
|
9570
9532
|
},
|
9571
9533
|
overline: {
|
9572
9534
|
fontFamily: 'Roboto',
|
9573
9535
|
fontSize: 11,
|
9574
9536
|
fontWeight: 400,
|
9575
9537
|
letterSpacing: 1,
|
9576
|
-
lineHeight: 2.66
|
9538
|
+
lineHeight: 2.66,
|
9539
|
+
'@media(max-width: 885px)': {
|
9540
|
+
fontSize: 12
|
9541
|
+
}
|
9577
9542
|
},
|
9578
9543
|
h6: {
|
9579
9544
|
fontFamily: 'Nunito',
|
9580
9545
|
fontSize: 16,
|
9581
9546
|
fontWeight: 600,
|
9582
|
-
lineHeight: 1.6
|
9547
|
+
lineHeight: 1.6,
|
9548
|
+
'@media(max-width: 885px)': {
|
9549
|
+
fontSize: 17
|
9550
|
+
}
|
9583
9551
|
},
|
9584
9552
|
h5: {
|
9585
9553
|
fontFamily: 'Nunito',
|
@@ -9619,7 +9587,10 @@ const typography = {
|
|
9619
9587
|
textTransform: 'unset',
|
9620
9588
|
fontWeightLight: 300,
|
9621
9589
|
fontSize: 13,
|
9622
|
-
lineHeight: 'normal'
|
9590
|
+
lineHeight: 'normal',
|
9591
|
+
'@media(max-width: 885px)': {
|
9592
|
+
fontSize: 14
|
9593
|
+
}
|
9623
9594
|
}
|
9624
9595
|
};
|
9625
9596
|
|
@@ -9636,7 +9607,7 @@ const SincoTheme = createTheme(Object.assign({}, themeOptions));
|
|
9636
9607
|
|
9637
9608
|
var objectDefineProperties = {};
|
9638
9609
|
|
9639
|
-
var DESCRIPTORS$
|
9610
|
+
var DESCRIPTORS$2 = descriptors;
|
9640
9611
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
9641
9612
|
var definePropertyModule = objectDefineProperty;
|
9642
9613
|
var anObject$2 = anObject$5;
|
@@ -9646,7 +9617,7 @@ var objectKeys = objectKeys$2;
|
|
9646
9617
|
// `Object.defineProperties` method
|
9647
9618
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
9648
9619
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
9649
|
-
objectDefineProperties.f = DESCRIPTORS$
|
9620
|
+
objectDefineProperties.f = DESCRIPTORS$2 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
9650
9621
|
anObject$2(O);
|
9651
9622
|
var props = toIndexedObject$1(Properties);
|
9652
9623
|
var keys = objectKeys(Properties);
|
@@ -9746,17 +9717,17 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
9746
9717
|
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
9747
9718
|
};
|
9748
9719
|
|
9749
|
-
var wellKnownSymbol$
|
9720
|
+
var wellKnownSymbol$6 = wellKnownSymbol$8;
|
9750
9721
|
var create$1 = objectCreate;
|
9751
|
-
var defineProperty$
|
9722
|
+
var defineProperty$3 = objectDefineProperty.f;
|
9752
9723
|
|
9753
|
-
var UNSCOPABLES = wellKnownSymbol$
|
9724
|
+
var UNSCOPABLES = wellKnownSymbol$6('unscopables');
|
9754
9725
|
var ArrayPrototype = Array.prototype;
|
9755
9726
|
|
9756
9727
|
// Array.prototype[@@unscopables]
|
9757
9728
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
9758
9729
|
if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
9759
|
-
defineProperty$
|
9730
|
+
defineProperty$3(ArrayPrototype, UNSCOPABLES, {
|
9760
9731
|
configurable: true,
|
9761
9732
|
value: create$1(null)
|
9762
9733
|
});
|
@@ -9778,36 +9749,36 @@ var correctPrototypeGetter = !fails$1(function () {
|
|
9778
9749
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
9779
9750
|
});
|
9780
9751
|
|
9781
|
-
var hasOwn$
|
9782
|
-
var isCallable$
|
9752
|
+
var hasOwn$2 = hasOwnProperty_1;
|
9753
|
+
var isCallable$5 = isCallable$g;
|
9783
9754
|
var toObject = toObject$4;
|
9784
9755
|
var sharedKey = sharedKey$3;
|
9785
9756
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
9786
9757
|
|
9787
9758
|
var IE_PROTO = sharedKey('IE_PROTO');
|
9788
|
-
var $Object = Object;
|
9789
|
-
var ObjectPrototype = $Object.prototype;
|
9759
|
+
var $Object$1 = Object;
|
9760
|
+
var ObjectPrototype = $Object$1.prototype;
|
9790
9761
|
|
9791
9762
|
// `Object.getPrototypeOf` method
|
9792
9763
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
9793
9764
|
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
9794
|
-
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
|
9765
|
+
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
|
9795
9766
|
var object = toObject(O);
|
9796
|
-
if (hasOwn$
|
9767
|
+
if (hasOwn$2(object, IE_PROTO)) return object[IE_PROTO];
|
9797
9768
|
var constructor = object.constructor;
|
9798
|
-
if (isCallable$
|
9769
|
+
if (isCallable$5(constructor) && object instanceof constructor) {
|
9799
9770
|
return constructor.prototype;
|
9800
|
-
} return object instanceof $Object ? ObjectPrototype : null;
|
9771
|
+
} return object instanceof $Object$1 ? ObjectPrototype : null;
|
9801
9772
|
};
|
9802
9773
|
|
9803
9774
|
var fails = fails$b;
|
9804
|
-
var isCallable$
|
9775
|
+
var isCallable$4 = isCallable$g;
|
9805
9776
|
var isObject = isObject$6;
|
9806
9777
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
9807
9778
|
var defineBuiltIn$1 = defineBuiltIn$3;
|
9808
|
-
var wellKnownSymbol$
|
9779
|
+
var wellKnownSymbol$5 = wellKnownSymbol$8;
|
9809
9780
|
|
9810
|
-
var ITERATOR$2 = wellKnownSymbol$
|
9781
|
+
var ITERATOR$2 = wellKnownSymbol$5('iterator');
|
9811
9782
|
var BUGGY_SAFARI_ITERATORS$1 = false;
|
9812
9783
|
|
9813
9784
|
// `%IteratorPrototype%` object
|
@@ -9835,7 +9806,7 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
|
|
9835
9806
|
|
9836
9807
|
// `%IteratorPrototype%[@@iterator]()` method
|
9837
9808
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
9838
|
-
if (!isCallable$
|
9809
|
+
if (!isCallable$4(IteratorPrototype$2[ITERATOR$2])) {
|
9839
9810
|
defineBuiltIn$1(IteratorPrototype$2, ITERATOR$2, function () {
|
9840
9811
|
return this;
|
9841
9812
|
});
|
@@ -9846,16 +9817,16 @@ var iteratorsCore = {
|
|
9846
9817
|
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
|
9847
9818
|
};
|
9848
9819
|
|
9849
|
-
var defineProperty$
|
9850
|
-
var hasOwn = hasOwnProperty_1;
|
9851
|
-
var wellKnownSymbol$
|
9820
|
+
var defineProperty$2 = objectDefineProperty.f;
|
9821
|
+
var hasOwn$1 = hasOwnProperty_1;
|
9822
|
+
var wellKnownSymbol$4 = wellKnownSymbol$8;
|
9852
9823
|
|
9853
|
-
var TO_STRING_TAG$
|
9824
|
+
var TO_STRING_TAG$3 = wellKnownSymbol$4('toStringTag');
|
9854
9825
|
|
9855
9826
|
var setToStringTag$2 = function (target, TAG, STATIC) {
|
9856
9827
|
if (target && !STATIC) target = target.prototype;
|
9857
|
-
if (target && !hasOwn(target, TO_STRING_TAG$
|
9858
|
-
defineProperty$
|
9828
|
+
if (target && !hasOwn$1(target, TO_STRING_TAG$3)) {
|
9829
|
+
defineProperty$2(target, TO_STRING_TAG$3, { configurable: true, value: TAG });
|
9859
9830
|
}
|
9860
9831
|
};
|
9861
9832
|
|
@@ -9875,24 +9846,24 @@ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUME
|
|
9875
9846
|
return IteratorConstructor;
|
9876
9847
|
};
|
9877
9848
|
|
9878
|
-
var uncurryThis = functionUncurryThis;
|
9849
|
+
var uncurryThis$1 = functionUncurryThis;
|
9879
9850
|
var aCallable = aCallable$2;
|
9880
9851
|
|
9881
9852
|
var functionUncurryThisAccessor = function (object, key, method) {
|
9882
9853
|
try {
|
9883
9854
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
9884
|
-
return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
|
9855
|
+
return uncurryThis$1(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
|
9885
9856
|
} catch (error) { /* empty */ }
|
9886
9857
|
};
|
9887
9858
|
|
9888
|
-
var isCallable$
|
9859
|
+
var isCallable$3 = isCallable$g;
|
9889
9860
|
|
9890
|
-
var $String = String;
|
9861
|
+
var $String$1 = String;
|
9891
9862
|
var $TypeError = TypeError;
|
9892
9863
|
|
9893
9864
|
var aPossiblePrototype$1 = function (argument) {
|
9894
|
-
if (typeof argument == 'object' || isCallable$
|
9895
|
-
throw $TypeError("Can't set " + $String(argument) + ' as a prototype');
|
9865
|
+
if (typeof argument == 'object' || isCallable$3(argument)) return argument;
|
9866
|
+
throw $TypeError("Can't set " + $String$1(argument) + ' as a prototype');
|
9896
9867
|
};
|
9897
9868
|
|
9898
9869
|
/* eslint-disable no-proto -- safe */
|
@@ -9923,17 +9894,17 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
9923
9894
|
};
|
9924
9895
|
}() : undefined);
|
9925
9896
|
|
9926
|
-
var
|
9897
|
+
var $$1 = _export;
|
9927
9898
|
var call = functionCall;
|
9928
9899
|
var FunctionName = functionName;
|
9929
|
-
var isCallable = isCallable$
|
9900
|
+
var isCallable$2 = isCallable$g;
|
9930
9901
|
var createIteratorConstructor = iteratorCreateConstructor;
|
9931
9902
|
var getPrototypeOf = objectGetPrototypeOf;
|
9932
9903
|
var setPrototypeOf = objectSetPrototypeOf;
|
9933
9904
|
var setToStringTag = setToStringTag$2;
|
9934
9905
|
var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
|
9935
9906
|
var defineBuiltIn = defineBuiltIn$3;
|
9936
|
-
var wellKnownSymbol$
|
9907
|
+
var wellKnownSymbol$3 = wellKnownSymbol$8;
|
9937
9908
|
var Iterators$1 = iterators;
|
9938
9909
|
var IteratorsCore = iteratorsCore;
|
9939
9910
|
|
@@ -9941,7 +9912,7 @@ var PROPER_FUNCTION_NAME = FunctionName.PROPER;
|
|
9941
9912
|
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
|
9942
9913
|
var IteratorPrototype = IteratorsCore.IteratorPrototype;
|
9943
9914
|
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
9944
|
-
var ITERATOR$1 = wellKnownSymbol$
|
9915
|
+
var ITERATOR$1 = wellKnownSymbol$3('iterator');
|
9945
9916
|
var KEYS = 'keys';
|
9946
9917
|
var VALUES = 'values';
|
9947
9918
|
var ENTRIES = 'entries';
|
@@ -9978,7 +9949,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
9978
9949
|
if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
9979
9950
|
if (setPrototypeOf) {
|
9980
9951
|
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
|
9981
|
-
} else if (!isCallable(CurrentIteratorPrototype[ITERATOR$1])) {
|
9952
|
+
} else if (!isCallable$2(CurrentIteratorPrototype[ITERATOR$1])) {
|
9982
9953
|
defineBuiltIn(CurrentIteratorPrototype, ITERATOR$1, returnThis);
|
9983
9954
|
}
|
9984
9955
|
}
|
@@ -10008,7 +9979,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
10008
9979
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
10009
9980
|
defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
|
10010
9981
|
}
|
10011
|
-
} else
|
9982
|
+
} else $$1({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
10012
9983
|
}
|
10013
9984
|
|
10014
9985
|
// define iterator
|
@@ -10030,10 +10001,10 @@ var toIndexedObject = toIndexedObject$5;
|
|
10030
10001
|
var addToUnscopables = addToUnscopables$1;
|
10031
10002
|
var Iterators = iterators;
|
10032
10003
|
var InternalStateModule = internalState;
|
10033
|
-
var defineProperty = objectDefineProperty.f;
|
10004
|
+
var defineProperty$1 = objectDefineProperty.f;
|
10034
10005
|
var defineIterator = iteratorDefine;
|
10035
10006
|
var createIterResultObject = createIterResultObject$1;
|
10036
|
-
var DESCRIPTORS = descriptors;
|
10007
|
+
var DESCRIPTORS$1 = descriptors;
|
10037
10008
|
|
10038
10009
|
var ARRAY_ITERATOR = 'Array Iterator';
|
10039
10010
|
var setInternalState = InternalStateModule.set;
|
@@ -10083,8 +10054,8 @@ addToUnscopables('values');
|
|
10083
10054
|
addToUnscopables('entries');
|
10084
10055
|
|
10085
10056
|
// V8 ~ Chrome 45- bug
|
10086
|
-
if (DESCRIPTORS && values$1.name !== 'values') try {
|
10087
|
-
defineProperty(values$1, 'name', { value: 'values' });
|
10057
|
+
if (DESCRIPTORS$1 && values$1.name !== 'values') try {
|
10058
|
+
defineProperty$1(values$1, 'name', { value: 'values' });
|
10088
10059
|
} catch (error) { /* empty */ }
|
10089
10060
|
|
10090
10061
|
// iterable DOM collections
|
@@ -10131,15 +10102,15 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
|
|
10131
10102
|
|
10132
10103
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
10133
10104
|
|
10134
|
-
var global$
|
10105
|
+
var global$2 = global$d;
|
10135
10106
|
var DOMIterables = domIterables;
|
10136
10107
|
var DOMTokenListPrototype = domTokenListPrototype;
|
10137
10108
|
var ArrayIteratorMethods = es_array_iterator;
|
10138
10109
|
var createNonEnumerableProperty = createNonEnumerableProperty$4;
|
10139
|
-
var wellKnownSymbol = wellKnownSymbol$
|
10110
|
+
var wellKnownSymbol$2 = wellKnownSymbol$8;
|
10140
10111
|
|
10141
|
-
var ITERATOR = wellKnownSymbol('iterator');
|
10142
|
-
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
10112
|
+
var ITERATOR = wellKnownSymbol$2('iterator');
|
10113
|
+
var TO_STRING_TAG$2 = wellKnownSymbol$2('toStringTag');
|
10143
10114
|
var ArrayValues = ArrayIteratorMethods.values;
|
10144
10115
|
|
10145
10116
|
var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
@@ -10150,8 +10121,8 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
10150
10121
|
} catch (error) {
|
10151
10122
|
CollectionPrototype[ITERATOR] = ArrayValues;
|
10152
10123
|
}
|
10153
|
-
if (!CollectionPrototype[TO_STRING_TAG]) {
|
10154
|
-
createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
|
10124
|
+
if (!CollectionPrototype[TO_STRING_TAG$2]) {
|
10125
|
+
createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG$2, COLLECTION_NAME);
|
10155
10126
|
}
|
10156
10127
|
if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
|
10157
10128
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
@@ -10165,22 +10136,123 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
10165
10136
|
};
|
10166
10137
|
|
10167
10138
|
for (var COLLECTION_NAME in DOMIterables) {
|
10168
|
-
handlePrototype(global$
|
10139
|
+
handlePrototype(global$2[COLLECTION_NAME] && global$2[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
10169
10140
|
}
|
10170
10141
|
|
10171
10142
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
10172
10143
|
|
10173
|
-
|
10174
|
-
|
10175
|
-
|
10176
|
-
|
10177
|
-
|
10178
|
-
|
10179
|
-
|
10180
|
-
|
10181
|
-
|
10182
|
-
|
10183
|
-
|
10144
|
+
var wellKnownSymbol$1 = wellKnownSymbol$8;
|
10145
|
+
|
10146
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$1('toStringTag');
|
10147
|
+
var test = {};
|
10148
|
+
|
10149
|
+
test[TO_STRING_TAG$1] = 'z';
|
10150
|
+
|
10151
|
+
var toStringTagSupport = String(test) === '[object z]';
|
10152
|
+
|
10153
|
+
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
10154
|
+
var isCallable$1 = isCallable$g;
|
10155
|
+
var classofRaw = classofRaw$1;
|
10156
|
+
var wellKnownSymbol = wellKnownSymbol$8;
|
10157
|
+
|
10158
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
10159
|
+
var $Object = Object;
|
10160
|
+
|
10161
|
+
// ES3 wrong here
|
10162
|
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
10163
|
+
|
10164
|
+
// fallback for IE11 Script Access Denied error
|
10165
|
+
var tryGet = function (it, key) {
|
10166
|
+
try {
|
10167
|
+
return it[key];
|
10168
|
+
} catch (error) { /* empty */ }
|
10169
|
+
};
|
10170
|
+
|
10171
|
+
// getting tag from ES6+ `Object.prototype.toString`
|
10172
|
+
var classof$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
10173
|
+
var O, tag, result;
|
10174
|
+
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
10175
|
+
// @@toStringTag case
|
10176
|
+
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
|
10177
|
+
// builtinTag case
|
10178
|
+
: CORRECT_ARGUMENTS ? classofRaw(O)
|
10179
|
+
// ES3 arguments fallback
|
10180
|
+
: (result = classofRaw(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result;
|
10181
|
+
};
|
10182
|
+
|
10183
|
+
var classof = classof$1;
|
10184
|
+
|
10185
|
+
var $String = String;
|
10186
|
+
|
10187
|
+
var toString$1 = function (argument) {
|
10188
|
+
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
10189
|
+
return $String(argument);
|
10190
|
+
};
|
10191
|
+
|
10192
|
+
var makeBuiltIn = makeBuiltIn$3.exports;
|
10193
|
+
var defineProperty = objectDefineProperty;
|
10194
|
+
|
10195
|
+
var defineBuiltInAccessor$1 = function (target, name, descriptor) {
|
10196
|
+
if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
|
10197
|
+
if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
|
10198
|
+
return defineProperty.f(target, name, descriptor);
|
10199
|
+
};
|
10200
|
+
|
10201
|
+
var $ = _export;
|
10202
|
+
var DESCRIPTORS = descriptors;
|
10203
|
+
var global$1 = global$d;
|
10204
|
+
var uncurryThis = functionUncurryThis;
|
10205
|
+
var hasOwn = hasOwnProperty_1;
|
10206
|
+
var isCallable = isCallable$g;
|
10207
|
+
var isPrototypeOf = objectIsPrototypeOf;
|
10208
|
+
var toString = toString$1;
|
10209
|
+
var defineBuiltInAccessor = defineBuiltInAccessor$1;
|
10210
|
+
var copyConstructorProperties = copyConstructorProperties$2;
|
10211
|
+
|
10212
|
+
var NativeSymbol = global$1.Symbol;
|
10213
|
+
var SymbolPrototype = NativeSymbol && NativeSymbol.prototype;
|
10214
|
+
|
10215
|
+
if (DESCRIPTORS && isCallable(NativeSymbol) && (!('description' in SymbolPrototype) ||
|
10216
|
+
// Safari 12 bug
|
10217
|
+
NativeSymbol().description !== undefined
|
10218
|
+
)) {
|
10219
|
+
var EmptyStringDescriptionStore = {};
|
10220
|
+
// wrap Symbol constructor for correct work with undefined description
|
10221
|
+
var SymbolWrapper = function Symbol() {
|
10222
|
+
var description = arguments.length < 1 || arguments[0] === undefined ? undefined : toString(arguments[0]);
|
10223
|
+
var result = isPrototypeOf(SymbolPrototype, this)
|
10224
|
+
? new NativeSymbol(description)
|
10225
|
+
// in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
|
10226
|
+
: description === undefined ? NativeSymbol() : NativeSymbol(description);
|
10227
|
+
if (description === '') EmptyStringDescriptionStore[result] = true;
|
10228
|
+
return result;
|
10229
|
+
};
|
10230
|
+
|
10231
|
+
copyConstructorProperties(SymbolWrapper, NativeSymbol);
|
10232
|
+
SymbolWrapper.prototype = SymbolPrototype;
|
10233
|
+
SymbolPrototype.constructor = SymbolWrapper;
|
10234
|
+
|
10235
|
+
var NATIVE_SYMBOL = String(NativeSymbol('test')) == 'Symbol(test)';
|
10236
|
+
var thisSymbolValue = uncurryThis(SymbolPrototype.valueOf);
|
10237
|
+
var symbolDescriptiveString = uncurryThis(SymbolPrototype.toString);
|
10238
|
+
var regexp = /^Symbol\((.*)\)[^)]+$/;
|
10239
|
+
var replace = uncurryThis(''.replace);
|
10240
|
+
var stringSlice = uncurryThis(''.slice);
|
10241
|
+
|
10242
|
+
defineBuiltInAccessor(SymbolPrototype, 'description', {
|
10243
|
+
configurable: true,
|
10244
|
+
get: function description() {
|
10245
|
+
var symbol = thisSymbolValue(this);
|
10246
|
+
if (hasOwn(EmptyStringDescriptionStore, symbol)) return '';
|
10247
|
+
var string = symbolDescriptiveString(symbol);
|
10248
|
+
var desc = NATIVE_SYMBOL ? stringSlice(string, 7, -1) : replace(string, regexp, '$1');
|
10249
|
+
return desc === '' ? undefined : desc;
|
10250
|
+
}
|
10251
|
+
});
|
10252
|
+
|
10253
|
+
$({ global: true, constructor: true, forced: true }, {
|
10254
|
+
Symbol: SymbolWrapper
|
10255
|
+
});
|
10184
10256
|
}
|
10185
10257
|
|
10186
10258
|
function _setPrototypeOf(o, p) {
|
@@ -10430,7 +10502,7 @@ var TransitionGroup = /*#__PURE__*/function (_React$Component) {
|
|
10430
10502
|
|
10431
10503
|
if (this.mounted) {
|
10432
10504
|
this.setState(function (state) {
|
10433
|
-
var children = _extends
|
10505
|
+
var children = _extends({}, state.children);
|
10434
10506
|
|
10435
10507
|
delete children[child.key];
|
10436
10508
|
return {
|
@@ -10738,7 +10810,7 @@ const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps,
|
|
10738
10810
|
classes = {},
|
10739
10811
|
className
|
10740
10812
|
} = props,
|
10741
|
-
other = _objectWithoutPropertiesLoose
|
10813
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$6);
|
10742
10814
|
const [ripples, setRipples] = React.useState([]);
|
10743
10815
|
const nextKey = React.useRef(0);
|
10744
10816
|
const rippleCallback = React.useRef(null);
|
@@ -10753,16 +10825,14 @@ const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps,
|
|
10753
10825
|
const ignoringMouseDown = React.useRef(false);
|
10754
10826
|
// We use a timer in order to only show the ripples for touch "click" like events.
|
10755
10827
|
// We don't want to display the ripple for touch scroll events.
|
10756
|
-
const startTimer = React.useRef(
|
10828
|
+
const startTimer = React.useRef(null);
|
10757
10829
|
|
10758
10830
|
// This is the hook called once the previous timeout is ready.
|
10759
10831
|
const startTimerCommit = React.useRef(null);
|
10760
10832
|
const container = React.useRef(null);
|
10761
10833
|
React.useEffect(() => {
|
10762
10834
|
return () => {
|
10763
|
-
|
10764
|
-
clearTimeout(startTimer.current);
|
10765
|
-
}
|
10835
|
+
clearTimeout(startTimer.current);
|
10766
10836
|
};
|
10767
10837
|
}, []);
|
10768
10838
|
const startCommit = React.useCallback(params => {
|
@@ -10906,7 +10976,7 @@ const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps,
|
|
10906
10976
|
start,
|
10907
10977
|
stop
|
10908
10978
|
}), [pulsate, start, stop]);
|
10909
|
-
return /*#__PURE__*/jsx(TouchRippleRoot, _extends
|
10979
|
+
return /*#__PURE__*/jsx(TouchRippleRoot, _extends({
|
10910
10980
|
className: clsx(touchRippleClasses$1.root, classes.root, className),
|
10911
10981
|
ref: container
|
10912
10982
|
}, other, {
|
@@ -11043,7 +11113,7 @@ const ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(inProps, re
|
|
11043
11113
|
touchRippleRef,
|
11044
11114
|
type
|
11045
11115
|
} = props,
|
11046
|
-
other = _objectWithoutPropertiesLoose
|
11116
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$5);
|
11047
11117
|
const buttonRef = React.useRef(null);
|
11048
11118
|
const rippleRef = React.useRef(null);
|
11049
11119
|
const handleRippleRef = useForkRef(rippleRef, touchRippleRef);
|
@@ -11200,7 +11270,7 @@ const ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(inProps, re
|
|
11200
11270
|
}
|
11201
11271
|
}, [enableTouchRipple]);
|
11202
11272
|
}
|
11203
|
-
const ownerState = _extends
|
11273
|
+
const ownerState = _extends({}, props, {
|
11204
11274
|
centerRipple,
|
11205
11275
|
component,
|
11206
11276
|
disabled,
|
@@ -11211,7 +11281,7 @@ const ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(inProps, re
|
|
11211
11281
|
focusVisible
|
11212
11282
|
});
|
11213
11283
|
const classes = useUtilityClasses$5(ownerState);
|
11214
|
-
return /*#__PURE__*/jsxs(ButtonBaseRoot, _extends
|
11284
|
+
return /*#__PURE__*/jsxs(ButtonBaseRoot, _extends({
|
11215
11285
|
as: ComponentProp,
|
11216
11286
|
className: clsx(classes.root, className),
|
11217
11287
|
ownerState: ownerState,
|
@@ -11235,7 +11305,7 @@ const ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(inProps, re
|
|
11235
11305
|
children: [children, enableTouchRipple ?
|
11236
11306
|
/*#__PURE__*/
|
11237
11307
|
/* TouchRipple is only needed client-side, x2 boost on the server. */
|
11238
|
-
jsx(TouchRipple$1, _extends
|
11308
|
+
jsx(TouchRipple$1, _extends({
|
11239
11309
|
ref: handleRippleRef,
|
11240
11310
|
center: centerRipple
|
11241
11311
|
}, TouchRippleProps)) : null]
|
@@ -11433,7 +11503,7 @@ const IconButtonRoot = styled$1(ButtonBase$1, {
|
|
11433
11503
|
})(({
|
11434
11504
|
theme,
|
11435
11505
|
ownerState
|
11436
|
-
}) => _extends
|
11506
|
+
}) => _extends({
|
11437
11507
|
textAlign: 'center',
|
11438
11508
|
flex: '0 0 auto',
|
11439
11509
|
fontSize: theme.typography.pxToRem(24),
|
@@ -11463,12 +11533,12 @@ const IconButtonRoot = styled$1(ButtonBase$1, {
|
|
11463
11533
|
}) => {
|
11464
11534
|
var _palette;
|
11465
11535
|
const palette = (_palette = (theme.vars || theme).palette) == null ? void 0 : _palette[ownerState.color];
|
11466
|
-
return _extends
|
11536
|
+
return _extends({}, ownerState.color === 'inherit' && {
|
11467
11537
|
color: 'inherit'
|
11468
|
-
}, ownerState.color !== 'inherit' && ownerState.color !== 'default' && _extends
|
11538
|
+
}, ownerState.color !== 'inherit' && ownerState.color !== 'default' && _extends({
|
11469
11539
|
color: palette == null ? void 0 : palette.main
|
11470
11540
|
}, !ownerState.disableRipple && {
|
11471
|
-
'&:hover': _extends
|
11541
|
+
'&:hover': _extends({}, palette && {
|
11472
11542
|
backgroundColor: theme.vars ? `rgba(${palette.mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(palette.main, theme.palette.action.hoverOpacity)
|
11473
11543
|
}, {
|
11474
11544
|
// Reset on touch devices, it doesn't add specificity
|
@@ -11508,8 +11578,8 @@ const IconButton = /*#__PURE__*/React.forwardRef(function IconButton(inProps, re
|
|
11508
11578
|
disableFocusRipple = false,
|
11509
11579
|
size = 'medium'
|
11510
11580
|
} = props,
|
11511
|
-
other = _objectWithoutPropertiesLoose
|
11512
|
-
const ownerState = _extends
|
11581
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$4);
|
11582
|
+
const ownerState = _extends({}, props, {
|
11513
11583
|
edge,
|
11514
11584
|
color,
|
11515
11585
|
disabled,
|
@@ -11517,7 +11587,7 @@ const IconButton = /*#__PURE__*/React.forwardRef(function IconButton(inProps, re
|
|
11517
11587
|
size
|
11518
11588
|
});
|
11519
11589
|
const classes = useUtilityClasses$4(ownerState);
|
11520
|
-
return /*#__PURE__*/jsx(IconButtonRoot, _extends
|
11590
|
+
return /*#__PURE__*/jsx(IconButtonRoot, _extends({
|
11521
11591
|
className: clsx(classes.root, className),
|
11522
11592
|
centerRipple: true,
|
11523
11593
|
focusRipple: !disableFocusRipple,
|
@@ -11629,7 +11699,7 @@ const TypographyRoot = styled$1('span', {
|
|
11629
11699
|
})(({
|
11630
11700
|
theme,
|
11631
11701
|
ownerState
|
11632
|
-
}) => _extends
|
11702
|
+
}) => _extends({
|
11633
11703
|
margin: 0
|
11634
11704
|
}, ownerState.variant && theme.typography[ownerState.variant], ownerState.align !== 'inherit' && {
|
11635
11705
|
textAlign: ownerState.align
|
@@ -11673,7 +11743,7 @@ const Typography = /*#__PURE__*/React.forwardRef(function Typography(inProps, re
|
|
11673
11743
|
name: 'MuiTypography'
|
11674
11744
|
});
|
11675
11745
|
const color = transformDeprecatedColors(themeProps.color);
|
11676
|
-
const props = extendSxProp(_extends
|
11746
|
+
const props = extendSxProp(_extends({}, themeProps, {
|
11677
11747
|
color
|
11678
11748
|
}));
|
11679
11749
|
const {
|
@@ -11686,8 +11756,8 @@ const Typography = /*#__PURE__*/React.forwardRef(function Typography(inProps, re
|
|
11686
11756
|
variant = 'body1',
|
11687
11757
|
variantMapping = defaultVariantMapping
|
11688
11758
|
} = props,
|
11689
|
-
other = _objectWithoutPropertiesLoose
|
11690
|
-
const ownerState = _extends
|
11759
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$3);
|
11760
|
+
const ownerState = _extends({}, props, {
|
11691
11761
|
align,
|
11692
11762
|
color,
|
11693
11763
|
className,
|
@@ -11700,7 +11770,7 @@ const Typography = /*#__PURE__*/React.forwardRef(function Typography(inProps, re
|
|
11700
11770
|
});
|
11701
11771
|
const Component = component || (paragraph ? 'p' : variantMapping[variant] || defaultVariantMapping[variant]) || 'span';
|
11702
11772
|
const classes = useUtilityClasses$3(ownerState);
|
11703
|
-
return /*#__PURE__*/jsx(TypographyRoot, _extends
|
11773
|
+
return /*#__PURE__*/jsx(TypographyRoot, _extends({
|
11704
11774
|
as: Component,
|
11705
11775
|
ref: ref,
|
11706
11776
|
ownerState: ownerState,
|
@@ -11844,9 +11914,9 @@ const useUtilityClasses$2 = ownerState => {
|
|
11844
11914
|
endIcon: ['endIcon', `iconSize${capitalize(size)}`]
|
11845
11915
|
};
|
11846
11916
|
const composedClasses = composeClasses(slots, getButtonUtilityClass, classes);
|
11847
|
-
return _extends
|
11917
|
+
return _extends({}, classes, composedClasses);
|
11848
11918
|
};
|
11849
|
-
const commonIconStyles = ownerState => _extends
|
11919
|
+
const commonIconStyles = ownerState => _extends({}, ownerState.size === 'small' && {
|
11850
11920
|
'& > *:nth-of-type(1)': {
|
11851
11921
|
fontSize: 18
|
11852
11922
|
}
|
@@ -11876,14 +11946,14 @@ const ButtonRoot = styled$1(ButtonBase$1, {
|
|
11876
11946
|
var _theme$palette$getCon, _theme$palette;
|
11877
11947
|
const inheritContainedBackgroundColor = theme.palette.mode === 'light' ? theme.palette.grey[300] : theme.palette.grey[800];
|
11878
11948
|
const inheritContainedHoverBackgroundColor = theme.palette.mode === 'light' ? theme.palette.grey.A100 : theme.palette.grey[700];
|
11879
|
-
return _extends
|
11949
|
+
return _extends({}, theme.typography.button, {
|
11880
11950
|
minWidth: 64,
|
11881
11951
|
padding: '6px 16px',
|
11882
11952
|
borderRadius: (theme.vars || theme).shape.borderRadius,
|
11883
11953
|
transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color', 'color'], {
|
11884
11954
|
duration: theme.transitions.duration.short
|
11885
11955
|
}),
|
11886
|
-
'&:hover': _extends
|
11956
|
+
'&:hover': _extends({
|
11887
11957
|
textDecoration: 'none',
|
11888
11958
|
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),
|
11889
11959
|
// Reset on touch devices, it doesn't add specificity
|
@@ -11918,13 +11988,13 @@ const ButtonRoot = styled$1(ButtonBase$1, {
|
|
11918
11988
|
backgroundColor: (theme.vars || theme).palette[ownerState.color].main
|
11919
11989
|
}
|
11920
11990
|
}),
|
11921
|
-
'&:active': _extends
|
11991
|
+
'&:active': _extends({}, ownerState.variant === 'contained' && {
|
11922
11992
|
boxShadow: (theme.vars || theme).shadows[8]
|
11923
11993
|
}),
|
11924
|
-
[`&.${buttonClasses$1.focusVisible}`]: _extends
|
11994
|
+
[`&.${buttonClasses$1.focusVisible}`]: _extends({}, ownerState.variant === 'contained' && {
|
11925
11995
|
boxShadow: (theme.vars || theme).shadows[6]
|
11926
11996
|
}),
|
11927
|
-
[`&.${buttonClasses$1.disabled}`]: _extends
|
11997
|
+
[`&.${buttonClasses$1.disabled}`]: _extends({
|
11928
11998
|
color: (theme.vars || theme).palette.action.disabled
|
11929
11999
|
}, ownerState.variant === 'outlined' && {
|
11930
12000
|
border: `1px solid ${(theme.vars || theme).palette.action.disabledBackground}`
|
@@ -12004,7 +12074,7 @@ const ButtonStartIcon = styled$1('span', {
|
|
12004
12074
|
}
|
12005
12075
|
})(({
|
12006
12076
|
ownerState
|
12007
|
-
}) => _extends
|
12077
|
+
}) => _extends({
|
12008
12078
|
display: 'inherit',
|
12009
12079
|
marginRight: 8,
|
12010
12080
|
marginLeft: -4
|
@@ -12022,7 +12092,7 @@ const ButtonEndIcon = styled$1('span', {
|
|
12022
12092
|
}
|
12023
12093
|
})(({
|
12024
12094
|
ownerState
|
12025
|
-
}) => _extends
|
12095
|
+
}) => _extends({
|
12026
12096
|
display: 'inherit',
|
12027
12097
|
marginRight: -4,
|
12028
12098
|
marginLeft: 8
|
@@ -12053,8 +12123,8 @@ const Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
|
|
12053
12123
|
type,
|
12054
12124
|
variant = 'text'
|
12055
12125
|
} = props,
|
12056
|
-
other = _objectWithoutPropertiesLoose
|
12057
|
-
const ownerState = _extends
|
12126
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$2);
|
12127
|
+
const ownerState = _extends({}, props, {
|
12058
12128
|
color,
|
12059
12129
|
component,
|
12060
12130
|
disabled,
|
@@ -12076,7 +12146,7 @@ const Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
|
|
12076
12146
|
ownerState: ownerState,
|
12077
12147
|
children: endIconProp
|
12078
12148
|
});
|
12079
|
-
return /*#__PURE__*/jsxs(ButtonRoot, _extends
|
12149
|
+
return /*#__PURE__*/jsxs(ButtonRoot, _extends({
|
12080
12150
|
ownerState: ownerState,
|
12081
12151
|
className: clsx(contextProps.className, classes.root, className),
|
12082
12152
|
component: component,
|
@@ -12118,7 +12188,7 @@ process.env.NODE_ENV !== "production" ? Button.propTypes /* remove-proptypes */
|
|
12118
12188
|
* The component used for the root node.
|
12119
12189
|
* Either a string to use a HTML element or a component.
|
12120
12190
|
*/
|
12121
|
-
component: PropTypes
|
12191
|
+
component: PropTypes.elementType,
|
12122
12192
|
/**
|
12123
12193
|
* If `true`, the component is disabled.
|
12124
12194
|
* @default false
|
@@ -12221,7 +12291,7 @@ const DividerRoot = styled$1('div', {
|
|
12221
12291
|
})(({
|
12222
12292
|
theme,
|
12223
12293
|
ownerState
|
12224
|
-
}) => _extends
|
12294
|
+
}) => _extends({
|
12225
12295
|
margin: 0,
|
12226
12296
|
// Reset browser default style.
|
12227
12297
|
flexShrink: 0,
|
@@ -12253,7 +12323,7 @@ const DividerRoot = styled$1('div', {
|
|
12253
12323
|
height: 'auto'
|
12254
12324
|
}), ({
|
12255
12325
|
ownerState
|
12256
|
-
}) => _extends
|
12326
|
+
}) => _extends({}, ownerState.children && {
|
12257
12327
|
display: 'flex',
|
12258
12328
|
whiteSpace: 'nowrap',
|
12259
12329
|
textAlign: 'center',
|
@@ -12265,7 +12335,7 @@ const DividerRoot = styled$1('div', {
|
|
12265
12335
|
}), ({
|
12266
12336
|
theme,
|
12267
12337
|
ownerState
|
12268
|
-
}) => _extends
|
12338
|
+
}) => _extends({}, ownerState.children && ownerState.orientation !== 'vertical' && {
|
12269
12339
|
'&::before, &::after': {
|
12270
12340
|
width: '100%',
|
12271
12341
|
borderTop: `thin solid ${(theme.vars || theme).palette.divider}`
|
@@ -12273,7 +12343,7 @@ const DividerRoot = styled$1('div', {
|
|
12273
12343
|
}), ({
|
12274
12344
|
theme,
|
12275
12345
|
ownerState
|
12276
|
-
}) => _extends
|
12346
|
+
}) => _extends({}, ownerState.children && ownerState.orientation === 'vertical' && {
|
12277
12347
|
flexDirection: 'column',
|
12278
12348
|
'&::before, &::after': {
|
12279
12349
|
height: '100%',
|
@@ -12281,7 +12351,7 @@ const DividerRoot = styled$1('div', {
|
|
12281
12351
|
}
|
12282
12352
|
}), ({
|
12283
12353
|
ownerState
|
12284
|
-
}) => _extends
|
12354
|
+
}) => _extends({}, ownerState.textAlign === 'right' && ownerState.orientation !== 'vertical' && {
|
12285
12355
|
'&::before': {
|
12286
12356
|
width: '90%'
|
12287
12357
|
},
|
@@ -12308,7 +12378,7 @@ const DividerWrapper = styled$1('span', {
|
|
12308
12378
|
})(({
|
12309
12379
|
theme,
|
12310
12380
|
ownerState
|
12311
|
-
}) => _extends
|
12381
|
+
}) => _extends({
|
12312
12382
|
display: 'inline-block',
|
12313
12383
|
paddingLeft: `calc(${theme.spacing(1)} * 1.2)`,
|
12314
12384
|
paddingRight: `calc(${theme.spacing(1)} * 1.2)`
|
@@ -12333,8 +12403,8 @@ const Divider = /*#__PURE__*/React.forwardRef(function Divider(inProps, ref) {
|
|
12333
12403
|
textAlign = 'center',
|
12334
12404
|
variant = 'fullWidth'
|
12335
12405
|
} = props,
|
12336
|
-
other = _objectWithoutPropertiesLoose
|
12337
|
-
const ownerState = _extends
|
12406
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$1);
|
12407
|
+
const ownerState = _extends({}, props, {
|
12338
12408
|
absolute,
|
12339
12409
|
component,
|
12340
12410
|
flexItem,
|
@@ -12345,7 +12415,7 @@ const Divider = /*#__PURE__*/React.forwardRef(function Divider(inProps, ref) {
|
|
12345
12415
|
variant
|
12346
12416
|
});
|
12347
12417
|
const classes = useUtilityClasses$1(ownerState);
|
12348
|
-
return /*#__PURE__*/jsx(DividerRoot, _extends
|
12418
|
+
return /*#__PURE__*/jsx(DividerRoot, _extends({
|
12349
12419
|
as: component,
|
12350
12420
|
className: clsx(classes.root, className),
|
12351
12421
|
role: role,
|
@@ -12423,63 +12493,6 @@ process.env.NODE_ENV !== "production" ? Divider.propTypes /* remove-proptypes */
|
|
12423
12493
|
} : void 0;
|
12424
12494
|
var Divider$1 = Divider;
|
12425
12495
|
|
12426
|
-
const Stack = createStack({
|
12427
|
-
createStyledComponent: styled$1('div', {
|
12428
|
-
name: 'MuiStack',
|
12429
|
-
slot: 'Root',
|
12430
|
-
overridesResolver: (props, styles) => styles.root
|
12431
|
-
}),
|
12432
|
-
useThemeProps: inProps => useThemeProps({
|
12433
|
-
props: inProps,
|
12434
|
-
name: 'MuiStack'
|
12435
|
-
})
|
12436
|
-
});
|
12437
|
-
process.env.NODE_ENV !== "production" ? Stack.propTypes /* remove-proptypes */ = {
|
12438
|
-
// ----------------------------- Warning --------------------------------
|
12439
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
12440
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
12441
|
-
// ----------------------------------------------------------------------
|
12442
|
-
/**
|
12443
|
-
* The content of the component.
|
12444
|
-
*/
|
12445
|
-
children: PropTypes.node,
|
12446
|
-
/**
|
12447
|
-
* The component used for the root node.
|
12448
|
-
* Either a string to use a HTML element or a component.
|
12449
|
-
*/
|
12450
|
-
component: PropTypes.elementType,
|
12451
|
-
/**
|
12452
|
-
* Defines the `flex-direction` style property.
|
12453
|
-
* It is applied for all screen sizes.
|
12454
|
-
* @default 'column'
|
12455
|
-
*/
|
12456
|
-
direction: PropTypes.oneOfType([PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), PropTypes.arrayOf(PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), PropTypes.object]),
|
12457
|
-
/**
|
12458
|
-
* Add an element between each child.
|
12459
|
-
*/
|
12460
|
-
divider: PropTypes.node,
|
12461
|
-
/**
|
12462
|
-
* Defines the space between immediate children.
|
12463
|
-
* @default 0
|
12464
|
-
*/
|
12465
|
-
spacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),
|
12466
|
-
/**
|
12467
|
-
* The system prop, which allows defining system overrides as well as additional CSS styles.
|
12468
|
-
*/
|
12469
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
12470
|
-
/**
|
12471
|
-
* If `true`, the CSS flexbox `gap` is used instead of applying `margin` to children.
|
12472
|
-
*
|
12473
|
-
* While CSS `gap` removes the [known limitations](https://mui.com/joy-ui/react-stack/#limitations),
|
12474
|
-
* it is not fully supported in some browsers. We recommend checking https://caniuse.com/?search=flex%20gap before using this flag.
|
12475
|
-
*
|
12476
|
-
* To enable this flag globally, follow the [theme's default props](https://mui.com/material-ui/customization/theme-components/#default-props) configuration.
|
12477
|
-
* @default false
|
12478
|
-
*/
|
12479
|
-
useFlexGap: PropTypes.bool
|
12480
|
-
} : void 0;
|
12481
|
-
var Stack$1 = Stack;
|
12482
|
-
|
12483
12496
|
function getLinearProgressUtilityClass(slot) {
|
12484
12497
|
return generateUtilityClass('MuiLinearProgress', slot);
|
12485
12498
|
}
|
@@ -12577,7 +12590,7 @@ const LinearProgressRoot = styled$1('span', {
|
|
12577
12590
|
})(({
|
12578
12591
|
ownerState,
|
12579
12592
|
theme
|
12580
|
-
}) => _extends
|
12593
|
+
}) => _extends({
|
12581
12594
|
position: 'relative',
|
12582
12595
|
overflow: 'hidden',
|
12583
12596
|
display: 'block',
|
@@ -12619,7 +12632,7 @@ const LinearProgressDashed = styled$1('span', {
|
|
12619
12632
|
theme
|
12620
12633
|
}) => {
|
12621
12634
|
const backgroundColor = getColorShade(theme, ownerState.color);
|
12622
|
-
return _extends
|
12635
|
+
return _extends({
|
12623
12636
|
position: 'absolute',
|
12624
12637
|
marginTop: 0,
|
12625
12638
|
height: '100%',
|
@@ -12646,7 +12659,7 @@ const LinearProgressBar1 = styled$1('span', {
|
|
12646
12659
|
})(({
|
12647
12660
|
ownerState,
|
12648
12661
|
theme
|
12649
|
-
}) => _extends
|
12662
|
+
}) => _extends({
|
12650
12663
|
width: '100%',
|
12651
12664
|
position: 'absolute',
|
12652
12665
|
left: 0,
|
@@ -12678,7 +12691,7 @@ const LinearProgressBar2 = styled$1('span', {
|
|
12678
12691
|
})(({
|
12679
12692
|
ownerState,
|
12680
12693
|
theme
|
12681
|
-
}) => _extends
|
12694
|
+
}) => _extends({
|
12682
12695
|
width: '100%',
|
12683
12696
|
position: 'absolute',
|
12684
12697
|
left: 0,
|
@@ -12719,8 +12732,8 @@ const LinearProgress = /*#__PURE__*/React.forwardRef(function LinearProgress(inP
|
|
12719
12732
|
valueBuffer,
|
12720
12733
|
variant = 'indeterminate'
|
12721
12734
|
} = props,
|
12722
|
-
other = _objectWithoutPropertiesLoose
|
12723
|
-
const ownerState = _extends
|
12735
|
+
other = _objectWithoutPropertiesLoose(props, _excluded);
|
12736
|
+
const ownerState = _extends({}, props, {
|
12724
12737
|
color,
|
12725
12738
|
variant
|
12726
12739
|
});
|
@@ -12756,7 +12769,7 @@ const LinearProgress = /*#__PURE__*/React.forwardRef(function LinearProgress(inP
|
|
12756
12769
|
console.error('MUI: You need to provide a valueBuffer prop ' + 'when using the buffer variant of LinearProgress.');
|
12757
12770
|
}
|
12758
12771
|
}
|
12759
|
-
return /*#__PURE__*/jsxs(LinearProgressRoot, _extends
|
12772
|
+
return /*#__PURE__*/jsxs(LinearProgressRoot, _extends({
|
12760
12773
|
className: clsx(classes.root, className),
|
12761
12774
|
ownerState: ownerState,
|
12762
12775
|
role: "progressbar"
|
@@ -12820,34 +12833,99 @@ process.env.NODE_ENV !== "production" ? LinearProgress.propTypes /* remove-propt
|
|
12820
12833
|
} : void 0;
|
12821
12834
|
var LinearProgress$1 = LinearProgress;
|
12822
12835
|
|
12836
|
+
const Stack = createStack({
|
12837
|
+
createStyledComponent: styled$1('div', {
|
12838
|
+
name: 'MuiStack',
|
12839
|
+
slot: 'Root',
|
12840
|
+
overridesResolver: (props, styles) => styles.root
|
12841
|
+
}),
|
12842
|
+
useThemeProps: inProps => useThemeProps({
|
12843
|
+
props: inProps,
|
12844
|
+
name: 'MuiStack'
|
12845
|
+
})
|
12846
|
+
});
|
12847
|
+
process.env.NODE_ENV !== "production" ? Stack.propTypes /* remove-proptypes */ = {
|
12848
|
+
// ----------------------------- Warning --------------------------------
|
12849
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
12850
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
12851
|
+
// ----------------------------------------------------------------------
|
12852
|
+
/**
|
12853
|
+
* The content of the component.
|
12854
|
+
*/
|
12855
|
+
children: PropTypes.node,
|
12856
|
+
/**
|
12857
|
+
* The component used for the root node.
|
12858
|
+
* Either a string to use a HTML element or a component.
|
12859
|
+
*/
|
12860
|
+
component: PropTypes.elementType,
|
12861
|
+
/**
|
12862
|
+
* Defines the `flex-direction` style property.
|
12863
|
+
* It is applied for all screen sizes.
|
12864
|
+
* @default 'column'
|
12865
|
+
*/
|
12866
|
+
direction: PropTypes.oneOfType([PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), PropTypes.arrayOf(PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), PropTypes.object]),
|
12867
|
+
/**
|
12868
|
+
* Add an element between each child.
|
12869
|
+
*/
|
12870
|
+
divider: PropTypes.node,
|
12871
|
+
/**
|
12872
|
+
* Defines the space between immediate children.
|
12873
|
+
* @default 0
|
12874
|
+
*/
|
12875
|
+
spacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),
|
12876
|
+
/**
|
12877
|
+
* The system prop, which allows defining system overrides as well as additional CSS styles.
|
12878
|
+
*/
|
12879
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
12880
|
+
/**
|
12881
|
+
* If `true`, the CSS flexbox `gap` is used instead of applying `margin` to children.
|
12882
|
+
*
|
12883
|
+
* While CSS `gap` removes the [known limitations](https://mui.com/joy-ui/react-stack/#limitations),
|
12884
|
+
* it is not fully supported in some browsers. We recommend checking https://caniuse.com/?search=flex%20gap before using this flag.
|
12885
|
+
*
|
12886
|
+
* To enable this flag globally, follow the [theme's default props](https://mui.com/material-ui/customization/theme-components/#default-props) configuration.
|
12887
|
+
* @default false
|
12888
|
+
*/
|
12889
|
+
useFlexGap: PropTypes.bool
|
12890
|
+
} : void 0;
|
12891
|
+
var Stack$1 = Stack;
|
12892
|
+
|
12823
12893
|
const ToastContent = styled$1(Stack$1)(({
|
12824
12894
|
theme
|
12825
12895
|
}) => ({
|
12826
12896
|
marginBottom: theme.spacing(2),
|
12827
|
-
position: "relative",
|
12828
|
-
top: 16,
|
12829
|
-
left: "979px",
|
12830
12897
|
zIndex: 9999,
|
12831
|
-
boxShadow:
|
12898
|
+
boxShadow: '0px 5px 5px -3px rgba(24, 39, 75, 0.2), 0px 8px 10px 1px rgba(24, 39, 75, 0.14), 0px 3px 14px 2px rgba(24, 39, 75, 0.12)',
|
12899
|
+
'&.flex-end': {
|
12900
|
+
marginTop: 16,
|
12901
|
+
marginRight: 16
|
12902
|
+
},
|
12903
|
+
'&.center': {
|
12904
|
+
marginTop: 16
|
12905
|
+
},
|
12906
|
+
'&.flex-start': {
|
12907
|
+
marginLeft: 16,
|
12908
|
+
marginTop: 16
|
12909
|
+
}
|
12832
12910
|
}));
|
12833
12911
|
const ContentBox = styled$1(Box$1)(({
|
12834
12912
|
theme
|
12835
12913
|
}) => ({
|
12836
12914
|
padding: theme.spacing(1.5),
|
12837
12915
|
gap: theme.spacing(1.5),
|
12838
|
-
display:
|
12839
|
-
alignItems:
|
12840
|
-
|
12841
|
-
backgroundColor:
|
12916
|
+
display: 'flex',
|
12917
|
+
alignItems: 'center',
|
12918
|
+
'&.color-error': {
|
12919
|
+
backgroundColor: '#feebee'
|
12842
12920
|
},
|
12843
|
-
|
12844
|
-
backgroundColor:
|
12921
|
+
'&.color-info': {
|
12922
|
+
backgroundColor: '#e1f5fe'
|
12845
12923
|
},
|
12846
|
-
|
12847
|
-
backgroundColor:
|
12924
|
+
'&.color-warning': {
|
12925
|
+
backgroundColor: '#fff3e0'
|
12848
12926
|
},
|
12849
|
-
|
12850
|
-
backgroundColor:
|
12927
|
+
'&.color-success': {
|
12928
|
+
backgroundColor: '#E8F5E9'
|
12851
12929
|
}
|
12852
12930
|
}));
|
12853
12931
|
const RippleIcon = styled$1(Stack$1)(({
|
@@ -12857,31 +12935,31 @@ const RippleIcon = styled$1(Stack$1)(({
|
|
12857
12935
|
gap: theme.spacing(1),
|
12858
12936
|
height: 20,
|
12859
12937
|
borderRadius: 50,
|
12860
|
-
|
12861
|
-
backgroundColor:
|
12938
|
+
'&.ripple-error': {
|
12939
|
+
backgroundColor: '#D143431F'
|
12862
12940
|
},
|
12863
|
-
|
12864
|
-
backgroundColor:
|
12941
|
+
'&.ripple-info': {
|
12942
|
+
backgroundColor: '#2D9FC51F'
|
12865
12943
|
},
|
12866
|
-
|
12867
|
-
backgroundColor:
|
12944
|
+
'&.ripple-warning': {
|
12945
|
+
backgroundColor: '#FB85001F'
|
12868
12946
|
},
|
12869
|
-
|
12870
|
-
backgroundColor:
|
12947
|
+
'&.ripple-success': {
|
12948
|
+
backgroundColor: '#8FC93A1F'
|
12871
12949
|
}
|
12872
12950
|
}));
|
12873
12951
|
const ContentIcon = styled$1(Stack$1)(() => ({
|
12874
|
-
|
12875
|
-
color:
|
12952
|
+
'&.icon-color.color-info': {
|
12953
|
+
color: '#0097b9'
|
12876
12954
|
},
|
12877
|
-
|
12878
|
-
color:
|
12955
|
+
'&.icon-color.color-error': {
|
12956
|
+
color: '#d14343'
|
12879
12957
|
},
|
12880
|
-
|
12881
|
-
color:
|
12958
|
+
'&.icon-color.color-warning': {
|
12959
|
+
color: '#fb8500'
|
12882
12960
|
},
|
12883
|
-
|
12884
|
-
color:
|
12961
|
+
'&.icon-color.color-success': {
|
12962
|
+
color: '#8fc93a'
|
12885
12963
|
}
|
12886
12964
|
}));
|
12887
12965
|
const ToastNotification = toast => {
|
@@ -12895,14 +12973,20 @@ const ToastNotification = toast => {
|
|
12895
12973
|
warning: /*#__PURE__*/React__default.createElement(WarningRounded, null),
|
12896
12974
|
info: /*#__PURE__*/React__default.createElement(InfoRounded, null)
|
12897
12975
|
};
|
12898
|
-
const ToastIcon = IconMap[toast.type ||
|
12976
|
+
const ToastIcon = IconMap[toast.type || 'info'];
|
12899
12977
|
const colorMap = {
|
12900
|
-
success:
|
12901
|
-
error:
|
12902
|
-
warning:
|
12903
|
-
info:
|
12978
|
+
success: 'success',
|
12979
|
+
error: 'error',
|
12980
|
+
warning: 'warning',
|
12981
|
+
info: 'info'
|
12904
12982
|
};
|
12905
|
-
const colors = colorMap[toast.type ||
|
12983
|
+
const colors = colorMap[toast.type || 'info'];
|
12984
|
+
const toastPosition = {
|
12985
|
+
center: 'center',
|
12986
|
+
right: 'flex-end',
|
12987
|
+
left: 'flex-start'
|
12988
|
+
};
|
12989
|
+
const position = toastPosition[toast.position || 'right'];
|
12906
12990
|
const close = () => {
|
12907
12991
|
setOpenToast(false);
|
12908
12992
|
};
|
@@ -12926,15 +13010,18 @@ const ToastNotification = toast => {
|
|
12926
13010
|
}, [timeProgress, toast.time]);
|
12927
13011
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, openToast && /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
12928
13012
|
theme: SincoTheme
|
13013
|
+
}, /*#__PURE__*/React__default.createElement(Stack$1, {
|
13014
|
+
alignItems: position || 'right'
|
12929
13015
|
}, /*#__PURE__*/React__default.createElement(ToastContent, {
|
12930
13016
|
width: 370,
|
12931
|
-
role: "toast"
|
13017
|
+
role: "toast",
|
13018
|
+
className: `${position}`
|
12932
13019
|
}, /*#__PURE__*/React__default.createElement(ContentBox, {
|
12933
|
-
className: `color-${toast.type ||
|
13020
|
+
className: `color-${toast.type || 'info'}`
|
12934
13021
|
}, toast && /*#__PURE__*/React__default.createElement(RippleIcon, {
|
12935
|
-
className: `ripple-${toast.type ||
|
13022
|
+
className: `ripple-${toast.type || 'info'}`
|
12936
13023
|
}, /*#__PURE__*/React__default.createElement(ContentIcon, {
|
12937
|
-
className: `icon-color color-${toast.type ||
|
13024
|
+
className: `icon-color color-${toast.type || 'info'}`
|
12938
13025
|
}, ToastIcon)), /*#__PURE__*/React__default.createElement(Divider$1, {
|
12939
13026
|
orientation: "vertical",
|
12940
13027
|
flexItem: true
|
@@ -12957,22 +13044,22 @@ const ToastNotification = toast => {
|
|
12957
13044
|
}, /*#__PURE__*/React__default.createElement(Typography$1, {
|
12958
13045
|
color: "text.primary",
|
12959
13046
|
variant: "body2"
|
12960
|
-
}, toast.
|
13047
|
+
}, toast.description), !showOptions && toast.dataOpt && toast.dataOpt.length > 0 && /*#__PURE__*/React__default.createElement("ul", {
|
12961
13048
|
style: {
|
12962
13049
|
paddingLeft: 15,
|
12963
13050
|
marginBlock: 0,
|
12964
13051
|
fontSize: 11,
|
12965
|
-
color:
|
13052
|
+
color: '#101840de'
|
12966
13053
|
}
|
12967
13054
|
}, toast.dataOpt.map((element, i) => {
|
12968
13055
|
const keyElement = Object.keys(element);
|
12969
|
-
let options =
|
13056
|
+
let options = '';
|
12970
13057
|
for (let _i = 0; _i < keyElement.length; _i++) {
|
12971
13058
|
options += element[keyElement[_i]];
|
12972
13059
|
}
|
12973
13060
|
return /*#__PURE__*/React__default.createElement("li", {
|
12974
13061
|
style: {
|
12975
|
-
width:
|
13062
|
+
width: 'fit-content'
|
12976
13063
|
},
|
12977
13064
|
key: i
|
12978
13065
|
}, /*#__PURE__*/React__default.createElement(Typography$1, {
|
@@ -12995,11 +13082,11 @@ const ToastNotification = toast => {
|
|
12995
13082
|
}) : /*#__PURE__*/React__default.createElement(ArrowUpward, {
|
12996
13083
|
fontSize: "small"
|
12997
13084
|
})
|
12998
|
-
}, showOptions ?
|
13085
|
+
}, showOptions ? 'Ver más' : 'Ver menos')))), /*#__PURE__*/React__default.createElement(LinearProgress$1, {
|
12999
13086
|
color: colors,
|
13000
13087
|
variant: "determinate",
|
13001
13088
|
value: progress
|
13002
|
-
}))));
|
13089
|
+
})))));
|
13003
13090
|
};
|
13004
13091
|
|
13005
13092
|
export { SincoTheme, ToastNotification };
|