@sinco/react 1.0.4-rc.1 → 1.0.4-rc.10
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +374 -646
- package/package.json +1 -1
- package/src/index.d.ts +1 -3
- package/src/lib/Components/ToastNotification/ToastNofitication.d.ts +14 -0
- package/src/lib/Components/index.d.ts +2 -0
- package/src/lib/Components/pageHeader/PageHeader.d.ts +15 -0
- package/src/lib/toastNotification/ToastNofitication.d.ts +0 -4
- package/src/lib/toastNotification/interfaces.d.ts +0 -22
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$c =
|
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$a = functionUncurryThis;
|
95
95
|
|
96
|
-
var toString$
|
97
|
-
var stringSlice$
|
96
|
+
var toString$1 = uncurryThis$a({}.toString);
|
97
|
+
var stringSlice$1 = uncurryThis$a(''.slice);
|
98
98
|
|
99
|
-
var classofRaw
|
100
|
-
return stringSlice$
|
99
|
+
var classofRaw = function (it) {
|
100
|
+
return stringSlice$1(toString$1(it), 8, -1);
|
101
101
|
};
|
102
102
|
|
103
|
-
var uncurryThis$
|
103
|
+
var uncurryThis$9 = functionUncurryThis;
|
104
104
|
var fails$8 = fails$b;
|
105
|
-
var classof
|
105
|
+
var classof = classofRaw;
|
106
106
|
|
107
|
-
var $Object$
|
108
|
-
var split = uncurryThis$
|
107
|
+
var $Object$3 = Object;
|
108
|
+
var split = uncurryThis$9(''.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$3('z').propertyIsEnumerable(0);
|
115
115
|
}) ? function (it) {
|
116
|
-
return classof
|
117
|
-
} : $Object$
|
116
|
+
return classof(it) == 'String' ? split(it, '') : $Object$3(it);
|
117
|
+
} : $Object$3;
|
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$e = $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$d = isCallable$e;
|
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$d(it) || it === documentAll;
|
174
174
|
} : function (it) {
|
175
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
175
|
+
return typeof it == 'object' ? it !== null : isCallable$d(it);
|
176
176
|
};
|
177
177
|
|
178
|
-
var global$
|
179
|
-
var isCallable$
|
178
|
+
var global$b = global$c;
|
179
|
+
var isCallable$c = isCallable$e;
|
180
180
|
|
181
181
|
var aFunction = function (argument) {
|
182
|
-
return isCallable$
|
182
|
+
return isCallable$c(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$b[namespace]) : global$b[namespace] && global$b[namespace][method];
|
187
187
|
};
|
188
188
|
|
189
|
-
var uncurryThis$
|
189
|
+
var uncurryThis$8 = functionUncurryThis;
|
190
190
|
|
191
|
-
var objectIsPrototypeOf = uncurryThis$
|
191
|
+
var objectIsPrototypeOf = uncurryThis$8({}.isPrototypeOf);
|
192
192
|
|
193
193
|
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
194
194
|
|
195
|
-
var global$
|
195
|
+
var global$a = global$c;
|
196
196
|
var userAgent = engineUserAgent;
|
197
197
|
|
198
|
-
var process$1 = global$
|
199
|
-
var Deno = global$
|
198
|
+
var process$1 = global$a.process;
|
199
|
+
var Deno = global$a.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$9 = global$c;
|
228
228
|
|
229
|
-
var $String$
|
229
|
+
var $String$4 = global$9.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$4(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$1 = symbolConstructorDetection;
|
246
246
|
|
247
|
-
var useSymbolAsUid = NATIVE_SYMBOL$
|
247
|
+
var useSymbolAsUid = NATIVE_SYMBOL$1
|
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
|
252
|
+
var isCallable$b = isCallable$e;
|
253
|
+
var isPrototypeOf = objectIsPrototypeOf;
|
254
254
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
255
255
|
|
256
|
-
var $Object$
|
256
|
+
var $Object$2 = 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$b($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
|
263
263
|
};
|
264
264
|
|
265
|
-
var $String$
|
265
|
+
var $String$3 = String;
|
266
266
|
|
267
267
|
var tryToString$1 = function (argument) {
|
268
268
|
try {
|
269
|
-
return $String$
|
269
|
+
return $String$3(argument);
|
270
270
|
} catch (error) {
|
271
271
|
return 'Object';
|
272
272
|
}
|
273
273
|
};
|
274
274
|
|
275
|
-
var isCallable$
|
275
|
+
var isCallable$a = isCallable$e;
|
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$a(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$9 = isCallable$e;
|
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$9(fn = input.toString) && !isObject$5(val = call$4(fn, input))) return val;
|
307
|
+
if (isCallable$9(fn = input.valueOf) && !isObject$5(val = call$4(fn, input))) return val;
|
308
|
+
if (pref !== 'string' && isCallable$9(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$8 = global$c;
|
315
315
|
|
316
316
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
317
|
-
var defineProperty$
|
317
|
+
var defineProperty$5 = Object.defineProperty;
|
318
318
|
|
319
319
|
var defineGlobalProperty$3 = function (key, value) {
|
320
320
|
try {
|
321
|
-
defineProperty$
|
321
|
+
defineProperty$5(global$8, key, { value: value, configurable: true, writable: true });
|
322
322
|
} catch (error) {
|
323
|
-
global$
|
323
|
+
global$8[key] = value;
|
324
324
|
} return value;
|
325
325
|
};
|
326
326
|
|
327
|
-
var global$
|
327
|
+
var global$7 = global$c;
|
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$7[SHARED] || defineGlobalProperty$2(SHARED, {});
|
332
332
|
|
333
333
|
var sharedStore = store$3;
|
334
334
|
|
@@ -346,18 +346,18 @@ var store$2 = sharedStore;
|
|
346
346
|
|
347
347
|
var requireObjectCoercible = requireObjectCoercible$2;
|
348
348
|
|
349
|
-
var $Object$
|
349
|
+
var $Object$1 = 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$1(requireObjectCoercible(argument));
|
355
355
|
};
|
356
356
|
|
357
|
-
var uncurryThis$
|
357
|
+
var uncurryThis$7 = functionUncurryThis;
|
358
358
|
var toObject$3 = toObject$4;
|
359
359
|
|
360
|
-
var hasOwnProperty$2 = uncurryThis$
|
360
|
+
var hasOwnProperty$2 = uncurryThis$7({}.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$6 = functionUncurryThis;
|
370
370
|
|
371
371
|
var id = 0;
|
372
372
|
var postfix = Math.random();
|
373
|
-
var toString
|
373
|
+
var toString = uncurryThis$6(1.0.toString);
|
374
374
|
|
375
375
|
var uid$2 = function (key) {
|
376
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString
|
376
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
377
377
|
};
|
378
378
|
|
379
|
-
var global$
|
379
|
+
var global$6 = global$c;
|
380
380
|
var shared$2 = shared$3.exports;
|
381
|
-
var hasOwn$
|
381
|
+
var hasOwn$8 = hasOwnProperty_1;
|
382
382
|
var uid$1 = uid$2;
|
383
|
-
var NATIVE_SYMBOL
|
383
|
+
var NATIVE_SYMBOL = symbolConstructorDetection;
|
384
384
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
385
385
|
|
386
|
-
var Symbol$1 = global$
|
386
|
+
var Symbol$1 = global$6.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
|
390
|
+
var wellKnownSymbol$6 = function (name) {
|
391
|
+
if (!hasOwn$8(WellKnownSymbolsStore, name)) {
|
392
|
+
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$8(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$5 = wellKnownSymbol$6;
|
404
404
|
|
405
405
|
var $TypeError$3 = TypeError;
|
406
|
-
var TO_PRIMITIVE = wellKnownSymbol$
|
406
|
+
var TO_PRIMITIVE = wellKnownSymbol$5('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$5 = global$c;
|
435
435
|
var isObject$3 = isObject$6;
|
436
436
|
|
437
|
-
var document$1 = global$
|
437
|
+
var document$1 = global$5.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$9 = 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$9 && !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$8 = 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$7 = 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$8 ? $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$7(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$7 = 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$7 && 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$8 && fails$5(function () {
|
|
494
494
|
|
495
495
|
var isObject$2 = isObject$6;
|
496
496
|
|
497
|
-
var $String$
|
497
|
+
var $String$2 = 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$2(argument) + ' is not an object');
|
504
504
|
};
|
505
505
|
|
506
|
-
var DESCRIPTORS$
|
506
|
+
var DESCRIPTORS$6 = 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$6 ? 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$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
547
547
|
return O;
|
548
548
|
};
|
549
549
|
|
550
|
-
var DESCRIPTORS$
|
550
|
+
var DESCRIPTORS$5 = 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$5 ? 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$2 = {exports: {}};
|
562
562
|
|
563
|
-
var DESCRIPTORS$
|
564
|
-
var hasOwn$
|
563
|
+
var DESCRIPTORS$4 = descriptors;
|
564
|
+
var hasOwn$6 = 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$4 && Object.getOwnPropertyDescriptor;
|
569
569
|
|
570
|
-
var EXISTS = hasOwn$
|
570
|
+
var EXISTS = hasOwn$6(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$4 || (DESCRIPTORS$4 && 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$5 = functionUncurryThis;
|
582
|
+
var isCallable$8 = isCallable$e;
|
583
583
|
var store$1 = sharedStore;
|
584
584
|
|
585
|
-
var functionToString = uncurryThis$
|
585
|
+
var functionToString = uncurryThis$5(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$8(store$1.inspectSource)) {
|
589
589
|
store$1.inspectSource = function (it) {
|
590
590
|
return functionToString(it);
|
591
591
|
};
|
@@ -593,12 +593,12 @@ if (!isCallable$a(store$1.inspectSource)) {
|
|
593
593
|
|
594
594
|
var inspectSource$1 = store$1.inspectSource;
|
595
595
|
|
596
|
-
var global$
|
597
|
-
var isCallable$
|
596
|
+
var global$4 = global$c;
|
597
|
+
var isCallable$7 = isCallable$e;
|
598
598
|
|
599
|
-
var WeakMap$2 = global$
|
599
|
+
var WeakMap$2 = global$4.WeakMap;
|
600
600
|
|
601
|
-
var weakMapBasicDetection = isCallable$
|
601
|
+
var weakMapBasicDetection = isCallable$7(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$3 = global$c;
|
616
616
|
var isObject$1 = isObject$6;
|
617
617
|
var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
|
618
|
-
var hasOwn$
|
618
|
+
var hasOwn$5 = 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$3.TypeError;
|
625
|
+
var WeakMap$1 = global$3.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$5(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$5(it, STATE) ? it[STATE] : {};
|
671
671
|
};
|
672
672
|
has$3 = function (it) {
|
673
|
-
return hasOwn$
|
673
|
+
return hasOwn$5(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$4 = functionUncurryThis;
|
686
686
|
var fails$4 = fails$b;
|
687
|
-
var isCallable$
|
688
|
-
var hasOwn$
|
689
|
-
var DESCRIPTORS$
|
687
|
+
var isCallable$6 = isCallable$e;
|
688
|
+
var hasOwn$4 = hasOwnProperty_1;
|
689
|
+
var DESCRIPTORS$3 = 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$1 = String;
|
697
697
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
698
|
-
var defineProperty$
|
699
|
-
var stringSlice
|
700
|
-
var replace$
|
701
|
-
var join = uncurryThis$
|
698
|
+
var defineProperty$4 = Object.defineProperty;
|
699
|
+
var stringSlice = uncurryThis$4(''.slice);
|
700
|
+
var replace$1 = uncurryThis$4(''.replace);
|
701
|
+
var join = uncurryThis$4([].join);
|
702
702
|
|
703
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$
|
704
|
-
return defineProperty$
|
703
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$4(function () {
|
704
|
+
return defineProperty$4(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
|
711
|
-
name = '[' + replace$
|
709
|
+
var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
710
|
+
if (stringSlice($String$1(name), 0, 7) === 'Symbol(') {
|
711
|
+
name = '[' + replace$1($String$1(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$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
716
|
+
if (DESCRIPTORS$3) defineProperty$4(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$4(options, 'arity') && value.length !== options.arity) {
|
720
|
+
defineProperty$4(value, 'length', { value: options.arity });
|
721
721
|
}
|
722
722
|
try {
|
723
|
-
if (options && hasOwn$
|
724
|
-
if (DESCRIPTORS$
|
723
|
+
if (options && hasOwn$4(options, 'constructor') && options.constructor) {
|
724
|
+
if (DESCRIPTORS$3) defineProperty$4(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$4(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$1(function toString() {
|
737
|
+
return isCallable$6(this) && getInternalState$1(this).source || inspectSource(this);
|
738
738
|
}, 'toString');
|
739
739
|
|
740
|
-
var isCallable$
|
740
|
+
var isCallable$5 = isCallable$e;
|
741
741
|
var definePropertyModule$2 = objectDefineProperty;
|
742
|
-
var makeBuiltIn
|
742
|
+
var makeBuiltIn = makeBuiltIn$2.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$5(value)) makeBuiltIn(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$3 = functionUncurryThis;
|
856
|
+
var hasOwn$3 = 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$3([].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$3(hiddenKeys$2, key) && hasOwn$3(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$3(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$2 = 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$2([].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$2 = 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$1 = 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$2(target, key) && !(exceptions && hasOwn$2(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$4 = isCallable$e;
|
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$4(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$2 = global$c;
|
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
|
964
|
+
var copyConstructorProperties = copyConstructorProperties$1;
|
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$2;
|
989
989
|
} else if (STATIC) {
|
990
|
-
target = global$
|
990
|
+
target = global$2[TARGET] || defineGlobalProperty(TARGET, {});
|
991
991
|
} else {
|
992
|
-
target = (global$
|
992
|
+
target = (global$2[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
|
1004
|
+
copyConstructorProperties(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$2 = descriptors;
|
1025
|
+
var uncurryThis$1 = 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$3 = Object.defineProperty;
|
1038
|
+
var concat = uncurryThis$1([].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$2 && $assign({ b: 1 }, $assign(defineProperty$3({}, 'a', {
|
1045
1045
|
enumerable: true,
|
1046
1046
|
get: function () {
|
1047
|
-
defineProperty$
|
1047
|
+
defineProperty$3(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$2 || call$1(propertyIsEnumerable, S, key)) T[key] = S[key];
|
1077
1077
|
}
|
1078
1078
|
} return T;
|
1079
1079
|
} : $assign;
|
1080
1080
|
|
1081
|
-
var $$
|
1081
|
+
var $$1 = _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
|
+
$$1({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign$2 }, {
|
1088
1088
|
assign: assign$2
|
1089
1089
|
});
|
1090
1090
|
|
@@ -2279,26 +2279,6 @@ function elementTypeAcceptingRef(props, propName, componentName, location, propF
|
|
2279
2279
|
}
|
2280
2280
|
var elementTypeAcceptingRef$1 = chainPropTypes(PropTypes.elementType, elementTypeAcceptingRef);
|
2281
2281
|
|
2282
|
-
// This module is based on https://github.com/airbnb/prop-types-exact repository.
|
2283
|
-
// However, in order to reduce the number of dependencies and to remove some extra safe checks
|
2284
|
-
// the module was forked.
|
2285
|
-
const specialProperty = 'exact-prop: \u200b';
|
2286
|
-
function exactProp(propTypes) {
|
2287
|
-
if (process.env.NODE_ENV === 'production') {
|
2288
|
-
return propTypes;
|
2289
|
-
}
|
2290
|
-
return {
|
2291
|
-
...propTypes,
|
2292
|
-
[specialProperty]: props => {
|
2293
|
-
const unsupportedProps = Object.keys(props).filter(prop => !propTypes.hasOwnProperty(prop));
|
2294
|
-
if (unsupportedProps.length > 0) {
|
2295
|
-
return new Error(`The following props are not supported: ${unsupportedProps.map(prop => `\`${prop}\``).join(', ')}. Please remove them.`);
|
2296
|
-
}
|
2297
|
-
return null;
|
2298
|
-
}
|
2299
|
-
};
|
2300
|
-
}
|
2301
|
-
|
2302
2282
|
/**
|
2303
2283
|
* WARNING: Don't import this directly.
|
2304
2284
|
* Use `MuiError` from `@mui/utils/macros/MuiError.macro` instead.
|
@@ -3207,7 +3187,7 @@ function match (value, pattern) {
|
|
3207
3187
|
* @param {string} replacement
|
3208
3188
|
* @return {string}
|
3209
3189
|
*/
|
3210
|
-
function replace
|
3190
|
+
function replace (value, pattern, replacement) {
|
3211
3191
|
return value.replace(pattern, replacement)
|
3212
3192
|
}
|
3213
3193
|
|
@@ -3535,7 +3515,7 @@ function parse (value, root, parent, rule, rules, rulesets, pseudo, points, decl
|
|
3535
3515
|
// (
|
3536
3516
|
case 40:
|
3537
3517
|
if (previous != 108 && charat(characters, length - 1) == 58) {
|
3538
|
-
if (indexof(characters += replace
|
3518
|
+
if (indexof(characters += replace(delimit(character), '&', '&\f'), '&\f') != -1)
|
3539
3519
|
ampersand = -1;
|
3540
3520
|
break
|
3541
3521
|
}
|
@@ -3570,9 +3550,9 @@ function parse (value, root, parent, rule, rules, rulesets, pseudo, points, decl
|
|
3570
3550
|
// \0 }
|
3571
3551
|
case 0: case 125: scanning = 0;
|
3572
3552
|
// ;
|
3573
|
-
case 59 + offset: if (ampersand == -1) characters = replace
|
3553
|
+
case 59 + offset: if (ampersand == -1) characters = replace(characters, /\f/g, '');
|
3574
3554
|
if (property > 0 && (strlen(characters) - length))
|
3575
|
-
append(property > 32 ? declaration(characters + ';', rule, parent, length - 1) : declaration(replace
|
3555
|
+
append(property > 32 ? declaration(characters + ';', rule, parent, length - 1) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2), declarations);
|
3576
3556
|
break
|
3577
3557
|
// @ ;
|
3578
3558
|
case 59: characters += ';';
|
@@ -3654,7 +3634,7 @@ function ruleset (value, root, parent, index, offset, rules, points, type, props
|
|
3654
3634
|
|
3655
3635
|
for (var i = 0, j = 0, k = 0; i < index; ++i)
|
3656
3636
|
for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
|
3657
|
-
if (z = trim(j > 0 ? rule[x] + ' ' + y : replace
|
3637
|
+
if (z = trim(j > 0 ? rule[x] + ' ' + y : replace(y, /&\f/g, rule[x])))
|
3658
3638
|
props[k++] = z;
|
3659
3639
|
|
3660
3640
|
return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length)
|
@@ -4050,51 +4030,51 @@ function prefix(value, length) {
|
|
4050
4030
|
// align-items
|
4051
4031
|
|
4052
4032
|
case 5187:
|
4053
|
-
return WEBKIT + value + replace
|
4033
|
+
return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;
|
4054
4034
|
// align-self
|
4055
4035
|
|
4056
4036
|
case 5443:
|
4057
|
-
return WEBKIT + value + MS + 'flex-item-' + replace
|
4037
|
+
return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/, '') + value;
|
4058
4038
|
// align-content
|
4059
4039
|
|
4060
4040
|
case 4675:
|
4061
|
-
return WEBKIT + value + MS + 'flex-line-pack' + replace
|
4041
|
+
return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/, '') + value;
|
4062
4042
|
// flex-shrink
|
4063
4043
|
|
4064
4044
|
case 5548:
|
4065
|
-
return WEBKIT + value + MS + replace
|
4045
|
+
return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value;
|
4066
4046
|
// flex-basis
|
4067
4047
|
|
4068
4048
|
case 5292:
|
4069
|
-
return WEBKIT + value + MS + replace
|
4049
|
+
return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value;
|
4070
4050
|
// flex-grow
|
4071
4051
|
|
4072
4052
|
case 6060:
|
4073
|
-
return WEBKIT + 'box-' + replace
|
4053
|
+
return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value;
|
4074
4054
|
// transition
|
4075
4055
|
|
4076
4056
|
case 4554:
|
4077
|
-
return WEBKIT + replace
|
4057
|
+
return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;
|
4078
4058
|
// cursor
|
4079
4059
|
|
4080
4060
|
case 6187:
|
4081
|
-
return replace
|
4061
|
+
return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;
|
4082
4062
|
// background, background-image
|
4083
4063
|
|
4084
4064
|
case 5495:
|
4085
4065
|
case 3959:
|
4086
|
-
return replace
|
4066
|
+
return replace(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1');
|
4087
4067
|
// justify-content
|
4088
4068
|
|
4089
4069
|
case 4968:
|
4090
|
-
return replace
|
4070
|
+
return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;
|
4091
4071
|
// (margin|padding)-inline-(start|end)
|
4092
4072
|
|
4093
4073
|
case 4095:
|
4094
4074
|
case 3583:
|
4095
4075
|
case 4068:
|
4096
4076
|
case 2532:
|
4097
|
-
return replace
|
4077
|
+
return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;
|
4098
4078
|
// (min|max)?(width|height|inline-size|block-size)
|
4099
4079
|
|
4100
4080
|
case 8116:
|
@@ -4118,11 +4098,11 @@ function prefix(value, length) {
|
|
4118
4098
|
// (f)ill-available, (f)it-content
|
4119
4099
|
|
4120
4100
|
case 102:
|
4121
|
-
return replace
|
4101
|
+
return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
|
4122
4102
|
// (s)tretch
|
4123
4103
|
|
4124
4104
|
case 115:
|
4125
|
-
return ~indexof(value, 'stretch') ? prefix(replace
|
4105
|
+
return ~indexof(value, 'stretch') ? prefix(replace(value, 'stretch', 'fill-available'), length) + value : value;
|
4126
4106
|
}
|
4127
4107
|
break;
|
4128
4108
|
// position: sticky
|
@@ -4136,11 +4116,11 @@ function prefix(value, length) {
|
|
4136
4116
|
switch (charat(value, strlen(value) - 3 - (~indexof(value, '!important') && 10))) {
|
4137
4117
|
// stic(k)y
|
4138
4118
|
case 107:
|
4139
|
-
return replace
|
4119
|
+
return replace(value, ':', ':' + WEBKIT) + value;
|
4140
4120
|
// (inline-)?fl(e)x
|
4141
4121
|
|
4142
4122
|
case 101:
|
4143
|
-
return replace
|
4123
|
+
return replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;
|
4144
4124
|
}
|
4145
4125
|
|
4146
4126
|
break;
|
@@ -4150,15 +4130,15 @@ function prefix(value, length) {
|
|
4150
4130
|
switch (charat(value, length + 11)) {
|
4151
4131
|
// vertical-l(r)
|
4152
4132
|
case 114:
|
4153
|
-
return WEBKIT + value + MS + replace
|
4133
|
+
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
|
4154
4134
|
// vertical-r(l)
|
4155
4135
|
|
4156
4136
|
case 108:
|
4157
|
-
return WEBKIT + value + MS + replace
|
4137
|
+
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
|
4158
4138
|
// horizontal(-)tb
|
4159
4139
|
|
4160
4140
|
case 45:
|
4161
|
-
return WEBKIT + value + MS + replace
|
4141
|
+
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
|
4162
4142
|
}
|
4163
4143
|
|
4164
4144
|
return WEBKIT + value + MS + value + value;
|
@@ -4175,7 +4155,7 @@ var prefixer = function prefixer(element, index, children, callback) {
|
|
4175
4155
|
|
4176
4156
|
case KEYFRAMES:
|
4177
4157
|
return serialize([copy(element, {
|
4178
|
-
value: replace
|
4158
|
+
value: replace(element.value, '@', '@' + WEBKIT)
|
4179
4159
|
})], callback);
|
4180
4160
|
|
4181
4161
|
case RULESET:
|
@@ -4185,17 +4165,17 @@ var prefixer = function prefixer(element, index, children, callback) {
|
|
4185
4165
|
case ':read-only':
|
4186
4166
|
case ':read-write':
|
4187
4167
|
return serialize([copy(element, {
|
4188
|
-
props: [replace
|
4168
|
+
props: [replace(value, /:(read-\w+)/, ':' + MOZ + '$1')]
|
4189
4169
|
})], callback);
|
4190
4170
|
// :placeholder
|
4191
4171
|
|
4192
4172
|
case '::placeholder':
|
4193
4173
|
return serialize([copy(element, {
|
4194
|
-
props: [replace
|
4174
|
+
props: [replace(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]
|
4195
4175
|
}), copy(element, {
|
4196
|
-
props: [replace
|
4176
|
+
props: [replace(value, /:(plac\w+)/, ':' + MOZ + '$1')]
|
4197
4177
|
}), copy(element, {
|
4198
|
-
props: [replace
|
4178
|
+
props: [replace(value, /:(plac\w+)/, MS + 'input-$1')]
|
4199
4179
|
})], callback);
|
4200
4180
|
}
|
4201
4181
|
|
@@ -5156,10 +5136,10 @@ if (!isBrowser$2) {
|
|
5156
5136
|
};
|
5157
5137
|
}
|
5158
5138
|
|
5159
|
-
var ThemeContext
|
5139
|
+
var ThemeContext = /* #__PURE__ */React.createContext({});
|
5160
5140
|
|
5161
5141
|
if (process.env.NODE_ENV !== 'production') {
|
5162
|
-
ThemeContext
|
5142
|
+
ThemeContext.displayName = 'EmotionThemeContext';
|
5163
5143
|
}
|
5164
5144
|
|
5165
5145
|
var typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';
|
@@ -5212,7 +5192,7 @@ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
|
|
5212
5192
|
className = props.className + " ";
|
5213
5193
|
}
|
5214
5194
|
|
5215
|
-
var serialized = serializeStyles(registeredStyles, undefined, React.useContext(ThemeContext
|
5195
|
+
var serialized = serializeStyles(registeredStyles, undefined, React.useContext(ThemeContext));
|
5216
5196
|
|
5217
5197
|
if (process.env.NODE_ENV !== 'production' && serialized.name.indexOf('-') === -1) {
|
5218
5198
|
var labelFromStack = props[labelPropName];
|
@@ -5391,7 +5371,7 @@ var Global = /* #__PURE__ */withEmotionCache(function (props, cache) {
|
|
5391
5371
|
}
|
5392
5372
|
|
5393
5373
|
var styles = props.styles;
|
5394
|
-
var serialized = serializeStyles([styles], undefined, React.useContext(ThemeContext
|
5374
|
+
var serialized = serializeStyles([styles], undefined, React.useContext(ThemeContext));
|
5395
5375
|
|
5396
5376
|
if (!isBrowser$2) {
|
5397
5377
|
var _ref;
|
@@ -5637,7 +5617,7 @@ var ClassNames = /* #__PURE__ */withEmotionCache(function (props, cache) {
|
|
5637
5617
|
var content = {
|
5638
5618
|
css: css,
|
5639
5619
|
cx: cx,
|
5640
|
-
theme: React.useContext(ThemeContext
|
5620
|
+
theme: React.useContext(ThemeContext)
|
5641
5621
|
};
|
5642
5622
|
var ele = props.children(content);
|
5643
5623
|
hasRendered = true;
|
@@ -5793,7 +5773,7 @@ var createStyled$1 = function createStyled(tag, options) {
|
|
5793
5773
|
mergedProps[key] = props[key];
|
5794
5774
|
}
|
5795
5775
|
|
5796
|
-
mergedProps.theme = React.useContext(ThemeContext
|
5776
|
+
mergedProps.theme = React.useContext(ThemeContext);
|
5797
5777
|
}
|
5798
5778
|
|
5799
5779
|
if (typeof props.className === 'string') {
|
@@ -5897,7 +5877,7 @@ const internal_processStyles = (tag, processor) => {
|
|
5897
5877
|
}
|
5898
5878
|
};
|
5899
5879
|
|
5900
|
-
const _excluded$
|
5880
|
+
const _excluded$i = ["values", "unit", "step"];
|
5901
5881
|
const sortBreakpointsValues = values => {
|
5902
5882
|
const breakpointsAsArray = Object.keys(values).map(key => ({
|
5903
5883
|
key,
|
@@ -5932,7 +5912,7 @@ function createBreakpoints(breakpoints) {
|
|
5932
5912
|
unit = 'px',
|
5933
5913
|
step = 5
|
5934
5914
|
} = breakpoints,
|
5935
|
-
other = _objectWithoutPropertiesLoose(breakpoints, _excluded$
|
5915
|
+
other = _objectWithoutPropertiesLoose(breakpoints, _excluded$i);
|
5936
5916
|
const sortedValues = sortBreakpointsValues(values);
|
5937
5917
|
const keys = Object.keys(sortedValues);
|
5938
5918
|
function up(key) {
|
@@ -7016,7 +6996,7 @@ const styleFunctionSx = unstable_createStyleFunctionSx();
|
|
7016
6996
|
styleFunctionSx.filterProps = ['sx'];
|
7017
6997
|
var styleFunctionSx$1 = styleFunctionSx;
|
7018
6998
|
|
7019
|
-
const _excluded$
|
6999
|
+
const _excluded$h = ["breakpoints", "palette", "spacing", "shape"];
|
7020
7000
|
function createTheme$1(options = {}, ...args) {
|
7021
7001
|
const {
|
7022
7002
|
breakpoints: breakpointsInput = {},
|
@@ -7024,7 +7004,7 @@ function createTheme$1(options = {}, ...args) {
|
|
7024
7004
|
spacing: spacingInput,
|
7025
7005
|
shape: shapeInput = {}
|
7026
7006
|
} = options,
|
7027
|
-
other = _objectWithoutPropertiesLoose(options, _excluded$
|
7007
|
+
other = _objectWithoutPropertiesLoose(options, _excluded$h);
|
7028
7008
|
const breakpoints = createBreakpoints(breakpointsInput);
|
7029
7009
|
const spacing = createSpacing(spacingInput);
|
7030
7010
|
let muiTheme = deepmerge({
|
@@ -7052,17 +7032,17 @@ function createTheme$1(options = {}, ...args) {
|
|
7052
7032
|
function isObjectEmpty(obj) {
|
7053
7033
|
return Object.keys(obj).length === 0;
|
7054
7034
|
}
|
7055
|
-
function useTheme$
|
7056
|
-
const contextTheme = React.useContext(ThemeContext
|
7035
|
+
function useTheme$2(defaultTheme = null) {
|
7036
|
+
const contextTheme = React.useContext(ThemeContext);
|
7057
7037
|
return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme : contextTheme;
|
7058
7038
|
}
|
7059
7039
|
|
7060
7040
|
const systemDefaultTheme$1 = createTheme$1();
|
7061
|
-
function useTheme$
|
7062
|
-
return useTheme$
|
7041
|
+
function useTheme$1(defaultTheme = systemDefaultTheme$1) {
|
7042
|
+
return useTheme$2(defaultTheme);
|
7063
7043
|
}
|
7064
7044
|
|
7065
|
-
const _excluded$
|
7045
|
+
const _excluded$g = ["sx"];
|
7066
7046
|
const splitProps = props => {
|
7067
7047
|
var _props$theme$unstable, _props$theme;
|
7068
7048
|
const result = {
|
@@ -7083,7 +7063,7 @@ function extendSxProp(props) {
|
|
7083
7063
|
const {
|
7084
7064
|
sx: inSx
|
7085
7065
|
} = props,
|
7086
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
7066
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$g);
|
7087
7067
|
const {
|
7088
7068
|
systemProps,
|
7089
7069
|
otherProps
|
@@ -7109,7 +7089,7 @@ function extendSxProp(props) {
|
|
7109
7089
|
|
7110
7090
|
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
7111
7091
|
|
7112
|
-
const _excluded$
|
7092
|
+
const _excluded$f = ["className", "component"];
|
7113
7093
|
function createBox(options = {}) {
|
7114
7094
|
const {
|
7115
7095
|
themeId,
|
@@ -7121,13 +7101,13 @@ function createBox(options = {}) {
|
|
7121
7101
|
shouldForwardProp: prop => prop !== 'theme' && prop !== 'sx' && prop !== 'as'
|
7122
7102
|
})(styleFunctionSx$1);
|
7123
7103
|
const Box = /*#__PURE__*/React.forwardRef(function Box(inProps, ref) {
|
7124
|
-
const theme = useTheme$
|
7104
|
+
const theme = useTheme$1(defaultTheme);
|
7125
7105
|
const _extendSxProp = extendSxProp(inProps),
|
7126
7106
|
{
|
7127
7107
|
className,
|
7128
7108
|
component = 'div'
|
7129
7109
|
} = _extendSxProp,
|
7130
|
-
other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$
|
7110
|
+
other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$f);
|
7131
7111
|
return /*#__PURE__*/jsx(BoxRoot, _extends({
|
7132
7112
|
as: component,
|
7133
7113
|
ref: ref,
|
@@ -7138,7 +7118,7 @@ function createBox(options = {}) {
|
|
7138
7118
|
return Box;
|
7139
7119
|
}
|
7140
7120
|
|
7141
|
-
const _excluded$
|
7121
|
+
const _excluded$e = ["variant"];
|
7142
7122
|
function isEmpty$1(string) {
|
7143
7123
|
return string.length === 0;
|
7144
7124
|
}
|
@@ -7152,7 +7132,7 @@ function propsToClassKey(props) {
|
|
7152
7132
|
const {
|
7153
7133
|
variant
|
7154
7134
|
} = props,
|
7155
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
7135
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$e);
|
7156
7136
|
let classKey = variant || '';
|
7157
7137
|
Object.keys(other).sort().forEach(key => {
|
7158
7138
|
if (key === 'color') {
|
@@ -7164,7 +7144,7 @@ function propsToClassKey(props) {
|
|
7164
7144
|
return classKey;
|
7165
7145
|
}
|
7166
7146
|
|
7167
|
-
const _excluded$
|
7147
|
+
const _excluded$d = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
|
7168
7148
|
function isEmpty(obj) {
|
7169
7149
|
return Object.keys(obj).length === 0;
|
7170
7150
|
}
|
@@ -7259,7 +7239,7 @@ function createStyled(input = {}) {
|
|
7259
7239
|
skipSx: inputSkipSx,
|
7260
7240
|
overridesResolver
|
7261
7241
|
} = inputOptions,
|
7262
|
-
options = _objectWithoutPropertiesLoose(inputOptions, _excluded$
|
7242
|
+
options = _objectWithoutPropertiesLoose(inputOptions, _excluded$d);
|
7263
7243
|
|
7264
7244
|
// if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.
|
7265
7245
|
const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver : componentSlot && componentSlot !== 'Root' || false;
|
@@ -7393,7 +7373,7 @@ function useThemeProps$1({
|
|
7393
7373
|
defaultTheme,
|
7394
7374
|
themeId
|
7395
7375
|
}) {
|
7396
|
-
let theme = useTheme$
|
7376
|
+
let theme = useTheme$1(defaultTheme);
|
7397
7377
|
if (themeId) {
|
7398
7378
|
theme = theme[themeId] || theme;
|
7399
7379
|
}
|
@@ -7639,157 +7619,7 @@ function lighten(color, coefficient) {
|
|
7639
7619
|
return recomposeColor(color);
|
7640
7620
|
}
|
7641
7621
|
|
7642
|
-
const
|
7643
|
-
if (process.env.NODE_ENV !== 'production') {
|
7644
|
-
ThemeContext.displayName = 'ThemeContext';
|
7645
|
-
}
|
7646
|
-
var ThemeContext$1 = ThemeContext;
|
7647
|
-
|
7648
|
-
function useTheme$1() {
|
7649
|
-
const theme = React.useContext(ThemeContext$1);
|
7650
|
-
if (process.env.NODE_ENV !== 'production') {
|
7651
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
7652
|
-
React.useDebugValue(theme);
|
7653
|
-
}
|
7654
|
-
return theme;
|
7655
|
-
}
|
7656
|
-
|
7657
|
-
const hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
7658
|
-
var nested = hasSymbol ? Symbol.for('mui.nested') : '__THEME_NESTED__';
|
7659
|
-
|
7660
|
-
function mergeOuterLocalTheme(outerTheme, localTheme) {
|
7661
|
-
if (typeof localTheme === 'function') {
|
7662
|
-
const mergedTheme = localTheme(outerTheme);
|
7663
|
-
if (process.env.NODE_ENV !== 'production') {
|
7664
|
-
if (!mergedTheme) {
|
7665
|
-
console.error(['MUI: You should return an object from your theme function, i.e.', '<ThemeProvider theme={() => ({})} />'].join('\n'));
|
7666
|
-
}
|
7667
|
-
}
|
7668
|
-
return mergedTheme;
|
7669
|
-
}
|
7670
|
-
return {
|
7671
|
-
...outerTheme,
|
7672
|
-
...localTheme
|
7673
|
-
};
|
7674
|
-
}
|
7675
|
-
|
7676
|
-
/**
|
7677
|
-
* This component takes a `theme` prop.
|
7678
|
-
* It makes the `theme` available down the React tree thanks to React context.
|
7679
|
-
* This component should preferably be used at **the root of your component tree**.
|
7680
|
-
*/
|
7681
|
-
function ThemeProvider$2(props) {
|
7682
|
-
const {
|
7683
|
-
children,
|
7684
|
-
theme: localTheme
|
7685
|
-
} = props;
|
7686
|
-
const outerTheme = useTheme$1();
|
7687
|
-
if (process.env.NODE_ENV !== 'production') {
|
7688
|
-
if (outerTheme === null && typeof localTheme === 'function') {
|
7689
|
-
console.error(['MUI: You are providing a theme function prop to the ThemeProvider component:', '<ThemeProvider theme={outerTheme => outerTheme} />', '', 'However, no outer theme is present.', 'Make sure a theme is already injected higher in the React tree ' + 'or provide a theme object.'].join('\n'));
|
7690
|
-
}
|
7691
|
-
}
|
7692
|
-
const theme = React.useMemo(() => {
|
7693
|
-
const output = outerTheme === null ? localTheme : mergeOuterLocalTheme(outerTheme, localTheme);
|
7694
|
-
if (output != null) {
|
7695
|
-
output[nested] = outerTheme !== null;
|
7696
|
-
}
|
7697
|
-
return output;
|
7698
|
-
}, [localTheme, outerTheme]);
|
7699
|
-
return /*#__PURE__*/jsx(ThemeContext$1.Provider, {
|
7700
|
-
value: theme,
|
7701
|
-
children: children
|
7702
|
-
});
|
7703
|
-
}
|
7704
|
-
process.env.NODE_ENV !== "production" ? ThemeProvider$2.propTypes = {
|
7705
|
-
/**
|
7706
|
-
* Your component tree.
|
7707
|
-
*/
|
7708
|
-
children: PropTypes.node,
|
7709
|
-
/**
|
7710
|
-
* A theme object. You can provide a function to extend the outer theme.
|
7711
|
-
*/
|
7712
|
-
theme: PropTypes.oneOfType([PropTypes.object, PropTypes.func]).isRequired
|
7713
|
-
} : void 0;
|
7714
|
-
if (process.env.NODE_ENV !== 'production') {
|
7715
|
-
process.env.NODE_ENV !== "production" ? ThemeProvider$2.propTypes = exactProp(ThemeProvider$2.propTypes) : void 0;
|
7716
|
-
}
|
7717
|
-
|
7718
|
-
const EMPTY_THEME = {};
|
7719
|
-
function useThemeScoping(themeId, upperTheme, localTheme, isPrivate = false) {
|
7720
|
-
return React.useMemo(() => {
|
7721
|
-
const resolvedTheme = themeId ? upperTheme[themeId] || upperTheme : upperTheme;
|
7722
|
-
if (typeof localTheme === 'function') {
|
7723
|
-
const mergedTheme = localTheme(resolvedTheme);
|
7724
|
-
const result = themeId ? _extends({}, upperTheme, {
|
7725
|
-
[themeId]: mergedTheme
|
7726
|
-
}) : mergedTheme;
|
7727
|
-
// must return a function for the private theme to NOT merge with the upper theme.
|
7728
|
-
// see the test case "use provided theme from a callback" in ThemeProvider.test.js
|
7729
|
-
if (isPrivate) {
|
7730
|
-
return () => result;
|
7731
|
-
}
|
7732
|
-
return result;
|
7733
|
-
}
|
7734
|
-
return themeId ? _extends({}, upperTheme, {
|
7735
|
-
[themeId]: localTheme
|
7736
|
-
}) : _extends({}, upperTheme, localTheme);
|
7737
|
-
}, [themeId, upperTheme, localTheme, isPrivate]);
|
7738
|
-
}
|
7739
|
-
|
7740
|
-
/**
|
7741
|
-
* This component makes the `theme` available down the React tree.
|
7742
|
-
* It should preferably be used at **the root of your component tree**.
|
7743
|
-
*
|
7744
|
-
* <ThemeProvider theme={theme}> // existing use case
|
7745
|
-
* <ThemeProvider theme={{ id: theme }}> // theme scoping
|
7746
|
-
*/
|
7747
|
-
function ThemeProvider$1(props) {
|
7748
|
-
const {
|
7749
|
-
children,
|
7750
|
-
theme: localTheme,
|
7751
|
-
themeId
|
7752
|
-
} = props;
|
7753
|
-
const upperTheme = useTheme$3(EMPTY_THEME);
|
7754
|
-
const upperPrivateTheme = useTheme$1() || EMPTY_THEME;
|
7755
|
-
if (process.env.NODE_ENV !== 'production') {
|
7756
|
-
if (upperTheme === null && typeof localTheme === 'function' || themeId && upperTheme && !upperTheme[themeId] && typeof localTheme === 'function') {
|
7757
|
-
console.error(['MUI: You are providing a theme function prop to the ThemeProvider component:', '<ThemeProvider theme={outerTheme => outerTheme} />', '', 'However, no outer theme is present.', 'Make sure a theme is already injected higher in the React tree ' + 'or provide a theme object.'].join('\n'));
|
7758
|
-
}
|
7759
|
-
}
|
7760
|
-
const engineTheme = useThemeScoping(themeId, upperTheme, localTheme);
|
7761
|
-
const privateTheme = useThemeScoping(themeId, upperPrivateTheme, localTheme, true);
|
7762
|
-
return /*#__PURE__*/jsx(ThemeProvider$2, {
|
7763
|
-
theme: privateTheme,
|
7764
|
-
children: /*#__PURE__*/jsx(ThemeContext$2.Provider, {
|
7765
|
-
value: engineTheme,
|
7766
|
-
children: children
|
7767
|
-
})
|
7768
|
-
});
|
7769
|
-
}
|
7770
|
-
process.env.NODE_ENV !== "production" ? ThemeProvider$1.propTypes /* remove-proptypes */ = {
|
7771
|
-
// ----------------------------- Warning --------------------------------
|
7772
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
7773
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
7774
|
-
// ----------------------------------------------------------------------
|
7775
|
-
/**
|
7776
|
-
* Your component tree.
|
7777
|
-
*/
|
7778
|
-
children: PropTypes.node,
|
7779
|
-
/**
|
7780
|
-
* A theme object. You can provide a function to extend the outer theme.
|
7781
|
-
*/
|
7782
|
-
theme: PropTypes.oneOfType([PropTypes.func, PropTypes.object]).isRequired,
|
7783
|
-
/**
|
7784
|
-
* The design system's unique id for getting the corresponded theme when there are multiple design systems.
|
7785
|
-
*/
|
7786
|
-
themeId: PropTypes.string
|
7787
|
-
} : void 0;
|
7788
|
-
if (process.env.NODE_ENV !== 'production') {
|
7789
|
-
process.env.NODE_ENV !== "production" ? ThemeProvider$1.propTypes = exactProp(ThemeProvider$1.propTypes) : void 0;
|
7790
|
-
}
|
7791
|
-
|
7792
|
-
const _excluded$d = ["component", "direction", "spacing", "divider", "children", "className", "useFlexGap"];
|
7622
|
+
const _excluded$c = ["component", "direction", "spacing", "divider", "children", "className", "useFlexGap"];
|
7793
7623
|
const defaultTheme$3 = createTheme$1();
|
7794
7624
|
// widening Theme to any so that the consumer can own the theme structure.
|
7795
7625
|
const defaultCreateStyledComponent = systemStyled('div', {
|
@@ -7918,7 +7748,7 @@ function createStack(options = {}) {
|
|
7918
7748
|
className,
|
7919
7749
|
useFlexGap = false
|
7920
7750
|
} = props,
|
7921
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
7751
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$c);
|
7922
7752
|
const ownerState = {
|
7923
7753
|
direction,
|
7924
7754
|
spacing,
|
@@ -8092,7 +7922,7 @@ const green = {
|
|
8092
7922
|
};
|
8093
7923
|
var green$1 = green;
|
8094
7924
|
|
8095
|
-
const _excluded$
|
7925
|
+
const _excluded$b = ["mode", "contrastThreshold", "tonalOffset"];
|
8096
7926
|
const light = {
|
8097
7927
|
// The colors used to style the text.
|
8098
7928
|
text: {
|
@@ -8261,7 +8091,7 @@ function createPalette(palette) {
|
|
8261
8091
|
contrastThreshold = 3,
|
8262
8092
|
tonalOffset = 0.2
|
8263
8093
|
} = palette,
|
8264
|
-
other = _objectWithoutPropertiesLoose(palette, _excluded$
|
8094
|
+
other = _objectWithoutPropertiesLoose(palette, _excluded$b);
|
8265
8095
|
const primary = palette.primary || getDefaultPrimary(mode);
|
8266
8096
|
const secondary = palette.secondary || getDefaultSecondary(mode);
|
8267
8097
|
const error = palette.error || getDefaultError(mode);
|
@@ -8385,7 +8215,7 @@ const theme2 = createTheme({ palette: {
|
|
8385
8215
|
return paletteOutput;
|
8386
8216
|
}
|
8387
8217
|
|
8388
|
-
const _excluded$
|
8218
|
+
const _excluded$a = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
|
8389
8219
|
function round(value) {
|
8390
8220
|
return Math.round(value * 1e5) / 1e5;
|
8391
8221
|
}
|
@@ -8416,7 +8246,7 @@ function createTypography(palette, typography) {
|
|
8416
8246
|
allVariants,
|
8417
8247
|
pxToRem: pxToRem2
|
8418
8248
|
} = _ref,
|
8419
|
-
other = _objectWithoutPropertiesLoose(_ref, _excluded$
|
8249
|
+
other = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
8420
8250
|
if (process.env.NODE_ENV !== 'production') {
|
8421
8251
|
if (typeof fontSize !== 'number') {
|
8422
8252
|
console.error('MUI: `fontSize` is required to be a number.');
|
@@ -8483,7 +8313,7 @@ function createShadow(...px) {
|
|
8483
8313
|
const shadows = ['none', createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)];
|
8484
8314
|
var shadows$1 = shadows;
|
8485
8315
|
|
8486
|
-
const _excluded$
|
8316
|
+
const _excluded$9 = ["duration", "easing", "delay"];
|
8487
8317
|
// Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves
|
8488
8318
|
// to learn the context in which each easing should be used.
|
8489
8319
|
const easing = {
|
@@ -8534,7 +8364,7 @@ function createTransitions(inputTransitions) {
|
|
8534
8364
|
easing: easingOption = mergedEasing.easeInOut,
|
8535
8365
|
delay = 0
|
8536
8366
|
} = options,
|
8537
|
-
other = _objectWithoutPropertiesLoose(options, _excluded$
|
8367
|
+
other = _objectWithoutPropertiesLoose(options, _excluded$9);
|
8538
8368
|
if (process.env.NODE_ENV !== 'production') {
|
8539
8369
|
const isString = value => typeof value === 'string';
|
8540
8370
|
// IE11 support, replace with Number.isNaN
|
@@ -8581,7 +8411,7 @@ const zIndex = {
|
|
8581
8411
|
};
|
8582
8412
|
var zIndex$1 = zIndex;
|
8583
8413
|
|
8584
|
-
const _excluded$
|
8414
|
+
const _excluded$8 = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
|
8585
8415
|
function createTheme(options = {}, ...args) {
|
8586
8416
|
const {
|
8587
8417
|
mixins: mixinsInput = {},
|
@@ -8589,7 +8419,7 @@ function createTheme(options = {}, ...args) {
|
|
8589
8419
|
transitions: transitionsInput = {},
|
8590
8420
|
typography: typographyInput = {}
|
8591
8421
|
} = options,
|
8592
|
-
other = _objectWithoutPropertiesLoose(options, _excluded$
|
8422
|
+
other = _objectWithoutPropertiesLoose(options, _excluded$8);
|
8593
8423
|
if (options.vars) {
|
8594
8424
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: \`vars\` is a private field used for CSS variables support.
|
8595
8425
|
Please use another name.` : formatMuiErrorMessage(18));
|
@@ -8651,7 +8481,7 @@ const defaultTheme$1 = createTheme();
|
|
8651
8481
|
var defaultTheme$2 = defaultTheme$1;
|
8652
8482
|
|
8653
8483
|
function useTheme() {
|
8654
|
-
const theme = useTheme$
|
8484
|
+
const theme = useTheme$1(defaultTheme$2);
|
8655
8485
|
if (process.env.NODE_ENV !== 'production') {
|
8656
8486
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
8657
8487
|
React.useDebugValue(theme);
|
@@ -8679,29 +8509,6 @@ const styled = createStyled({
|
|
8679
8509
|
});
|
8680
8510
|
var styled$1 = styled;
|
8681
8511
|
|
8682
|
-
const _excluded$8 = ["theme"];
|
8683
|
-
function ThemeProvider(_ref) {
|
8684
|
-
let {
|
8685
|
-
theme: themeInput
|
8686
|
-
} = _ref,
|
8687
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
8688
|
-
const scopedTheme = themeInput[THEME_ID];
|
8689
|
-
return /*#__PURE__*/jsx(ThemeProvider$1, _extends({}, props, {
|
8690
|
-
themeId: scopedTheme ? THEME_ID : undefined,
|
8691
|
-
theme: scopedTheme || themeInput
|
8692
|
-
}));
|
8693
|
-
}
|
8694
|
-
process.env.NODE_ENV !== "production" ? ThemeProvider.propTypes = {
|
8695
|
-
/**
|
8696
|
-
* Your component tree.
|
8697
|
-
*/
|
8698
|
-
children: PropTypes.node,
|
8699
|
-
/**
|
8700
|
-
* A theme object. You can provide a function to extend the outer theme.
|
8701
|
-
*/
|
8702
|
-
theme: PropTypes.oneOfType([PropTypes.object, PropTypes.func]).isRequired
|
8703
|
-
} : void 0;
|
8704
|
-
|
8705
8512
|
function getSvgIconUtilityClass(slot) {
|
8706
8513
|
return generateUtilityClass('MuiSvgIcon', slot);
|
8707
8514
|
}
|
@@ -9059,15 +8866,44 @@ const components = {
|
|
9059
8866
|
}
|
9060
8867
|
},
|
9061
8868
|
MuiChip: {
|
9062
|
-
defaultProps: {
|
9063
|
-
size: 'small'
|
9064
|
-
},
|
9065
8869
|
styleOverrides: {
|
8870
|
+
sizeSmall: {
|
8871
|
+
paddingBlock: 4
|
8872
|
+
},
|
8873
|
+
sizeMedium: {
|
8874
|
+
paddingBlock: 7
|
8875
|
+
},
|
9066
8876
|
root: {
|
8877
|
+
height: "inherit",
|
9067
8878
|
borderRadius: 4
|
8879
|
+
// '&.MuiChip-colorPrimary': {
|
8880
|
+
// color: '#101840DE',
|
8881
|
+
// backgroundColor: '#E4ECF4',
|
8882
|
+
// ".MuiChip-deleteIcon": {
|
8883
|
+
// height: 12,
|
8884
|
+
// width: 12,
|
8885
|
+
// },
|
8886
|
+
// },
|
8887
|
+
// '&.MuiChip-colorPrimary.MuiChip-outlined': {
|
8888
|
+
// border: '1px solid #90B1D0',
|
8889
|
+
// backgroundColor: "#fff",
|
8890
|
+
// ".MuiChip-avatar": {
|
8891
|
+
// marginBlock: 2
|
8892
|
+
// },
|
8893
|
+
// "&.MuiChip-colorPrimary.MuiChip-outlined:hover": {
|
8894
|
+
// backgroundColor: "#E4ECF4"
|
8895
|
+
// },
|
8896
|
+
// ".MuiChip-deleteIcon": {
|
8897
|
+
// color: "#90B1D0",
|
8898
|
+
// "&:hover": {
|
8899
|
+
// color: "#6392BD !important"
|
8900
|
+
// }
|
8901
|
+
// },
|
8902
|
+
// },
|
9068
8903
|
}
|
9069
8904
|
}
|
9070
8905
|
},
|
8906
|
+
|
9071
8907
|
MuiAlert: {
|
9072
8908
|
defaultProps: {
|
9073
8909
|
iconMapping: {
|
@@ -9607,7 +9443,7 @@ const SincoTheme = createTheme(Object.assign({}, themeOptions));
|
|
9607
9443
|
|
9608
9444
|
var objectDefineProperties = {};
|
9609
9445
|
|
9610
|
-
var DESCRIPTORS$
|
9446
|
+
var DESCRIPTORS$1 = descriptors;
|
9611
9447
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
9612
9448
|
var definePropertyModule = objectDefineProperty;
|
9613
9449
|
var anObject$2 = anObject$5;
|
@@ -9617,7 +9453,7 @@ var objectKeys = objectKeys$2;
|
|
9617
9453
|
// `Object.defineProperties` method
|
9618
9454
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
9619
9455
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
9620
|
-
objectDefineProperties.f = DESCRIPTORS$
|
9456
|
+
objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
9621
9457
|
anObject$2(O);
|
9622
9458
|
var props = toIndexedObject$1(Properties);
|
9623
9459
|
var keys = objectKeys(Properties);
|
@@ -9717,17 +9553,17 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
9717
9553
|
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
9718
9554
|
};
|
9719
9555
|
|
9720
|
-
var wellKnownSymbol$
|
9556
|
+
var wellKnownSymbol$4 = wellKnownSymbol$6;
|
9721
9557
|
var create$1 = objectCreate;
|
9722
|
-
var defineProperty$
|
9558
|
+
var defineProperty$2 = objectDefineProperty.f;
|
9723
9559
|
|
9724
|
-
var UNSCOPABLES = wellKnownSymbol$
|
9560
|
+
var UNSCOPABLES = wellKnownSymbol$4('unscopables');
|
9725
9561
|
var ArrayPrototype = Array.prototype;
|
9726
9562
|
|
9727
9563
|
// Array.prototype[@@unscopables]
|
9728
9564
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
9729
9565
|
if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
9730
|
-
defineProperty$
|
9566
|
+
defineProperty$2(ArrayPrototype, UNSCOPABLES, {
|
9731
9567
|
configurable: true,
|
9732
9568
|
value: create$1(null)
|
9733
9569
|
});
|
@@ -9749,36 +9585,36 @@ var correctPrototypeGetter = !fails$1(function () {
|
|
9749
9585
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
9750
9586
|
});
|
9751
9587
|
|
9752
|
-
var hasOwn$
|
9753
|
-
var isCallable$
|
9588
|
+
var hasOwn$1 = hasOwnProperty_1;
|
9589
|
+
var isCallable$3 = isCallable$e;
|
9754
9590
|
var toObject = toObject$4;
|
9755
9591
|
var sharedKey = sharedKey$3;
|
9756
9592
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
9757
9593
|
|
9758
9594
|
var IE_PROTO = sharedKey('IE_PROTO');
|
9759
|
-
var $Object
|
9760
|
-
var ObjectPrototype = $Object
|
9595
|
+
var $Object = Object;
|
9596
|
+
var ObjectPrototype = $Object.prototype;
|
9761
9597
|
|
9762
9598
|
// `Object.getPrototypeOf` method
|
9763
9599
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
9764
9600
|
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
9765
|
-
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object
|
9601
|
+
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
|
9766
9602
|
var object = toObject(O);
|
9767
|
-
if (hasOwn$
|
9603
|
+
if (hasOwn$1(object, IE_PROTO)) return object[IE_PROTO];
|
9768
9604
|
var constructor = object.constructor;
|
9769
|
-
if (isCallable$
|
9605
|
+
if (isCallable$3(constructor) && object instanceof constructor) {
|
9770
9606
|
return constructor.prototype;
|
9771
|
-
} return object instanceof $Object
|
9607
|
+
} return object instanceof $Object ? ObjectPrototype : null;
|
9772
9608
|
};
|
9773
9609
|
|
9774
9610
|
var fails = fails$b;
|
9775
|
-
var isCallable$
|
9611
|
+
var isCallable$2 = isCallable$e;
|
9776
9612
|
var isObject = isObject$6;
|
9777
9613
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
9778
9614
|
var defineBuiltIn$1 = defineBuiltIn$3;
|
9779
|
-
var wellKnownSymbol$
|
9615
|
+
var wellKnownSymbol$3 = wellKnownSymbol$6;
|
9780
9616
|
|
9781
|
-
var ITERATOR$2 = wellKnownSymbol$
|
9617
|
+
var ITERATOR$2 = wellKnownSymbol$3('iterator');
|
9782
9618
|
var BUGGY_SAFARI_ITERATORS$1 = false;
|
9783
9619
|
|
9784
9620
|
// `%IteratorPrototype%` object
|
@@ -9806,7 +9642,7 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
|
|
9806
9642
|
|
9807
9643
|
// `%IteratorPrototype%[@@iterator]()` method
|
9808
9644
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
9809
|
-
if (!isCallable$
|
9645
|
+
if (!isCallable$2(IteratorPrototype$2[ITERATOR$2])) {
|
9810
9646
|
defineBuiltIn$1(IteratorPrototype$2, ITERATOR$2, function () {
|
9811
9647
|
return this;
|
9812
9648
|
});
|
@@ -9817,16 +9653,16 @@ var iteratorsCore = {
|
|
9817
9653
|
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
|
9818
9654
|
};
|
9819
9655
|
|
9820
|
-
var defineProperty$
|
9821
|
-
var hasOwn
|
9822
|
-
var wellKnownSymbol$
|
9656
|
+
var defineProperty$1 = objectDefineProperty.f;
|
9657
|
+
var hasOwn = hasOwnProperty_1;
|
9658
|
+
var wellKnownSymbol$2 = wellKnownSymbol$6;
|
9823
9659
|
|
9824
|
-
var TO_STRING_TAG$
|
9660
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$2('toStringTag');
|
9825
9661
|
|
9826
9662
|
var setToStringTag$2 = function (target, TAG, STATIC) {
|
9827
9663
|
if (target && !STATIC) target = target.prototype;
|
9828
|
-
if (target && !hasOwn
|
9829
|
-
defineProperty$
|
9664
|
+
if (target && !hasOwn(target, TO_STRING_TAG$1)) {
|
9665
|
+
defineProperty$1(target, TO_STRING_TAG$1, { configurable: true, value: TAG });
|
9830
9666
|
}
|
9831
9667
|
};
|
9832
9668
|
|
@@ -9846,24 +9682,24 @@ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUME
|
|
9846
9682
|
return IteratorConstructor;
|
9847
9683
|
};
|
9848
9684
|
|
9849
|
-
var uncurryThis
|
9685
|
+
var uncurryThis = functionUncurryThis;
|
9850
9686
|
var aCallable = aCallable$2;
|
9851
9687
|
|
9852
9688
|
var functionUncurryThisAccessor = function (object, key, method) {
|
9853
9689
|
try {
|
9854
9690
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
9855
|
-
return uncurryThis
|
9691
|
+
return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
|
9856
9692
|
} catch (error) { /* empty */ }
|
9857
9693
|
};
|
9858
9694
|
|
9859
|
-
var isCallable$
|
9695
|
+
var isCallable$1 = isCallable$e;
|
9860
9696
|
|
9861
|
-
var $String
|
9697
|
+
var $String = String;
|
9862
9698
|
var $TypeError = TypeError;
|
9863
9699
|
|
9864
9700
|
var aPossiblePrototype$1 = function (argument) {
|
9865
|
-
if (typeof argument == 'object' || isCallable$
|
9866
|
-
throw $TypeError("Can't set " + $String
|
9701
|
+
if (typeof argument == 'object' || isCallable$1(argument)) return argument;
|
9702
|
+
throw $TypeError("Can't set " + $String(argument) + ' as a prototype');
|
9867
9703
|
};
|
9868
9704
|
|
9869
9705
|
/* eslint-disable no-proto -- safe */
|
@@ -9894,17 +9730,17 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
9894
9730
|
};
|
9895
9731
|
}() : undefined);
|
9896
9732
|
|
9897
|
-
var
|
9733
|
+
var $ = _export;
|
9898
9734
|
var call = functionCall;
|
9899
9735
|
var FunctionName = functionName;
|
9900
|
-
var isCallable
|
9736
|
+
var isCallable = isCallable$e;
|
9901
9737
|
var createIteratorConstructor = iteratorCreateConstructor;
|
9902
9738
|
var getPrototypeOf = objectGetPrototypeOf;
|
9903
9739
|
var setPrototypeOf = objectSetPrototypeOf;
|
9904
9740
|
var setToStringTag = setToStringTag$2;
|
9905
9741
|
var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
|
9906
9742
|
var defineBuiltIn = defineBuiltIn$3;
|
9907
|
-
var wellKnownSymbol$
|
9743
|
+
var wellKnownSymbol$1 = wellKnownSymbol$6;
|
9908
9744
|
var Iterators$1 = iterators;
|
9909
9745
|
var IteratorsCore = iteratorsCore;
|
9910
9746
|
|
@@ -9912,7 +9748,7 @@ var PROPER_FUNCTION_NAME = FunctionName.PROPER;
|
|
9912
9748
|
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
|
9913
9749
|
var IteratorPrototype = IteratorsCore.IteratorPrototype;
|
9914
9750
|
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
9915
|
-
var ITERATOR$1 = wellKnownSymbol$
|
9751
|
+
var ITERATOR$1 = wellKnownSymbol$1('iterator');
|
9916
9752
|
var KEYS = 'keys';
|
9917
9753
|
var VALUES = 'values';
|
9918
9754
|
var ENTRIES = 'entries';
|
@@ -9949,7 +9785,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
9949
9785
|
if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
9950
9786
|
if (setPrototypeOf) {
|
9951
9787
|
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
|
9952
|
-
} else if (!isCallable
|
9788
|
+
} else if (!isCallable(CurrentIteratorPrototype[ITERATOR$1])) {
|
9953
9789
|
defineBuiltIn(CurrentIteratorPrototype, ITERATOR$1, returnThis);
|
9954
9790
|
}
|
9955
9791
|
}
|
@@ -9979,7 +9815,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
9979
9815
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
9980
9816
|
defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
|
9981
9817
|
}
|
9982
|
-
} else
|
9818
|
+
} else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
9983
9819
|
}
|
9984
9820
|
|
9985
9821
|
// define iterator
|
@@ -10001,10 +9837,10 @@ var toIndexedObject = toIndexedObject$5;
|
|
10001
9837
|
var addToUnscopables = addToUnscopables$1;
|
10002
9838
|
var Iterators = iterators;
|
10003
9839
|
var InternalStateModule = internalState;
|
10004
|
-
var defineProperty
|
9840
|
+
var defineProperty = objectDefineProperty.f;
|
10005
9841
|
var defineIterator = iteratorDefine;
|
10006
9842
|
var createIterResultObject = createIterResultObject$1;
|
10007
|
-
var DESCRIPTORS
|
9843
|
+
var DESCRIPTORS = descriptors;
|
10008
9844
|
|
10009
9845
|
var ARRAY_ITERATOR = 'Array Iterator';
|
10010
9846
|
var setInternalState = InternalStateModule.set;
|
@@ -10054,8 +9890,8 @@ addToUnscopables('values');
|
|
10054
9890
|
addToUnscopables('entries');
|
10055
9891
|
|
10056
9892
|
// V8 ~ Chrome 45- bug
|
10057
|
-
if (DESCRIPTORS
|
10058
|
-
defineProperty
|
9893
|
+
if (DESCRIPTORS && values$1.name !== 'values') try {
|
9894
|
+
defineProperty(values$1, 'name', { value: 'values' });
|
10059
9895
|
} catch (error) { /* empty */ }
|
10060
9896
|
|
10061
9897
|
// iterable DOM collections
|
@@ -10102,15 +9938,15 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
|
|
10102
9938
|
|
10103
9939
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
10104
9940
|
|
10105
|
-
var global$
|
9941
|
+
var global$1 = global$c;
|
10106
9942
|
var DOMIterables = domIterables;
|
10107
9943
|
var DOMTokenListPrototype = domTokenListPrototype;
|
10108
9944
|
var ArrayIteratorMethods = es_array_iterator;
|
10109
9945
|
var createNonEnumerableProperty = createNonEnumerableProperty$4;
|
10110
|
-
var wellKnownSymbol
|
9946
|
+
var wellKnownSymbol = wellKnownSymbol$6;
|
10111
9947
|
|
10112
|
-
var ITERATOR = wellKnownSymbol
|
10113
|
-
var TO_STRING_TAG
|
9948
|
+
var ITERATOR = wellKnownSymbol('iterator');
|
9949
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
10114
9950
|
var ArrayValues = ArrayIteratorMethods.values;
|
10115
9951
|
|
10116
9952
|
var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
@@ -10121,8 +9957,8 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
10121
9957
|
} catch (error) {
|
10122
9958
|
CollectionPrototype[ITERATOR] = ArrayValues;
|
10123
9959
|
}
|
10124
|
-
if (!CollectionPrototype[TO_STRING_TAG
|
10125
|
-
createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG
|
9960
|
+
if (!CollectionPrototype[TO_STRING_TAG]) {
|
9961
|
+
createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
|
10126
9962
|
}
|
10127
9963
|
if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
|
10128
9964
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
@@ -10136,125 +9972,11 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
10136
9972
|
};
|
10137
9973
|
|
10138
9974
|
for (var COLLECTION_NAME in DOMIterables) {
|
10139
|
-
handlePrototype(global$
|
9975
|
+
handlePrototype(global$1[COLLECTION_NAME] && global$1[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
10140
9976
|
}
|
10141
9977
|
|
10142
9978
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
10143
9979
|
|
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
|
-
});
|
10256
|
-
}
|
10257
|
-
|
10258
9980
|
function _setPrototypeOf(o, p) {
|
10259
9981
|
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
10260
9982
|
o.__proto__ = p;
|
@@ -12893,19 +12615,25 @@ var Stack$1 = Stack;
|
|
12893
12615
|
const ToastContent = styled$1(Stack$1)(({
|
12894
12616
|
theme
|
12895
12617
|
}) => ({
|
12618
|
+
position: "fixed",
|
12896
12619
|
marginBottom: theme.spacing(2),
|
12897
|
-
zIndex:
|
12898
|
-
boxShadow:
|
12899
|
-
|
12900
|
-
|
12901
|
-
|
12902
|
-
|
12903
|
-
|
12904
|
-
|
12905
|
-
|
12906
|
-
|
12907
|
-
|
12908
|
-
|
12620
|
+
zIndex: 1400,
|
12621
|
+
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)",
|
12622
|
+
"&.end": {
|
12623
|
+
top: 16,
|
12624
|
+
right: 16,
|
12625
|
+
left: "auto"
|
12626
|
+
},
|
12627
|
+
"&.center": {
|
12628
|
+
top: 16,
|
12629
|
+
left: "50%",
|
12630
|
+
right: "auto",
|
12631
|
+
transform: "translateX(-50%)"
|
12632
|
+
},
|
12633
|
+
"&.start": {
|
12634
|
+
top: 16,
|
12635
|
+
left: 16,
|
12636
|
+
right: "auto"
|
12909
12637
|
}
|
12910
12638
|
}));
|
12911
12639
|
const ContentBox = styled$1(Box$1)(({
|
@@ -12913,19 +12641,19 @@ const ContentBox = styled$1(Box$1)(({
|
|
12913
12641
|
}) => ({
|
12914
12642
|
padding: theme.spacing(1.5),
|
12915
12643
|
gap: theme.spacing(1.5),
|
12916
|
-
display:
|
12917
|
-
alignItems:
|
12918
|
-
|
12919
|
-
backgroundColor:
|
12644
|
+
display: "flex",
|
12645
|
+
alignItems: "center",
|
12646
|
+
"&.color-error": {
|
12647
|
+
backgroundColor: "#FEEBEE"
|
12920
12648
|
},
|
12921
|
-
|
12922
|
-
backgroundColor:
|
12649
|
+
"&.color-info": {
|
12650
|
+
backgroundColor: "#E1F5FE"
|
12923
12651
|
},
|
12924
|
-
|
12925
|
-
backgroundColor:
|
12652
|
+
"&.color-warning": {
|
12653
|
+
backgroundColor: "#FFF3E0"
|
12926
12654
|
},
|
12927
|
-
|
12928
|
-
backgroundColor:
|
12655
|
+
"&.color-success": {
|
12656
|
+
backgroundColor: "#E8F5E9"
|
12929
12657
|
}
|
12930
12658
|
}));
|
12931
12659
|
const RippleIcon = styled$1(Stack$1)(({
|
@@ -12935,31 +12663,33 @@ const RippleIcon = styled$1(Stack$1)(({
|
|
12935
12663
|
gap: theme.spacing(1),
|
12936
12664
|
height: 20,
|
12937
12665
|
borderRadius: 50,
|
12938
|
-
|
12939
|
-
backgroundColor:
|
12666
|
+
"&.ripple-error": {
|
12667
|
+
backgroundColor: "#D143431F"
|
12940
12668
|
},
|
12941
|
-
|
12942
|
-
backgroundColor:
|
12669
|
+
"&.ripple-info": {
|
12670
|
+
backgroundColor: "#2D9FC51F"
|
12943
12671
|
},
|
12944
|
-
|
12945
|
-
backgroundColor:
|
12672
|
+
"&.ripple-warning": {
|
12673
|
+
backgroundColor: "#FB85001F"
|
12946
12674
|
},
|
12947
|
-
|
12948
|
-
backgroundColor:
|
12675
|
+
"&.ripple-success": {
|
12676
|
+
backgroundColor: "#8FC93A1F"
|
12949
12677
|
}
|
12950
12678
|
}));
|
12951
|
-
const ContentIcon = styled$1(Stack$1)((
|
12952
|
-
|
12953
|
-
|
12679
|
+
const ContentIcon = styled$1(Stack$1)(({
|
12680
|
+
theme
|
12681
|
+
}) => ({
|
12682
|
+
"&.icon-color.color-info": {
|
12683
|
+
color: theme.palette.info.main
|
12954
12684
|
},
|
12955
|
-
|
12956
|
-
color:
|
12685
|
+
"&.icon-color.color-error": {
|
12686
|
+
color: theme.palette.error.main
|
12957
12687
|
},
|
12958
|
-
|
12959
|
-
color:
|
12688
|
+
"&.icon-color.color-warning": {
|
12689
|
+
color: theme.palette.warning.main
|
12960
12690
|
},
|
12961
|
-
|
12962
|
-
color:
|
12691
|
+
"&.icon-color.color-success": {
|
12692
|
+
color: theme.palette.success.main
|
12963
12693
|
}
|
12964
12694
|
}));
|
12965
12695
|
const ToastNotification = toast => {
|
@@ -12973,20 +12703,14 @@ const ToastNotification = toast => {
|
|
12973
12703
|
warning: /*#__PURE__*/React__default.createElement(WarningRounded, null),
|
12974
12704
|
info: /*#__PURE__*/React__default.createElement(InfoRounded, null)
|
12975
12705
|
};
|
12976
|
-
const ToastIcon = IconMap[toast.type ||
|
12706
|
+
const ToastIcon = IconMap[toast.type || "info"];
|
12977
12707
|
const colorMap = {
|
12978
|
-
success:
|
12979
|
-
error:
|
12980
|
-
warning:
|
12981
|
-
info:
|
12982
|
-
};
|
12983
|
-
const colors = colorMap[toast.type || 'info'];
|
12984
|
-
const toastPosition = {
|
12985
|
-
center: 'center',
|
12986
|
-
right: 'flex-end',
|
12987
|
-
left: 'flex-start'
|
12708
|
+
success: "success",
|
12709
|
+
error: "error",
|
12710
|
+
warning: "warning",
|
12711
|
+
info: "info"
|
12988
12712
|
};
|
12989
|
-
const
|
12713
|
+
const colors = colorMap[toast.type || "info"];
|
12990
12714
|
const close = () => {
|
12991
12715
|
setOpenToast(false);
|
12992
12716
|
};
|
@@ -13008,20 +12732,12 @@ const ToastNotification = toast => {
|
|
13008
12732
|
clearInterval(interval || toast.time);
|
13009
12733
|
};
|
13010
12734
|
}, [timeProgress, toast.time]);
|
13011
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, openToast && /*#__PURE__*/React__default.createElement(
|
13012
|
-
|
13013
|
-
}, /*#__PURE__*/React__default.createElement(Stack$1, {
|
13014
|
-
alignItems: position || 'right'
|
13015
|
-
}, /*#__PURE__*/React__default.createElement(ToastContent, {
|
13016
|
-
width: 370,
|
13017
|
-
role: "toast",
|
13018
|
-
className: `${position}`
|
13019
|
-
}, /*#__PURE__*/React__default.createElement(ContentBox, {
|
13020
|
-
className: `color-${toast.type || 'info'}`
|
12735
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, openToast && /*#__PURE__*/React__default.createElement(ToastContent, null, /*#__PURE__*/React__default.createElement(Stack$1, null, /*#__PURE__*/React__default.createElement(ContentBox, {
|
12736
|
+
className: `color-${toast.type || "info"}`
|
13021
12737
|
}, toast && /*#__PURE__*/React__default.createElement(RippleIcon, {
|
13022
|
-
className: `ripple-${toast.type ||
|
12738
|
+
className: `ripple-${toast.type || "info"}`
|
13023
12739
|
}, /*#__PURE__*/React__default.createElement(ContentIcon, {
|
13024
|
-
className: `icon-color color-${toast.type ||
|
12740
|
+
className: `icon-color color-${toast.type || "info"}`
|
13025
12741
|
}, ToastIcon)), /*#__PURE__*/React__default.createElement(Divider$1, {
|
13026
12742
|
orientation: "vertical",
|
13027
12743
|
flexItem: true
|
@@ -13040,26 +12756,27 @@ const ToastNotification = toast => {
|
|
13040
12756
|
"aria-label": "delete",
|
13041
12757
|
onClick: close
|
13042
12758
|
}, /*#__PURE__*/React__default.createElement(Close, null))), /*#__PURE__*/React__default.createElement(Stack$1, {
|
13043
|
-
gap: "4px"
|
12759
|
+
gap: "4px",
|
12760
|
+
alignItems: "flex-start"
|
13044
12761
|
}, /*#__PURE__*/React__default.createElement(Typography$1, {
|
13045
12762
|
color: "text.primary",
|
13046
12763
|
variant: "body2"
|
13047
|
-
}, toast.
|
12764
|
+
}, toast.subtitle), !showOptions && toast.dataOpt && toast.dataOpt.length > 0 && /*#__PURE__*/React__default.createElement("ul", {
|
13048
12765
|
style: {
|
13049
12766
|
paddingLeft: 15,
|
13050
12767
|
marginBlock: 0,
|
13051
12768
|
fontSize: 11,
|
13052
|
-
color:
|
12769
|
+
color: "#101840de"
|
13053
12770
|
}
|
13054
12771
|
}, toast.dataOpt.map((element, i) => {
|
13055
12772
|
const keyElement = Object.keys(element);
|
13056
|
-
let options =
|
12773
|
+
let options = "";
|
13057
12774
|
for (let _i = 0; _i < keyElement.length; _i++) {
|
13058
12775
|
options += element[keyElement[_i]];
|
13059
12776
|
}
|
13060
12777
|
return /*#__PURE__*/React__default.createElement("li", {
|
13061
12778
|
style: {
|
13062
|
-
width:
|
12779
|
+
width: "fit-content"
|
13063
12780
|
},
|
13064
12781
|
key: i
|
13065
12782
|
}, /*#__PURE__*/React__default.createElement(Typography$1, {
|
@@ -13082,11 +12799,22 @@ const ToastNotification = toast => {
|
|
13082
12799
|
}) : /*#__PURE__*/React__default.createElement(ArrowUpward, {
|
13083
12800
|
fontSize: "small"
|
13084
12801
|
})
|
13085
|
-
}, showOptions ?
|
12802
|
+
}, showOptions ? "Ver más" : "Ver menos")))), /*#__PURE__*/React__default.createElement(LinearProgress$1, {
|
13086
12803
|
color: colors,
|
13087
12804
|
variant: "determinate",
|
13088
12805
|
value: progress
|
13089
|
-
}))))
|
13090
|
-
};
|
12806
|
+
}))));
|
12807
|
+
};
|
12808
|
+
|
12809
|
+
styled$1(Stack$1)(() => ({
|
12810
|
+
backgroundColor: "#fff",
|
12811
|
+
boxShadow: "0px 1px 3px rgba(24, 39, 75, 0.12), 0px 1px 1px -1px rgba(24, 39, 75, 0.14), 0px 2px 1px -2px rgba(24, 39, 75, 0.2)",
|
12812
|
+
zIndex: 100,
|
12813
|
+
padding: "8px 24px",
|
12814
|
+
justifyContent: "space-between",
|
12815
|
+
minHeight: 39,
|
12816
|
+
position: "fixed",
|
12817
|
+
width: "100%"
|
12818
|
+
}));
|
13091
12819
|
|
13092
12820
|
export { SincoTheme, ToastNotification };
|