@thecb/components 5.7.0-beta.1 → 5.7.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1983 -325
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1983 -325
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -30,16 +30,13 @@ function _extends() {
|
|
|
30
30
|
return _extends.apply(this, arguments);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
function
|
|
33
|
+
function _taggedTemplateLiteralLoose(strings, raw) {
|
|
34
34
|
if (!raw) {
|
|
35
35
|
raw = strings.slice(0);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
value: Object.freeze(raw)
|
|
41
|
-
}
|
|
42
|
-
}));
|
|
38
|
+
strings.raw = raw;
|
|
39
|
+
return strings;
|
|
43
40
|
}
|
|
44
41
|
|
|
45
42
|
/*! *****************************************************************************
|
|
@@ -4462,6 +4459,1129 @@ const fallbackValues = {
|
|
|
4462
4459
|
fontSize
|
|
4463
4460
|
};
|
|
4464
4461
|
|
|
4462
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
4463
|
+
|
|
4464
|
+
function createCommonjsModule(fn, module) {
|
|
4465
|
+
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
4466
|
+
}
|
|
4467
|
+
|
|
4468
|
+
var check = function (it) {
|
|
4469
|
+
return it && it.Math == Math && it;
|
|
4470
|
+
};
|
|
4471
|
+
|
|
4472
|
+
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
4473
|
+
var global_1 =
|
|
4474
|
+
// eslint-disable-next-line es/no-global-this -- safe
|
|
4475
|
+
check(typeof globalThis == 'object' && globalThis) ||
|
|
4476
|
+
check(typeof window == 'object' && window) ||
|
|
4477
|
+
// eslint-disable-next-line no-restricted-globals -- safe
|
|
4478
|
+
check(typeof self == 'object' && self) ||
|
|
4479
|
+
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
4480
|
+
// eslint-disable-next-line no-new-func -- fallback
|
|
4481
|
+
(function () { return this; })() || Function('return this')();
|
|
4482
|
+
|
|
4483
|
+
// iterable DOM collections
|
|
4484
|
+
// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
|
|
4485
|
+
var domIterables = {
|
|
4486
|
+
CSSRuleList: 0,
|
|
4487
|
+
CSSStyleDeclaration: 0,
|
|
4488
|
+
CSSValueList: 0,
|
|
4489
|
+
ClientRectList: 0,
|
|
4490
|
+
DOMRectList: 0,
|
|
4491
|
+
DOMStringList: 0,
|
|
4492
|
+
DOMTokenList: 1,
|
|
4493
|
+
DataTransferItemList: 0,
|
|
4494
|
+
FileList: 0,
|
|
4495
|
+
HTMLAllCollection: 0,
|
|
4496
|
+
HTMLCollection: 0,
|
|
4497
|
+
HTMLFormElement: 0,
|
|
4498
|
+
HTMLSelectElement: 0,
|
|
4499
|
+
MediaList: 0,
|
|
4500
|
+
MimeTypeArray: 0,
|
|
4501
|
+
NamedNodeMap: 0,
|
|
4502
|
+
NodeList: 1,
|
|
4503
|
+
PaintRequestList: 0,
|
|
4504
|
+
Plugin: 0,
|
|
4505
|
+
PluginArray: 0,
|
|
4506
|
+
SVGLengthList: 0,
|
|
4507
|
+
SVGNumberList: 0,
|
|
4508
|
+
SVGPathSegList: 0,
|
|
4509
|
+
SVGPointList: 0,
|
|
4510
|
+
SVGStringList: 0,
|
|
4511
|
+
SVGTransformList: 0,
|
|
4512
|
+
SourceBufferList: 0,
|
|
4513
|
+
StyleSheetList: 0,
|
|
4514
|
+
TextTrackCueList: 0,
|
|
4515
|
+
TextTrackList: 0,
|
|
4516
|
+
TouchList: 0
|
|
4517
|
+
};
|
|
4518
|
+
|
|
4519
|
+
// `IsCallable` abstract operation
|
|
4520
|
+
// https://tc39.es/ecma262/#sec-iscallable
|
|
4521
|
+
var isCallable = function (argument) {
|
|
4522
|
+
return typeof argument === 'function';
|
|
4523
|
+
};
|
|
4524
|
+
|
|
4525
|
+
var isObject = function (it) {
|
|
4526
|
+
return typeof it === 'object' ? it !== null : isCallable(it);
|
|
4527
|
+
};
|
|
4528
|
+
|
|
4529
|
+
var document$1 = global_1.document;
|
|
4530
|
+
// typeof document.createElement is 'object' in old IE
|
|
4531
|
+
var EXISTS = isObject(document$1) && isObject(document$1.createElement);
|
|
4532
|
+
|
|
4533
|
+
var documentCreateElement = function (it) {
|
|
4534
|
+
return EXISTS ? document$1.createElement(it) : {};
|
|
4535
|
+
};
|
|
4536
|
+
|
|
4537
|
+
// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
|
|
4538
|
+
|
|
4539
|
+
|
|
4540
|
+
var classList = documentCreateElement('span').classList;
|
|
4541
|
+
var DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype;
|
|
4542
|
+
|
|
4543
|
+
var domTokenListPrototype = DOMTokenListPrototype === Object.prototype ? undefined : DOMTokenListPrototype;
|
|
4544
|
+
|
|
4545
|
+
var fails = function (exec) {
|
|
4546
|
+
try {
|
|
4547
|
+
return !!exec();
|
|
4548
|
+
} catch (error) {
|
|
4549
|
+
return true;
|
|
4550
|
+
}
|
|
4551
|
+
};
|
|
4552
|
+
|
|
4553
|
+
var toString = {}.toString;
|
|
4554
|
+
|
|
4555
|
+
var classofRaw = function (it) {
|
|
4556
|
+
return toString.call(it).slice(8, -1);
|
|
4557
|
+
};
|
|
4558
|
+
|
|
4559
|
+
var split = ''.split;
|
|
4560
|
+
|
|
4561
|
+
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
4562
|
+
var indexedObject = fails(function () {
|
|
4563
|
+
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
4564
|
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
4565
|
+
return !Object('z').propertyIsEnumerable(0);
|
|
4566
|
+
}) ? function (it) {
|
|
4567
|
+
return classofRaw(it) == 'String' ? split.call(it, '') : Object(it);
|
|
4568
|
+
} : Object;
|
|
4569
|
+
|
|
4570
|
+
// `RequireObjectCoercible` abstract operation
|
|
4571
|
+
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
4572
|
+
var requireObjectCoercible = function (it) {
|
|
4573
|
+
if (it == undefined) throw TypeError("Can't call method on " + it);
|
|
4574
|
+
return it;
|
|
4575
|
+
};
|
|
4576
|
+
|
|
4577
|
+
// toObject with fallback for non-array-like ES3 strings
|
|
4578
|
+
|
|
4579
|
+
|
|
4580
|
+
|
|
4581
|
+
var toIndexedObject = function (it) {
|
|
4582
|
+
return indexedObject(requireObjectCoercible(it));
|
|
4583
|
+
};
|
|
4584
|
+
|
|
4585
|
+
var setGlobal = function (key, value) {
|
|
4586
|
+
try {
|
|
4587
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
4588
|
+
Object.defineProperty(global_1, key, { value: value, configurable: true, writable: true });
|
|
4589
|
+
} catch (error) {
|
|
4590
|
+
global_1[key] = value;
|
|
4591
|
+
} return value;
|
|
4592
|
+
};
|
|
4593
|
+
|
|
4594
|
+
var SHARED = '__core-js_shared__';
|
|
4595
|
+
var store = global_1[SHARED] || setGlobal(SHARED, {});
|
|
4596
|
+
|
|
4597
|
+
var sharedStore = store;
|
|
4598
|
+
|
|
4599
|
+
var shared = createCommonjsModule(function (module) {
|
|
4600
|
+
(module.exports = function (key, value) {
|
|
4601
|
+
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
|
4602
|
+
})('versions', []).push({
|
|
4603
|
+
version: '3.18.3',
|
|
4604
|
+
mode: 'global',
|
|
4605
|
+
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
|
|
4606
|
+
});
|
|
4607
|
+
});
|
|
4608
|
+
|
|
4609
|
+
// `ToObject` abstract operation
|
|
4610
|
+
// https://tc39.es/ecma262/#sec-toobject
|
|
4611
|
+
var toObject = function (argument) {
|
|
4612
|
+
return Object(requireObjectCoercible(argument));
|
|
4613
|
+
};
|
|
4614
|
+
|
|
4615
|
+
var hasOwnProperty = {}.hasOwnProperty;
|
|
4616
|
+
|
|
4617
|
+
// `HasOwnProperty` abstract operation
|
|
4618
|
+
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
4619
|
+
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
4620
|
+
return hasOwnProperty.call(toObject(it), key);
|
|
4621
|
+
};
|
|
4622
|
+
|
|
4623
|
+
var id = 0;
|
|
4624
|
+
var postfix = Math.random();
|
|
4625
|
+
|
|
4626
|
+
var uid = function (key) {
|
|
4627
|
+
return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
|
|
4628
|
+
};
|
|
4629
|
+
|
|
4630
|
+
var aFunction = function (argument) {
|
|
4631
|
+
return isCallable(argument) ? argument : undefined;
|
|
4632
|
+
};
|
|
4633
|
+
|
|
4634
|
+
var getBuiltIn = function (namespace, method) {
|
|
4635
|
+
return arguments.length < 2 ? aFunction(global_1[namespace]) : global_1[namespace] && global_1[namespace][method];
|
|
4636
|
+
};
|
|
4637
|
+
|
|
4638
|
+
var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
|
|
4639
|
+
|
|
4640
|
+
var process$1 = global_1.process;
|
|
4641
|
+
var Deno = global_1.Deno;
|
|
4642
|
+
var versions = process$1 && process$1.versions || Deno && Deno.version;
|
|
4643
|
+
var v8 = versions && versions.v8;
|
|
4644
|
+
var match, version;
|
|
4645
|
+
|
|
4646
|
+
if (v8) {
|
|
4647
|
+
match = v8.split('.');
|
|
4648
|
+
version = match[0] < 4 ? 1 : match[0] + match[1];
|
|
4649
|
+
} else if (engineUserAgent) {
|
|
4650
|
+
match = engineUserAgent.match(/Edge\/(\d+)/);
|
|
4651
|
+
if (!match || match[1] >= 74) {
|
|
4652
|
+
match = engineUserAgent.match(/Chrome\/(\d+)/);
|
|
4653
|
+
if (match) version = match[1];
|
|
4654
|
+
}
|
|
4655
|
+
}
|
|
4656
|
+
|
|
4657
|
+
var engineV8Version = version && +version;
|
|
4658
|
+
|
|
4659
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
|
4660
|
+
|
|
4661
|
+
|
|
4662
|
+
|
|
4663
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
4664
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
4665
|
+
var symbol = Symbol();
|
|
4666
|
+
// Chrome 38 Symbol has incorrect toString conversion
|
|
4667
|
+
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
4668
|
+
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
4669
|
+
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
4670
|
+
!Symbol.sham && engineV8Version && engineV8Version < 41;
|
|
4671
|
+
});
|
|
4672
|
+
|
|
4673
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
|
4674
|
+
|
|
4675
|
+
|
|
4676
|
+
var useSymbolAsUid = nativeSymbol
|
|
4677
|
+
&& !Symbol.sham
|
|
4678
|
+
&& typeof Symbol.iterator == 'symbol';
|
|
4679
|
+
|
|
4680
|
+
var WellKnownSymbolsStore = shared('wks');
|
|
4681
|
+
var Symbol$1 = global_1.Symbol;
|
|
4682
|
+
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
|
4683
|
+
|
|
4684
|
+
var wellKnownSymbol = function (name) {
|
|
4685
|
+
if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
|
|
4686
|
+
if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
|
|
4687
|
+
WellKnownSymbolsStore[name] = Symbol$1[name];
|
|
4688
|
+
} else {
|
|
4689
|
+
WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
|
|
4690
|
+
}
|
|
4691
|
+
} return WellKnownSymbolsStore[name];
|
|
4692
|
+
};
|
|
4693
|
+
|
|
4694
|
+
// `Assert: Type(argument) is Object`
|
|
4695
|
+
var anObject = function (argument) {
|
|
4696
|
+
if (isObject(argument)) return argument;
|
|
4697
|
+
throw TypeError(String(argument) + ' is not an object');
|
|
4698
|
+
};
|
|
4699
|
+
|
|
4700
|
+
// Detect IE8's incomplete defineProperty implementation
|
|
4701
|
+
var descriptors = !fails(function () {
|
|
4702
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
4703
|
+
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
4704
|
+
});
|
|
4705
|
+
|
|
4706
|
+
// Thank's IE8 for his funny defineProperty
|
|
4707
|
+
var ie8DomDefine = !descriptors && !fails(function () {
|
|
4708
|
+
// eslint-disable-next-line es/no-object-defineproperty -- requied for testing
|
|
4709
|
+
return Object.defineProperty(documentCreateElement('div'), 'a', {
|
|
4710
|
+
get: function () { return 7; }
|
|
4711
|
+
}).a != 7;
|
|
4712
|
+
});
|
|
4713
|
+
|
|
4714
|
+
var isSymbol = useSymbolAsUid ? function (it) {
|
|
4715
|
+
return typeof it == 'symbol';
|
|
4716
|
+
} : function (it) {
|
|
4717
|
+
var $Symbol = getBuiltIn('Symbol');
|
|
4718
|
+
return isCallable($Symbol) && Object(it) instanceof $Symbol;
|
|
4719
|
+
};
|
|
4720
|
+
|
|
4721
|
+
var tryToString = function (argument) {
|
|
4722
|
+
try {
|
|
4723
|
+
return String(argument);
|
|
4724
|
+
} catch (error) {
|
|
4725
|
+
return 'Object';
|
|
4726
|
+
}
|
|
4727
|
+
};
|
|
4728
|
+
|
|
4729
|
+
// `Assert: IsCallable(argument) is true`
|
|
4730
|
+
var aCallable = function (argument) {
|
|
4731
|
+
if (isCallable(argument)) return argument;
|
|
4732
|
+
throw TypeError(tryToString(argument) + ' is not a function');
|
|
4733
|
+
};
|
|
4734
|
+
|
|
4735
|
+
// `GetMethod` abstract operation
|
|
4736
|
+
// https://tc39.es/ecma262/#sec-getmethod
|
|
4737
|
+
var getMethod = function (V, P) {
|
|
4738
|
+
var func = V[P];
|
|
4739
|
+
return func == null ? undefined : aCallable(func);
|
|
4740
|
+
};
|
|
4741
|
+
|
|
4742
|
+
// `OrdinaryToPrimitive` abstract operation
|
|
4743
|
+
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
4744
|
+
var ordinaryToPrimitive = function (input, pref) {
|
|
4745
|
+
var fn, val;
|
|
4746
|
+
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = fn.call(input))) return val;
|
|
4747
|
+
if (isCallable(fn = input.valueOf) && !isObject(val = fn.call(input))) return val;
|
|
4748
|
+
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = fn.call(input))) return val;
|
|
4749
|
+
throw TypeError("Can't convert object to primitive value");
|
|
4750
|
+
};
|
|
4751
|
+
|
|
4752
|
+
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
|
4753
|
+
|
|
4754
|
+
// `ToPrimitive` abstract operation
|
|
4755
|
+
// https://tc39.es/ecma262/#sec-toprimitive
|
|
4756
|
+
var toPrimitive = function (input, pref) {
|
|
4757
|
+
if (!isObject(input) || isSymbol(input)) return input;
|
|
4758
|
+
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
|
4759
|
+
var result;
|
|
4760
|
+
if (exoticToPrim) {
|
|
4761
|
+
if (pref === undefined) pref = 'default';
|
|
4762
|
+
result = exoticToPrim.call(input, pref);
|
|
4763
|
+
if (!isObject(result) || isSymbol(result)) return result;
|
|
4764
|
+
throw TypeError("Can't convert object to primitive value");
|
|
4765
|
+
}
|
|
4766
|
+
if (pref === undefined) pref = 'number';
|
|
4767
|
+
return ordinaryToPrimitive(input, pref);
|
|
4768
|
+
};
|
|
4769
|
+
|
|
4770
|
+
// `ToPropertyKey` abstract operation
|
|
4771
|
+
// https://tc39.es/ecma262/#sec-topropertykey
|
|
4772
|
+
var toPropertyKey = function (argument) {
|
|
4773
|
+
var key = toPrimitive(argument, 'string');
|
|
4774
|
+
return isSymbol(key) ? key : String(key);
|
|
4775
|
+
};
|
|
4776
|
+
|
|
4777
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
4778
|
+
var $defineProperty = Object.defineProperty;
|
|
4779
|
+
|
|
4780
|
+
// `Object.defineProperty` method
|
|
4781
|
+
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
4782
|
+
var f = descriptors ? $defineProperty : function defineProperty(O, P, Attributes) {
|
|
4783
|
+
anObject(O);
|
|
4784
|
+
P = toPropertyKey(P);
|
|
4785
|
+
anObject(Attributes);
|
|
4786
|
+
if (ie8DomDefine) try {
|
|
4787
|
+
return $defineProperty(O, P, Attributes);
|
|
4788
|
+
} catch (error) { /* empty */ }
|
|
4789
|
+
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
|
|
4790
|
+
if ('value' in Attributes) O[P] = Attributes.value;
|
|
4791
|
+
return O;
|
|
4792
|
+
};
|
|
4793
|
+
|
|
4794
|
+
var objectDefineProperty = {
|
|
4795
|
+
f: f
|
|
4796
|
+
};
|
|
4797
|
+
|
|
4798
|
+
var ceil = Math.ceil;
|
|
4799
|
+
var floor = Math.floor;
|
|
4800
|
+
|
|
4801
|
+
// `ToIntegerOrInfinity` abstract operation
|
|
4802
|
+
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
4803
|
+
var toIntegerOrInfinity = function (argument) {
|
|
4804
|
+
var number = +argument;
|
|
4805
|
+
// eslint-disable-next-line no-self-compare -- safe
|
|
4806
|
+
return number !== number || number === 0 ? 0 : (number > 0 ? floor : ceil)(number);
|
|
4807
|
+
};
|
|
4808
|
+
|
|
4809
|
+
var max = Math.max;
|
|
4810
|
+
var min = Math.min;
|
|
4811
|
+
|
|
4812
|
+
// Helper for a popular repeating case of the spec:
|
|
4813
|
+
// Let integer be ? ToInteger(index).
|
|
4814
|
+
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
4815
|
+
var toAbsoluteIndex = function (index, length) {
|
|
4816
|
+
var integer = toIntegerOrInfinity(index);
|
|
4817
|
+
return integer < 0 ? max(integer + length, 0) : min(integer, length);
|
|
4818
|
+
};
|
|
4819
|
+
|
|
4820
|
+
var min$1 = Math.min;
|
|
4821
|
+
|
|
4822
|
+
// `ToLength` abstract operation
|
|
4823
|
+
// https://tc39.es/ecma262/#sec-tolength
|
|
4824
|
+
var toLength = function (argument) {
|
|
4825
|
+
return argument > 0 ? min$1(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
4826
|
+
};
|
|
4827
|
+
|
|
4828
|
+
// `LengthOfArrayLike` abstract operation
|
|
4829
|
+
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
4830
|
+
var lengthOfArrayLike = function (obj) {
|
|
4831
|
+
return toLength(obj.length);
|
|
4832
|
+
};
|
|
4833
|
+
|
|
4834
|
+
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
4835
|
+
var createMethod = function (IS_INCLUDES) {
|
|
4836
|
+
return function ($this, el, fromIndex) {
|
|
4837
|
+
var O = toIndexedObject($this);
|
|
4838
|
+
var length = lengthOfArrayLike(O);
|
|
4839
|
+
var index = toAbsoluteIndex(fromIndex, length);
|
|
4840
|
+
var value;
|
|
4841
|
+
// Array#includes uses SameValueZero equality algorithm
|
|
4842
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
4843
|
+
if (IS_INCLUDES && el != el) while (length > index) {
|
|
4844
|
+
value = O[index++];
|
|
4845
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
4846
|
+
if (value != value) return true;
|
|
4847
|
+
// Array#indexOf ignores holes, Array#includes - not
|
|
4848
|
+
} else for (;length > index; index++) {
|
|
4849
|
+
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
4850
|
+
} return !IS_INCLUDES && -1;
|
|
4851
|
+
};
|
|
4852
|
+
};
|
|
4853
|
+
|
|
4854
|
+
var arrayIncludes = {
|
|
4855
|
+
// `Array.prototype.includes` method
|
|
4856
|
+
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
4857
|
+
includes: createMethod(true),
|
|
4858
|
+
// `Array.prototype.indexOf` method
|
|
4859
|
+
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
4860
|
+
indexOf: createMethod(false)
|
|
4861
|
+
};
|
|
4862
|
+
|
|
4863
|
+
var hiddenKeys = {};
|
|
4864
|
+
|
|
4865
|
+
var indexOf = arrayIncludes.indexOf;
|
|
4866
|
+
|
|
4867
|
+
|
|
4868
|
+
var objectKeysInternal = function (object, names) {
|
|
4869
|
+
var O = toIndexedObject(object);
|
|
4870
|
+
var i = 0;
|
|
4871
|
+
var result = [];
|
|
4872
|
+
var key;
|
|
4873
|
+
for (key in O) !hasOwnProperty_1(hiddenKeys, key) && hasOwnProperty_1(O, key) && result.push(key);
|
|
4874
|
+
// Don't enum bug & hidden keys
|
|
4875
|
+
while (names.length > i) if (hasOwnProperty_1(O, key = names[i++])) {
|
|
4876
|
+
~indexOf(result, key) || result.push(key);
|
|
4877
|
+
}
|
|
4878
|
+
return result;
|
|
4879
|
+
};
|
|
4880
|
+
|
|
4881
|
+
// IE8- don't enum bug keys
|
|
4882
|
+
var enumBugKeys = [
|
|
4883
|
+
'constructor',
|
|
4884
|
+
'hasOwnProperty',
|
|
4885
|
+
'isPrototypeOf',
|
|
4886
|
+
'propertyIsEnumerable',
|
|
4887
|
+
'toLocaleString',
|
|
4888
|
+
'toString',
|
|
4889
|
+
'valueOf'
|
|
4890
|
+
];
|
|
4891
|
+
|
|
4892
|
+
// `Object.keys` method
|
|
4893
|
+
// https://tc39.es/ecma262/#sec-object.keys
|
|
4894
|
+
// eslint-disable-next-line es/no-object-keys -- safe
|
|
4895
|
+
var objectKeys = Object.keys || function keys(O) {
|
|
4896
|
+
return objectKeysInternal(O, enumBugKeys);
|
|
4897
|
+
};
|
|
4898
|
+
|
|
4899
|
+
// `Object.defineProperties` method
|
|
4900
|
+
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
4901
|
+
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
4902
|
+
var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
4903
|
+
anObject(O);
|
|
4904
|
+
var keys = objectKeys(Properties);
|
|
4905
|
+
var length = keys.length;
|
|
4906
|
+
var index = 0;
|
|
4907
|
+
var key;
|
|
4908
|
+
while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]);
|
|
4909
|
+
return O;
|
|
4910
|
+
};
|
|
4911
|
+
|
|
4912
|
+
var html = getBuiltIn('document', 'documentElement');
|
|
4913
|
+
|
|
4914
|
+
var keys = shared('keys');
|
|
4915
|
+
|
|
4916
|
+
var sharedKey = function (key) {
|
|
4917
|
+
return keys[key] || (keys[key] = uid(key));
|
|
4918
|
+
};
|
|
4919
|
+
|
|
4920
|
+
/* global ActiveXObject -- old IE, WSH */
|
|
4921
|
+
|
|
4922
|
+
|
|
4923
|
+
|
|
4924
|
+
|
|
4925
|
+
|
|
4926
|
+
|
|
4927
|
+
|
|
4928
|
+
|
|
4929
|
+
var GT = '>';
|
|
4930
|
+
var LT = '<';
|
|
4931
|
+
var PROTOTYPE = 'prototype';
|
|
4932
|
+
var SCRIPT = 'script';
|
|
4933
|
+
var IE_PROTO = sharedKey('IE_PROTO');
|
|
4934
|
+
|
|
4935
|
+
var EmptyConstructor = function () { /* empty */ };
|
|
4936
|
+
|
|
4937
|
+
var scriptTag = function (content) {
|
|
4938
|
+
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
|
4939
|
+
};
|
|
4940
|
+
|
|
4941
|
+
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
|
4942
|
+
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
|
4943
|
+
activeXDocument.write(scriptTag(''));
|
|
4944
|
+
activeXDocument.close();
|
|
4945
|
+
var temp = activeXDocument.parentWindow.Object;
|
|
4946
|
+
activeXDocument = null; // avoid memory leak
|
|
4947
|
+
return temp;
|
|
4948
|
+
};
|
|
4949
|
+
|
|
4950
|
+
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
4951
|
+
var NullProtoObjectViaIFrame = function () {
|
|
4952
|
+
// Thrash, waste and sodomy: IE GC bug
|
|
4953
|
+
var iframe = documentCreateElement('iframe');
|
|
4954
|
+
var JS = 'java' + SCRIPT + ':';
|
|
4955
|
+
var iframeDocument;
|
|
4956
|
+
iframe.style.display = 'none';
|
|
4957
|
+
html.appendChild(iframe);
|
|
4958
|
+
// https://github.com/zloirock/core-js/issues/475
|
|
4959
|
+
iframe.src = String(JS);
|
|
4960
|
+
iframeDocument = iframe.contentWindow.document;
|
|
4961
|
+
iframeDocument.open();
|
|
4962
|
+
iframeDocument.write(scriptTag('document.F=Object'));
|
|
4963
|
+
iframeDocument.close();
|
|
4964
|
+
return iframeDocument.F;
|
|
4965
|
+
};
|
|
4966
|
+
|
|
4967
|
+
// Check for document.domain and active x support
|
|
4968
|
+
// No need to use active x approach when document.domain is not set
|
|
4969
|
+
// see https://github.com/es-shims/es5-shim/issues/150
|
|
4970
|
+
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
|
4971
|
+
// avoid IE GC bug
|
|
4972
|
+
var activeXDocument;
|
|
4973
|
+
var NullProtoObject = function () {
|
|
4974
|
+
try {
|
|
4975
|
+
activeXDocument = new ActiveXObject('htmlfile');
|
|
4976
|
+
} catch (error) { /* ignore */ }
|
|
4977
|
+
NullProtoObject = typeof document != 'undefined'
|
|
4978
|
+
? document.domain && activeXDocument
|
|
4979
|
+
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
|
4980
|
+
: NullProtoObjectViaIFrame()
|
|
4981
|
+
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
|
4982
|
+
var length = enumBugKeys.length;
|
|
4983
|
+
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
|
4984
|
+
return NullProtoObject();
|
|
4985
|
+
};
|
|
4986
|
+
|
|
4987
|
+
hiddenKeys[IE_PROTO] = true;
|
|
4988
|
+
|
|
4989
|
+
// `Object.create` method
|
|
4990
|
+
// https://tc39.es/ecma262/#sec-object.create
|
|
4991
|
+
var objectCreate = Object.create || function create(O, Properties) {
|
|
4992
|
+
var result;
|
|
4993
|
+
if (O !== null) {
|
|
4994
|
+
EmptyConstructor[PROTOTYPE] = anObject(O);
|
|
4995
|
+
result = new EmptyConstructor();
|
|
4996
|
+
EmptyConstructor[PROTOTYPE] = null;
|
|
4997
|
+
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
4998
|
+
result[IE_PROTO] = O;
|
|
4999
|
+
} else result = NullProtoObject();
|
|
5000
|
+
return Properties === undefined ? result : objectDefineProperties(result, Properties);
|
|
5001
|
+
};
|
|
5002
|
+
|
|
5003
|
+
var UNSCOPABLES = wellKnownSymbol('unscopables');
|
|
5004
|
+
var ArrayPrototype = Array.prototype;
|
|
5005
|
+
|
|
5006
|
+
// Array.prototype[@@unscopables]
|
|
5007
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
5008
|
+
if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
|
5009
|
+
objectDefineProperty.f(ArrayPrototype, UNSCOPABLES, {
|
|
5010
|
+
configurable: true,
|
|
5011
|
+
value: objectCreate(null)
|
|
5012
|
+
});
|
|
5013
|
+
}
|
|
5014
|
+
|
|
5015
|
+
// add a key to Array.prototype[@@unscopables]
|
|
5016
|
+
var addToUnscopables = function (key) {
|
|
5017
|
+
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
5018
|
+
};
|
|
5019
|
+
|
|
5020
|
+
var functionToString = Function.toString;
|
|
5021
|
+
|
|
5022
|
+
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
5023
|
+
if (!isCallable(sharedStore.inspectSource)) {
|
|
5024
|
+
sharedStore.inspectSource = function (it) {
|
|
5025
|
+
return functionToString.call(it);
|
|
5026
|
+
};
|
|
5027
|
+
}
|
|
5028
|
+
|
|
5029
|
+
var inspectSource = sharedStore.inspectSource;
|
|
5030
|
+
|
|
5031
|
+
var WeakMap$1 = global_1.WeakMap;
|
|
5032
|
+
|
|
5033
|
+
var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
|
|
5034
|
+
|
|
5035
|
+
var createPropertyDescriptor = function (bitmap, value) {
|
|
5036
|
+
return {
|
|
5037
|
+
enumerable: !(bitmap & 1),
|
|
5038
|
+
configurable: !(bitmap & 2),
|
|
5039
|
+
writable: !(bitmap & 4),
|
|
5040
|
+
value: value
|
|
5041
|
+
};
|
|
5042
|
+
};
|
|
5043
|
+
|
|
5044
|
+
var createNonEnumerableProperty = descriptors ? function (object, key, value) {
|
|
5045
|
+
return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));
|
|
5046
|
+
} : function (object, key, value) {
|
|
5047
|
+
object[key] = value;
|
|
5048
|
+
return object;
|
|
5049
|
+
};
|
|
5050
|
+
|
|
5051
|
+
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
5052
|
+
var WeakMap$2 = global_1.WeakMap;
|
|
5053
|
+
var set, get, has;
|
|
5054
|
+
|
|
5055
|
+
var enforce = function (it) {
|
|
5056
|
+
return has(it) ? get(it) : set(it, {});
|
|
5057
|
+
};
|
|
5058
|
+
|
|
5059
|
+
var getterFor = function (TYPE) {
|
|
5060
|
+
return function (it) {
|
|
5061
|
+
var state;
|
|
5062
|
+
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
|
5063
|
+
throw TypeError('Incompatible receiver, ' + TYPE + ' required');
|
|
5064
|
+
} return state;
|
|
5065
|
+
};
|
|
5066
|
+
};
|
|
5067
|
+
|
|
5068
|
+
if (nativeWeakMap || sharedStore.state) {
|
|
5069
|
+
var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$2());
|
|
5070
|
+
var wmget = store$1.get;
|
|
5071
|
+
var wmhas = store$1.has;
|
|
5072
|
+
var wmset = store$1.set;
|
|
5073
|
+
set = function (it, metadata) {
|
|
5074
|
+
if (wmhas.call(store$1, it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
|
|
5075
|
+
metadata.facade = it;
|
|
5076
|
+
wmset.call(store$1, it, metadata);
|
|
5077
|
+
return metadata;
|
|
5078
|
+
};
|
|
5079
|
+
get = function (it) {
|
|
5080
|
+
return wmget.call(store$1, it) || {};
|
|
5081
|
+
};
|
|
5082
|
+
has = function (it) {
|
|
5083
|
+
return wmhas.call(store$1, it);
|
|
5084
|
+
};
|
|
5085
|
+
} else {
|
|
5086
|
+
var STATE = sharedKey('state');
|
|
5087
|
+
hiddenKeys[STATE] = true;
|
|
5088
|
+
set = function (it, metadata) {
|
|
5089
|
+
if (hasOwnProperty_1(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
|
|
5090
|
+
metadata.facade = it;
|
|
5091
|
+
createNonEnumerableProperty(it, STATE, metadata);
|
|
5092
|
+
return metadata;
|
|
5093
|
+
};
|
|
5094
|
+
get = function (it) {
|
|
5095
|
+
return hasOwnProperty_1(it, STATE) ? it[STATE] : {};
|
|
5096
|
+
};
|
|
5097
|
+
has = function (it) {
|
|
5098
|
+
return hasOwnProperty_1(it, STATE);
|
|
5099
|
+
};
|
|
5100
|
+
}
|
|
5101
|
+
|
|
5102
|
+
var internalState = {
|
|
5103
|
+
set: set,
|
|
5104
|
+
get: get,
|
|
5105
|
+
has: has,
|
|
5106
|
+
enforce: enforce,
|
|
5107
|
+
getterFor: getterFor
|
|
5108
|
+
};
|
|
5109
|
+
|
|
5110
|
+
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
5111
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
5112
|
+
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
5113
|
+
|
|
5114
|
+
// Nashorn ~ JDK8 bug
|
|
5115
|
+
var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
5116
|
+
|
|
5117
|
+
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
5118
|
+
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
5119
|
+
var f$1 = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
5120
|
+
var descriptor = getOwnPropertyDescriptor(this, V);
|
|
5121
|
+
return !!descriptor && descriptor.enumerable;
|
|
5122
|
+
} : $propertyIsEnumerable;
|
|
5123
|
+
|
|
5124
|
+
var objectPropertyIsEnumerable = {
|
|
5125
|
+
f: f$1
|
|
5126
|
+
};
|
|
5127
|
+
|
|
5128
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
5129
|
+
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
5130
|
+
|
|
5131
|
+
// `Object.getOwnPropertyDescriptor` method
|
|
5132
|
+
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
5133
|
+
var f$2 = descriptors ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
|
5134
|
+
O = toIndexedObject(O);
|
|
5135
|
+
P = toPropertyKey(P);
|
|
5136
|
+
if (ie8DomDefine) try {
|
|
5137
|
+
return $getOwnPropertyDescriptor(O, P);
|
|
5138
|
+
} catch (error) { /* empty */ }
|
|
5139
|
+
if (hasOwnProperty_1(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
|
|
5140
|
+
};
|
|
5141
|
+
|
|
5142
|
+
var objectGetOwnPropertyDescriptor = {
|
|
5143
|
+
f: f$2
|
|
5144
|
+
};
|
|
5145
|
+
|
|
5146
|
+
var FunctionPrototype = Function.prototype;
|
|
5147
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
5148
|
+
var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
|
|
5149
|
+
|
|
5150
|
+
var EXISTS$1 = hasOwnProperty_1(FunctionPrototype, 'name');
|
|
5151
|
+
// additional protection from minified / mangled / dropped function names
|
|
5152
|
+
var PROPER = EXISTS$1 && (function something() { /* empty */ }).name === 'something';
|
|
5153
|
+
var CONFIGURABLE = EXISTS$1 && (!descriptors || (descriptors && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
5154
|
+
|
|
5155
|
+
var functionName = {
|
|
5156
|
+
EXISTS: EXISTS$1,
|
|
5157
|
+
PROPER: PROPER,
|
|
5158
|
+
CONFIGURABLE: CONFIGURABLE
|
|
5159
|
+
};
|
|
5160
|
+
|
|
5161
|
+
var redefine = createCommonjsModule(function (module) {
|
|
5162
|
+
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
5163
|
+
|
|
5164
|
+
var getInternalState = internalState.get;
|
|
5165
|
+
var enforceInternalState = internalState.enforce;
|
|
5166
|
+
var TEMPLATE = String(String).split('String');
|
|
5167
|
+
|
|
5168
|
+
(module.exports = function (O, key, value, options) {
|
|
5169
|
+
var unsafe = options ? !!options.unsafe : false;
|
|
5170
|
+
var simple = options ? !!options.enumerable : false;
|
|
5171
|
+
var noTargetGet = options ? !!options.noTargetGet : false;
|
|
5172
|
+
var name = options && options.name !== undefined ? options.name : key;
|
|
5173
|
+
var state;
|
|
5174
|
+
if (isCallable(value)) {
|
|
5175
|
+
if (String(name).slice(0, 7) === 'Symbol(') {
|
|
5176
|
+
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
5177
|
+
}
|
|
5178
|
+
if (!hasOwnProperty_1(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
|
5179
|
+
createNonEnumerableProperty(value, 'name', name);
|
|
5180
|
+
}
|
|
5181
|
+
state = enforceInternalState(value);
|
|
5182
|
+
if (!state.source) {
|
|
5183
|
+
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
5184
|
+
}
|
|
5185
|
+
}
|
|
5186
|
+
if (O === global_1) {
|
|
5187
|
+
if (simple) O[key] = value;
|
|
5188
|
+
else setGlobal(key, value);
|
|
5189
|
+
return;
|
|
5190
|
+
} else if (!unsafe) {
|
|
5191
|
+
delete O[key];
|
|
5192
|
+
} else if (!noTargetGet && O[key]) {
|
|
5193
|
+
simple = true;
|
|
5194
|
+
}
|
|
5195
|
+
if (simple) O[key] = value;
|
|
5196
|
+
else createNonEnumerableProperty(O, key, value);
|
|
5197
|
+
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
5198
|
+
})(Function.prototype, 'toString', function toString() {
|
|
5199
|
+
return isCallable(this) && getInternalState(this).source || inspectSource(this);
|
|
5200
|
+
});
|
|
5201
|
+
});
|
|
5202
|
+
|
|
5203
|
+
var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
|
|
5204
|
+
|
|
5205
|
+
// `Object.getOwnPropertyNames` method
|
|
5206
|
+
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
5207
|
+
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
5208
|
+
var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
5209
|
+
return objectKeysInternal(O, hiddenKeys$1);
|
|
5210
|
+
};
|
|
5211
|
+
|
|
5212
|
+
var objectGetOwnPropertyNames = {
|
|
5213
|
+
f: f$3
|
|
5214
|
+
};
|
|
5215
|
+
|
|
5216
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
5217
|
+
var f$4 = Object.getOwnPropertySymbols;
|
|
5218
|
+
|
|
5219
|
+
var objectGetOwnPropertySymbols = {
|
|
5220
|
+
f: f$4
|
|
5221
|
+
};
|
|
5222
|
+
|
|
5223
|
+
// all object keys, includes non-enumerable and symbols
|
|
5224
|
+
var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
5225
|
+
var keys = objectGetOwnPropertyNames.f(anObject(it));
|
|
5226
|
+
var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
|
|
5227
|
+
return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
|
|
5228
|
+
};
|
|
5229
|
+
|
|
5230
|
+
var copyConstructorProperties = function (target, source) {
|
|
5231
|
+
var keys = ownKeys(source);
|
|
5232
|
+
var defineProperty = objectDefineProperty.f;
|
|
5233
|
+
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
5234
|
+
for (var i = 0; i < keys.length; i++) {
|
|
5235
|
+
var key = keys[i];
|
|
5236
|
+
if (!hasOwnProperty_1(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
5237
|
+
}
|
|
5238
|
+
};
|
|
5239
|
+
|
|
5240
|
+
var replacement = /#|\.prototype\./;
|
|
5241
|
+
|
|
5242
|
+
var isForced = function (feature, detection) {
|
|
5243
|
+
var value = data[normalize(feature)];
|
|
5244
|
+
return value == POLYFILL ? true
|
|
5245
|
+
: value == NATIVE ? false
|
|
5246
|
+
: isCallable(detection) ? fails(detection)
|
|
5247
|
+
: !!detection;
|
|
5248
|
+
};
|
|
5249
|
+
|
|
5250
|
+
var normalize = isForced.normalize = function (string) {
|
|
5251
|
+
return String(string).replace(replacement, '.').toLowerCase();
|
|
5252
|
+
};
|
|
5253
|
+
|
|
5254
|
+
var data = isForced.data = {};
|
|
5255
|
+
var NATIVE = isForced.NATIVE = 'N';
|
|
5256
|
+
var POLYFILL = isForced.POLYFILL = 'P';
|
|
5257
|
+
|
|
5258
|
+
var isForced_1 = isForced;
|
|
5259
|
+
|
|
5260
|
+
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
5261
|
+
|
|
5262
|
+
|
|
5263
|
+
|
|
5264
|
+
|
|
5265
|
+
|
|
5266
|
+
|
|
5267
|
+
/*
|
|
5268
|
+
options.target - name of the target object
|
|
5269
|
+
options.global - target is the global object
|
|
5270
|
+
options.stat - export as static methods of target
|
|
5271
|
+
options.proto - export as prototype methods of target
|
|
5272
|
+
options.real - real prototype method for the `pure` version
|
|
5273
|
+
options.forced - export even if the native feature is available
|
|
5274
|
+
options.bind - bind methods to the target, required for the `pure` version
|
|
5275
|
+
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
|
|
5276
|
+
options.unsafe - use the simple assignment of property instead of delete + defineProperty
|
|
5277
|
+
options.sham - add a flag to not completely full polyfills
|
|
5278
|
+
options.enumerable - export as enumerable property
|
|
5279
|
+
options.noTargetGet - prevent calling a getter on target
|
|
5280
|
+
options.name - the .name of the function if it does not match the key
|
|
5281
|
+
*/
|
|
5282
|
+
var _export = function (options, source) {
|
|
5283
|
+
var TARGET = options.target;
|
|
5284
|
+
var GLOBAL = options.global;
|
|
5285
|
+
var STATIC = options.stat;
|
|
5286
|
+
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
5287
|
+
if (GLOBAL) {
|
|
5288
|
+
target = global_1;
|
|
5289
|
+
} else if (STATIC) {
|
|
5290
|
+
target = global_1[TARGET] || setGlobal(TARGET, {});
|
|
5291
|
+
} else {
|
|
5292
|
+
target = (global_1[TARGET] || {}).prototype;
|
|
5293
|
+
}
|
|
5294
|
+
if (target) for (key in source) {
|
|
5295
|
+
sourceProperty = source[key];
|
|
5296
|
+
if (options.noTargetGet) {
|
|
5297
|
+
descriptor = getOwnPropertyDescriptor$1(target, key);
|
|
5298
|
+
targetProperty = descriptor && descriptor.value;
|
|
5299
|
+
} else targetProperty = target[key];
|
|
5300
|
+
FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
5301
|
+
// contained in target
|
|
5302
|
+
if (!FORCED && targetProperty !== undefined) {
|
|
5303
|
+
if (typeof sourceProperty === typeof targetProperty) continue;
|
|
5304
|
+
copyConstructorProperties(sourceProperty, targetProperty);
|
|
5305
|
+
}
|
|
5306
|
+
// add a flag to not completely full polyfills
|
|
5307
|
+
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
5308
|
+
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
|
5309
|
+
}
|
|
5310
|
+
// extend global
|
|
5311
|
+
redefine(target, key, sourceProperty, options);
|
|
5312
|
+
}
|
|
5313
|
+
};
|
|
5314
|
+
|
|
5315
|
+
var correctPrototypeGetter = !fails(function () {
|
|
5316
|
+
function F() { /* empty */ }
|
|
5317
|
+
F.prototype.constructor = null;
|
|
5318
|
+
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
5319
|
+
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
5320
|
+
});
|
|
5321
|
+
|
|
5322
|
+
var IE_PROTO$1 = sharedKey('IE_PROTO');
|
|
5323
|
+
var ObjectPrototype = Object.prototype;
|
|
5324
|
+
|
|
5325
|
+
// `Object.getPrototypeOf` method
|
|
5326
|
+
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
5327
|
+
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
5328
|
+
var objectGetPrototypeOf = correctPrototypeGetter ? Object.getPrototypeOf : function (O) {
|
|
5329
|
+
var object = toObject(O);
|
|
5330
|
+
if (hasOwnProperty_1(object, IE_PROTO$1)) return object[IE_PROTO$1];
|
|
5331
|
+
var constructor = object.constructor;
|
|
5332
|
+
if (isCallable(constructor) && object instanceof constructor) {
|
|
5333
|
+
return constructor.prototype;
|
|
5334
|
+
} return object instanceof Object ? ObjectPrototype : null;
|
|
5335
|
+
};
|
|
5336
|
+
|
|
5337
|
+
var ITERATOR = wellKnownSymbol('iterator');
|
|
5338
|
+
var BUGGY_SAFARI_ITERATORS = false;
|
|
5339
|
+
|
|
5340
|
+
// `%IteratorPrototype%` object
|
|
5341
|
+
// https://tc39.es/ecma262/#sec-%iteratorprototype%-object
|
|
5342
|
+
var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
|
5343
|
+
|
|
5344
|
+
/* eslint-disable es/no-array-prototype-keys -- safe */
|
|
5345
|
+
if ([].keys) {
|
|
5346
|
+
arrayIterator = [].keys();
|
|
5347
|
+
// Safari 8 has buggy iterators w/o `next`
|
|
5348
|
+
if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
|
|
5349
|
+
else {
|
|
5350
|
+
PrototypeOfArrayIteratorPrototype = objectGetPrototypeOf(objectGetPrototypeOf(arrayIterator));
|
|
5351
|
+
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;
|
|
5352
|
+
}
|
|
5353
|
+
}
|
|
5354
|
+
|
|
5355
|
+
var NEW_ITERATOR_PROTOTYPE = IteratorPrototype == undefined || fails(function () {
|
|
5356
|
+
var test = {};
|
|
5357
|
+
// FF44- legacy iterators case
|
|
5358
|
+
return IteratorPrototype[ITERATOR].call(test) !== test;
|
|
5359
|
+
});
|
|
5360
|
+
|
|
5361
|
+
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};
|
|
5362
|
+
|
|
5363
|
+
// `%IteratorPrototype%[@@iterator]()` method
|
|
5364
|
+
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
5365
|
+
if (!isCallable(IteratorPrototype[ITERATOR])) {
|
|
5366
|
+
redefine(IteratorPrototype, ITERATOR, function () {
|
|
5367
|
+
return this;
|
|
5368
|
+
});
|
|
5369
|
+
}
|
|
5370
|
+
|
|
5371
|
+
var iteratorsCore = {
|
|
5372
|
+
IteratorPrototype: IteratorPrototype,
|
|
5373
|
+
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
|
|
5374
|
+
};
|
|
5375
|
+
|
|
5376
|
+
var defineProperty = objectDefineProperty.f;
|
|
5377
|
+
|
|
5378
|
+
|
|
5379
|
+
|
|
5380
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
5381
|
+
|
|
5382
|
+
var setToStringTag = function (it, TAG, STATIC) {
|
|
5383
|
+
if (it && !hasOwnProperty_1(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {
|
|
5384
|
+
defineProperty(it, TO_STRING_TAG, { configurable: true, value: TAG });
|
|
5385
|
+
}
|
|
5386
|
+
};
|
|
5387
|
+
|
|
5388
|
+
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
|
5389
|
+
|
|
5390
|
+
var createIteratorConstructor = function (IteratorConstructor, NAME, next) {
|
|
5391
|
+
var TO_STRING_TAG = NAME + ' Iterator';
|
|
5392
|
+
IteratorConstructor.prototype = objectCreate(IteratorPrototype$1, { next: createPropertyDescriptor(1, next) });
|
|
5393
|
+
setToStringTag(IteratorConstructor, TO_STRING_TAG, false);
|
|
5394
|
+
return IteratorConstructor;
|
|
5395
|
+
};
|
|
5396
|
+
|
|
5397
|
+
var aPossiblePrototype = function (argument) {
|
|
5398
|
+
if (typeof argument === 'object' || isCallable(argument)) return argument;
|
|
5399
|
+
throw TypeError("Can't set " + String(argument) + ' as a prototype');
|
|
5400
|
+
};
|
|
5401
|
+
|
|
5402
|
+
/* eslint-disable no-proto -- safe */
|
|
5403
|
+
|
|
5404
|
+
|
|
5405
|
+
|
|
5406
|
+
// `Object.setPrototypeOf` method
|
|
5407
|
+
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
5408
|
+
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
5409
|
+
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
5410
|
+
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
5411
|
+
var CORRECT_SETTER = false;
|
|
5412
|
+
var test = {};
|
|
5413
|
+
var setter;
|
|
5414
|
+
try {
|
|
5415
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
5416
|
+
setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;
|
|
5417
|
+
setter.call(test, []);
|
|
5418
|
+
CORRECT_SETTER = test instanceof Array;
|
|
5419
|
+
} catch (error) { /* empty */ }
|
|
5420
|
+
return function setPrototypeOf(O, proto) {
|
|
5421
|
+
anObject(O);
|
|
5422
|
+
aPossiblePrototype(proto);
|
|
5423
|
+
if (CORRECT_SETTER) setter.call(O, proto);
|
|
5424
|
+
else O.__proto__ = proto;
|
|
5425
|
+
return O;
|
|
5426
|
+
};
|
|
5427
|
+
}() : undefined);
|
|
5428
|
+
|
|
5429
|
+
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
5430
|
+
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
5431
|
+
var IteratorPrototype$2 = iteratorsCore.IteratorPrototype;
|
|
5432
|
+
var BUGGY_SAFARI_ITERATORS$1 = iteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
5433
|
+
var ITERATOR$1 = wellKnownSymbol('iterator');
|
|
5434
|
+
var KEYS = 'keys';
|
|
5435
|
+
var VALUES = 'values';
|
|
5436
|
+
var ENTRIES = 'entries';
|
|
5437
|
+
|
|
5438
|
+
var returnThis = function () { return this; };
|
|
5439
|
+
|
|
5440
|
+
var defineIterator = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
|
|
5441
|
+
createIteratorConstructor(IteratorConstructor, NAME, next);
|
|
5442
|
+
|
|
5443
|
+
var getIterationMethod = function (KIND) {
|
|
5444
|
+
if (KIND === DEFAULT && defaultIterator) return defaultIterator;
|
|
5445
|
+
if (!BUGGY_SAFARI_ITERATORS$1 && KIND in IterablePrototype) return IterablePrototype[KIND];
|
|
5446
|
+
switch (KIND) {
|
|
5447
|
+
case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
|
|
5448
|
+
case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
|
|
5449
|
+
case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
|
|
5450
|
+
} return function () { return new IteratorConstructor(this); };
|
|
5451
|
+
};
|
|
5452
|
+
|
|
5453
|
+
var TO_STRING_TAG = NAME + ' Iterator';
|
|
5454
|
+
var INCORRECT_VALUES_NAME = false;
|
|
5455
|
+
var IterablePrototype = Iterable.prototype;
|
|
5456
|
+
var nativeIterator = IterablePrototype[ITERATOR$1]
|
|
5457
|
+
|| IterablePrototype['@@iterator']
|
|
5458
|
+
|| DEFAULT && IterablePrototype[DEFAULT];
|
|
5459
|
+
var defaultIterator = !BUGGY_SAFARI_ITERATORS$1 && nativeIterator || getIterationMethod(DEFAULT);
|
|
5460
|
+
var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
|
|
5461
|
+
var CurrentIteratorPrototype, methods, KEY;
|
|
5462
|
+
|
|
5463
|
+
// fix native
|
|
5464
|
+
if (anyNativeIterator) {
|
|
5465
|
+
CurrentIteratorPrototype = objectGetPrototypeOf(anyNativeIterator.call(new Iterable()));
|
|
5466
|
+
if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
|
|
5467
|
+
if ( objectGetPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype$2) {
|
|
5468
|
+
if (objectSetPrototypeOf) {
|
|
5469
|
+
objectSetPrototypeOf(CurrentIteratorPrototype, IteratorPrototype$2);
|
|
5470
|
+
} else if (!isCallable(CurrentIteratorPrototype[ITERATOR$1])) {
|
|
5471
|
+
redefine(CurrentIteratorPrototype, ITERATOR$1, returnThis);
|
|
5472
|
+
}
|
|
5473
|
+
}
|
|
5474
|
+
// Set @@toStringTag to native iterators
|
|
5475
|
+
setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);
|
|
5476
|
+
}
|
|
5477
|
+
}
|
|
5478
|
+
|
|
5479
|
+
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
|
|
5480
|
+
if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
5481
|
+
if ( CONFIGURABLE_FUNCTION_NAME) {
|
|
5482
|
+
createNonEnumerableProperty(IterablePrototype, 'name', VALUES);
|
|
5483
|
+
} else {
|
|
5484
|
+
INCORRECT_VALUES_NAME = true;
|
|
5485
|
+
defaultIterator = function values() { return nativeIterator.call(this); };
|
|
5486
|
+
}
|
|
5487
|
+
}
|
|
5488
|
+
|
|
5489
|
+
// export additional methods
|
|
5490
|
+
if (DEFAULT) {
|
|
5491
|
+
methods = {
|
|
5492
|
+
values: getIterationMethod(VALUES),
|
|
5493
|
+
keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
|
|
5494
|
+
entries: getIterationMethod(ENTRIES)
|
|
5495
|
+
};
|
|
5496
|
+
if (FORCED) for (KEY in methods) {
|
|
5497
|
+
if (BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
5498
|
+
redefine(IterablePrototype, KEY, methods[KEY]);
|
|
5499
|
+
}
|
|
5500
|
+
} else _export({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME }, methods);
|
|
5501
|
+
}
|
|
5502
|
+
|
|
5503
|
+
// define iterator
|
|
5504
|
+
if ( IterablePrototype[ITERATOR$1] !== defaultIterator) {
|
|
5505
|
+
redefine(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
|
|
5506
|
+
}
|
|
5507
|
+
|
|
5508
|
+
return methods;
|
|
5509
|
+
};
|
|
5510
|
+
|
|
5511
|
+
var ARRAY_ITERATOR = 'Array Iterator';
|
|
5512
|
+
var setInternalState = internalState.set;
|
|
5513
|
+
var getInternalState = internalState.getterFor(ARRAY_ITERATOR);
|
|
5514
|
+
|
|
5515
|
+
// `Array.prototype.entries` method
|
|
5516
|
+
// https://tc39.es/ecma262/#sec-array.prototype.entries
|
|
5517
|
+
// `Array.prototype.keys` method
|
|
5518
|
+
// https://tc39.es/ecma262/#sec-array.prototype.keys
|
|
5519
|
+
// `Array.prototype.values` method
|
|
5520
|
+
// https://tc39.es/ecma262/#sec-array.prototype.values
|
|
5521
|
+
// `Array.prototype[@@iterator]` method
|
|
5522
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@iterator
|
|
5523
|
+
// `CreateArrayIterator` internal method
|
|
5524
|
+
// https://tc39.es/ecma262/#sec-createarrayiterator
|
|
5525
|
+
var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
|
|
5526
|
+
setInternalState(this, {
|
|
5527
|
+
type: ARRAY_ITERATOR,
|
|
5528
|
+
target: toIndexedObject(iterated), // target
|
|
5529
|
+
index: 0, // next index
|
|
5530
|
+
kind: kind // kind
|
|
5531
|
+
});
|
|
5532
|
+
// `%ArrayIteratorPrototype%.next` method
|
|
5533
|
+
// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
|
|
5534
|
+
}, function () {
|
|
5535
|
+
var state = getInternalState(this);
|
|
5536
|
+
var target = state.target;
|
|
5537
|
+
var kind = state.kind;
|
|
5538
|
+
var index = state.index++;
|
|
5539
|
+
if (!target || index >= target.length) {
|
|
5540
|
+
state.target = undefined;
|
|
5541
|
+
return { value: undefined, done: true };
|
|
5542
|
+
}
|
|
5543
|
+
if (kind == 'keys') return { value: index, done: false };
|
|
5544
|
+
if (kind == 'values') return { value: target[index], done: false };
|
|
5545
|
+
return { value: [index, target[index]], done: false };
|
|
5546
|
+
}, 'values');
|
|
5547
|
+
|
|
5548
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
5549
|
+
addToUnscopables('keys');
|
|
5550
|
+
addToUnscopables('values');
|
|
5551
|
+
addToUnscopables('entries');
|
|
5552
|
+
|
|
5553
|
+
var ITERATOR$2 = wellKnownSymbol('iterator');
|
|
5554
|
+
var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
|
|
5555
|
+
var ArrayValues = es_array_iterator.values;
|
|
5556
|
+
|
|
5557
|
+
var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
5558
|
+
if (CollectionPrototype) {
|
|
5559
|
+
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
5560
|
+
if (CollectionPrototype[ITERATOR$2] !== ArrayValues) try {
|
|
5561
|
+
createNonEnumerableProperty(CollectionPrototype, ITERATOR$2, ArrayValues);
|
|
5562
|
+
} catch (error) {
|
|
5563
|
+
CollectionPrototype[ITERATOR$2] = ArrayValues;
|
|
5564
|
+
}
|
|
5565
|
+
if (!CollectionPrototype[TO_STRING_TAG$1]) {
|
|
5566
|
+
createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG$1, COLLECTION_NAME);
|
|
5567
|
+
}
|
|
5568
|
+
if (domIterables[COLLECTION_NAME]) for (var METHOD_NAME in es_array_iterator) {
|
|
5569
|
+
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
5570
|
+
if (CollectionPrototype[METHOD_NAME] !== es_array_iterator[METHOD_NAME]) try {
|
|
5571
|
+
createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, es_array_iterator[METHOD_NAME]);
|
|
5572
|
+
} catch (error) {
|
|
5573
|
+
CollectionPrototype[METHOD_NAME] = es_array_iterator[METHOD_NAME];
|
|
5574
|
+
}
|
|
5575
|
+
}
|
|
5576
|
+
}
|
|
5577
|
+
};
|
|
5578
|
+
|
|
5579
|
+
for (var COLLECTION_NAME in domIterables) {
|
|
5580
|
+
handlePrototype(global_1[COLLECTION_NAME] && global_1[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
5581
|
+
}
|
|
5582
|
+
|
|
5583
|
+
handlePrototype(domTokenListPrototype, 'DOMTokenList');
|
|
5584
|
+
|
|
4465
5585
|
/*
|
|
4466
5586
|
themeContext: { name: "default", values: {JSON_THEME_VALUES_HERE} }
|
|
4467
5587
|
|
|
@@ -4523,7 +5643,7 @@ const createThemeValues = (themeContext, fallbackValues, componentName, variant)
|
|
|
4523
5643
|
const mergedPropValues = Object.entries(propValue).reduce((innerAcc, [variantName, defaultVariantValue]) => {
|
|
4524
5644
|
var _themeValues$componen, _themeValues$componen2, _themeValues$componen3;
|
|
4525
5645
|
|
|
4526
|
-
const variantValue = (_themeValues$componen = themeValues
|
|
5646
|
+
const variantValue = (_themeValues$componen = themeValues == null ? void 0 : (_themeValues$componen2 = themeValues[componentName]) == null ? void 0 : (_themeValues$componen3 = _themeValues$componen2[propName]) == null ? void 0 : _themeValues$componen3[variantName]) != null ? _themeValues$componen : defaultVariantValue;
|
|
4527
5647
|
return { ...innerAcc,
|
|
4528
5648
|
[variantName]: {
|
|
4529
5649
|
default: variantValue
|
|
@@ -4537,7 +5657,7 @@ const createThemeValues = (themeContext, fallbackValues, componentName, variant)
|
|
|
4537
5657
|
};
|
|
4538
5658
|
}
|
|
4539
5659
|
|
|
4540
|
-
const mergedSinglePropValue = (_themeValues$componen4 = themeValues
|
|
5660
|
+
const mergedSinglePropValue = (_themeValues$componen4 = themeValues == null ? void 0 : (_themeValues$componen5 = themeValues[componentName]) == null ? void 0 : _themeValues$componen5[propName]) != null ? _themeValues$componen4 : propValue;
|
|
4541
5661
|
return { ...acc,
|
|
4542
5662
|
[propName]: {
|
|
4543
5663
|
default: mergedSinglePropValue
|
|
@@ -4564,7 +5684,7 @@ const themeComponent = (component, componentThemeId, fallbackValues, defaultVari
|
|
|
4564
5684
|
var _themeContext$metadat;
|
|
4565
5685
|
|
|
4566
5686
|
const themeContext = React.useContext(styled.ThemeContext);
|
|
4567
|
-
const metadata = (_themeContext$metadat = themeContext
|
|
5687
|
+
const metadata = (_themeContext$metadat = themeContext == null ? void 0 : themeContext.metadata) != null ? _themeContext$metadat : {};
|
|
4568
5688
|
const themeValues = themeContext ? createThemeValues(themeContext, fallbackValues, componentThemeId, variant) : fallbackValues;
|
|
4569
5689
|
return component({ ...props,
|
|
4570
5690
|
themeValues,
|
|
@@ -4822,12 +5942,6 @@ const TextSpan = styled__default.span.withConfig({
|
|
|
4822
5942
|
extraStyles
|
|
4823
5943
|
}) => extraStyles);
|
|
4824
5944
|
|
|
4825
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
4826
|
-
|
|
4827
|
-
function createCommonjsModule(fn, module) {
|
|
4828
|
-
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
4829
|
-
}
|
|
4830
|
-
|
|
4831
5945
|
var numeral = createCommonjsModule(function (module) {
|
|
4832
5946
|
/*! @preserve
|
|
4833
5947
|
* numeral.js
|
|
@@ -5987,7 +7101,7 @@ const BoxWrapper = styled__default(({
|
|
|
5987
7101
|
}) => padding, ({
|
|
5988
7102
|
borderSize,
|
|
5989
7103
|
borderColor
|
|
5990
|
-
}) =>
|
|
7104
|
+
}) => borderSize + " solid " + borderColor, ({
|
|
5991
7105
|
boxShadow
|
|
5992
7106
|
}) => boxShadow, ({
|
|
5993
7107
|
background
|
|
@@ -5995,7 +7109,7 @@ const BoxWrapper = styled__default(({
|
|
|
5995
7109
|
minHeight
|
|
5996
7110
|
}) => minHeight ? minHeight : "auto", ({
|
|
5997
7111
|
width
|
|
5998
|
-
}) => width && "width: "
|
|
7112
|
+
}) => width && "width: " + width + ";", ({
|
|
5999
7113
|
minWidth
|
|
6000
7114
|
}) => minWidth ? minWidth : "auto", ({
|
|
6001
7115
|
maxWidth
|
|
@@ -6013,15 +7127,15 @@ const BoxWrapper = styled__default(({
|
|
|
6013
7127
|
}) => textAlign, ({
|
|
6014
7128
|
hoverStyles,
|
|
6015
7129
|
as
|
|
6016
|
-
}) => styled.css(["", " ", ""], hoverStyles, as === "button" ? "> * > span {\n "
|
|
7130
|
+
}) => styled.css(["", " ", ""], hoverStyles, as === "button" ? "> * > span {\n " + hoverStyles + "\n border: none;\n outline: none;\n box-shadow: none;\n }" : ""), ({
|
|
6017
7131
|
as
|
|
6018
7132
|
}) => styled.css(["outline:3px solid ", ";outline-offset:2px;", ""], ROYAL_BLUE, as === "button" && "\n > * > span {\n border: none;\n outline: none;\n box-shadow: none;\n }"), ({
|
|
6019
7133
|
activeStyles,
|
|
6020
7134
|
as
|
|
6021
|
-
}) => styled.css(["", " ", ""], activeStyles, as === "button" ? " > * > span {\n "
|
|
7135
|
+
}) => styled.css(["", " ", ""], activeStyles, as === "button" ? " > * > span {\n " + activeStyles + "\n border: none;\n outline: none;\n box-shadow: none;\n }" : ""), ({
|
|
6022
7136
|
disabledStyles,
|
|
6023
7137
|
as
|
|
6024
|
-
}) => styled.css(["", " ", ""], disabledStyles, as === "button" ? " > * > span {\n "
|
|
7138
|
+
}) => styled.css(["", " ", ""], disabledStyles, as === "button" ? " > * > span {\n " + disabledStyles + "\n border: none;\n outline: none;\n box-shadow: none;\n }" : ""), ({
|
|
6025
7139
|
color
|
|
6026
7140
|
}) => color, ({
|
|
6027
7141
|
hiddenStyles
|
|
@@ -6218,7 +7332,7 @@ const GridWrapper = styled__default.div.withConfig({
|
|
|
6218
7332
|
aboveMin,
|
|
6219
7333
|
minColWidth,
|
|
6220
7334
|
maxColWidth
|
|
6221
|
-
}) => aboveMin ? "repeat(auto-fill, minmax("
|
|
7335
|
+
}) => aboveMin ? "repeat(auto-fill, minmax(" + minColWidth + ", " + maxColWidth + "))" : "100%", ({
|
|
6222
7336
|
minColWidth
|
|
6223
7337
|
}) => minColWidth, ({
|
|
6224
7338
|
minColWidth
|
|
@@ -6245,8 +7359,8 @@ const Grid = ({
|
|
|
6245
7359
|
ref: ref,
|
|
6246
7360
|
columnGap: columnGap,
|
|
6247
7361
|
aboveMin: aboveMin,
|
|
6248
|
-
minColWidth: typeof minColWidth === "number" ?
|
|
6249
|
-
maxColWidth: typeof maxColWidth === "number" ?
|
|
7362
|
+
minColWidth: typeof minColWidth === "number" ? minColWidth + "rem" : minColWidth,
|
|
7363
|
+
maxColWidth: typeof maxColWidth === "number" ? maxColWidth + "rem" : maxColWidth
|
|
6250
7364
|
}, rest), safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null)));
|
|
6251
7365
|
};
|
|
6252
7366
|
|
|
@@ -6273,13 +7387,13 @@ const SidebarInnerWrapper = styled__default( // eslint-disable-next-line no-unus
|
|
|
6273
7387
|
childGap
|
|
6274
7388
|
}) => childGap, ({
|
|
6275
7389
|
width
|
|
6276
|
-
}) => width ? "flex-basis: "
|
|
7390
|
+
}) => width ? "flex-basis: " + width : "", ({
|
|
6277
7391
|
minHeight
|
|
6278
7392
|
}) => minHeight ? "margin-top: 0; margin-bottom: 0;" : "", ({
|
|
6279
7393
|
$sidebarOnRight,
|
|
6280
7394
|
contentMinWidth,
|
|
6281
7395
|
childGap
|
|
6282
|
-
}) => $sidebarOnRight ? "> :first-child {\n flex-basis: 0;\n flex-grow: 999;\n min-width: calc("
|
|
7396
|
+
}) => $sidebarOnRight ? "> :first-child {\n flex-basis: 0;\n flex-grow: 999;\n min-width: calc(" + contentMinWidth + " - " + childGap + ");\n }\n " : "> :last-child {\n flex-basis: 0;\n flex-grow: 999;\n min-width: calc(" + contentMinWidth + " - " + childGap + ");\n }", ({
|
|
6283
7397
|
fullHeight
|
|
6284
7398
|
}) => fullHeight ? "min-height: 100%;" : "");
|
|
6285
7399
|
|
|
@@ -6329,10 +7443,10 @@ const StackWrapper = styled__default.div.withConfig({
|
|
|
6329
7443
|
}) => fullHeight ? "100%" : "auto", ({
|
|
6330
7444
|
direction,
|
|
6331
7445
|
childGap
|
|
6332
|
-
}) => direction === "row" ? "margin-left: "
|
|
7446
|
+
}) => direction === "row" ? "margin-left: " + childGap + ";" : "margin-top: " + childGap + ";", ({
|
|
6333
7447
|
bottomItem,
|
|
6334
7448
|
direction
|
|
6335
|
-
}) => bottomItem ? "\n > :nth-child("
|
|
7449
|
+
}) => bottomItem ? "\n > :nth-child(" + bottomItem + ") {\n " + (direction === "row" ? "margin-left: auto;" : "margin-top: auto;") + "\n }\n " : "");
|
|
6336
7450
|
|
|
6337
7451
|
/*
|
|
6338
7452
|
Component to impose margin-top between a list of child elements
|
|
@@ -6422,7 +7536,7 @@ const FrameOuterContainer = styled__default.div.withConfig({
|
|
|
6422
7536
|
})(["box-sizing:border-box;padding-bottom:", ";position:relative;> *{overflow:hidden;position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;}> img,> video{width:100%;height:100%;object-fit:cover;}"], ({
|
|
6423
7537
|
numerator,
|
|
6424
7538
|
denominator
|
|
6425
|
-
}) => "calc(("
|
|
7539
|
+
}) => "calc((" + numerator + " / " + denominator + ") * 100%)");
|
|
6426
7540
|
|
|
6427
7541
|
/*
|
|
6428
7542
|
The Frame component is used for cropping content to a specific aspect ratio.
|
|
@@ -6458,22 +7572,22 @@ const SwitcherInnerContainer = styled__default.div.withConfig({
|
|
|
6458
7572
|
padding
|
|
6459
7573
|
}) => padding, ({
|
|
6460
7574
|
childGap
|
|
6461
|
-
}) => "calc(("
|
|
7575
|
+
}) => "calc((" + childGap + " / 2) * -1)", ({
|
|
6462
7576
|
constrainMobile
|
|
6463
7577
|
}) => constrainMobile && "max-width: 100%; margin-left: 0; margin-right: 0;", ({
|
|
6464
7578
|
maxChildrenOnly,
|
|
6465
7579
|
breakpoint,
|
|
6466
7580
|
childGap
|
|
6467
|
-
}) => !maxChildrenOnly ? "flex-basis: calc(("
|
|
7581
|
+
}) => !maxChildrenOnly ? "flex-basis: calc((" + breakpoint + " - (100% - " + childGap + ")) * 999);" : "", ({
|
|
6468
7582
|
childGap
|
|
6469
|
-
}) => "margin: calc("
|
|
7583
|
+
}) => "margin: calc(" + childGap + " / 2);", ({
|
|
6470
7584
|
constrainMobile
|
|
6471
7585
|
}) => constrainMobile && "margin-left: 0; margin-right: 0;", ({
|
|
6472
7586
|
largeChild,
|
|
6473
7587
|
largeChildSize
|
|
6474
|
-
}) => largeChild && largeChildSize ? "> :nth-child("
|
|
7588
|
+
}) => largeChild && largeChildSize ? "> :nth-child(" + largeChild + ") {\n flex-grow: " + largeChildSize + ";\n }" : "", ({
|
|
6475
7589
|
maxChildren
|
|
6476
|
-
}) => maxChildren ? "> :nth-last-child("
|
|
7590
|
+
}) => maxChildren ? "> :nth-last-child(" + (maxChildren + 1) + "), > :nth-last-child(" + (maxChildren + 1) + ") ~ * {\n flex-basis: 100%;\n }" : "", ({
|
|
6477
7591
|
extraStyles
|
|
6478
7592
|
}) => styled.css(["", ""], extraStyles));
|
|
6479
7593
|
|
|
@@ -6550,7 +7664,7 @@ const ImposterWrapper = styled__default.div.withConfig({
|
|
|
6550
7664
|
breakout,
|
|
6551
7665
|
verticalMargin,
|
|
6552
7666
|
horizontalMargin
|
|
6553
|
-
}) => breakout ? "" : "\n overflow: auto;\n max-width: calc(100% - ("
|
|
7667
|
+
}) => breakout ? "" : "\n overflow: auto;\n max-width: calc(100% - (" + horizontalMargin + " * 2));\n max-height: calc(100% - (" + verticalMargin + " * 2));\n ", ({
|
|
6554
7668
|
extraStyles
|
|
6555
7669
|
}) => extraStyles);
|
|
6556
7670
|
|
|
@@ -12136,8 +13250,8 @@ const ButtonWithAction = ({
|
|
|
12136
13250
|
const {
|
|
12137
13251
|
isMobile
|
|
12138
13252
|
} = themeContext;
|
|
12139
|
-
const hoverStyles = "\n outline: none;\n background-color: "
|
|
12140
|
-
const activeStyles = "\n outline: none;\n background-color: "
|
|
13253
|
+
const hoverStyles = "\n outline: none;\n background-color: " + themeValues.hoverBackgroundColor + ";\n border-color: " + themeValues.hoverBorderColor + ";\n color: " + themeValues.hoverColor + ";\n text-decoration: " + (variant === "ghost" || variant === "smallGhost" ? "underline" : "none") + ";\n cursor: pointer;\n ";
|
|
13254
|
+
const activeStyles = "\n outline: none;\n background-color: " + themeValues.activeBackgroundColor + ";\n border-color: " + themeValues.activeBorderColor + ";\n color: " + themeValues.activeColor + ";\n text-decoration: " + (variant === "ghost" || variant === "smallGhost" ? "underline" : "none") + ";\n ";
|
|
12141
13255
|
const disabledStyles = "\n background-color: #6D717E;\n border-color: #6D717E;\n color: #FFFFFF;\n cursor: default;\n &:focus {\n box-shadow: 0 0 10px #6D717E;\n outline: none;\n }\n ";
|
|
12142
13256
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
12143
13257
|
variant: variant,
|
|
@@ -12153,7 +13267,7 @@ const ButtonWithAction = ({
|
|
|
12153
13267
|
onClick: isLoading ? undefined : action,
|
|
12154
13268
|
borderRadius: "2px",
|
|
12155
13269
|
theme: themeContext,
|
|
12156
|
-
extraStyles: "margin: 0.5rem; "
|
|
13270
|
+
extraStyles: "margin: 0.5rem; " + extraStyles,
|
|
12157
13271
|
dataQa: dataQa,
|
|
12158
13272
|
tabIndex: tabIndex
|
|
12159
13273
|
}, rest), contentOverride ? children : /*#__PURE__*/React__default.createElement(Center, {
|
|
@@ -12169,24 +13283,24 @@ const ButtonWithAction = ({
|
|
|
12169
13283
|
};
|
|
12170
13284
|
|
|
12171
13285
|
const primaryColor = {
|
|
12172
|
-
info: ""
|
|
12173
|
-
success: ""
|
|
12174
|
-
error: ""
|
|
13286
|
+
info: "" + WHITE,
|
|
13287
|
+
success: "" + WHITE,
|
|
13288
|
+
error: "" + WHITE
|
|
12175
13289
|
};
|
|
12176
13290
|
const accentColor = {
|
|
12177
|
-
info: ""
|
|
12178
|
-
success: ""
|
|
12179
|
-
error: ""
|
|
13291
|
+
info: "" + BRIGHT_GREY,
|
|
13292
|
+
success: "" + BRIGHT_GREY,
|
|
13293
|
+
error: "" + BRIGHT_GREY
|
|
12180
13294
|
};
|
|
12181
13295
|
const subIconColor = {
|
|
12182
|
-
info: ""
|
|
12183
|
-
success: ""
|
|
12184
|
-
error: ""
|
|
13296
|
+
info: "" + MATISSE_BLUE,
|
|
13297
|
+
success: "" + SEA_GREEN,
|
|
13298
|
+
error: "" + BLUSH_RED
|
|
12185
13299
|
};
|
|
12186
13300
|
const singleIconColor = {
|
|
12187
|
-
primary: ""
|
|
12188
|
-
secondary: ""
|
|
12189
|
-
darkMode: ""
|
|
13301
|
+
primary: "" + MATISSE_BLUE,
|
|
13302
|
+
secondary: "" + BRIGHT_GREY,
|
|
13303
|
+
darkMode: "" + WHITE
|
|
12190
13304
|
};
|
|
12191
13305
|
const fallbackValues$2 = {
|
|
12192
13306
|
primaryColor,
|
|
@@ -12685,16 +13799,16 @@ const ChevronIcon = ({
|
|
|
12685
13799
|
}, /*#__PURE__*/React__default.createElement("mask", {
|
|
12686
13800
|
id: "icon-chevron-mask-2"
|
|
12687
13801
|
}, /*#__PURE__*/React__default.createElement("use", {
|
|
12688
|
-
fill: iconFill
|
|
13802
|
+
fill: iconFill != null ? iconFill : themeValues.singleIconColor,
|
|
12689
13803
|
xlinkHref: "#icon-chevron-path-1"
|
|
12690
13804
|
})), /*#__PURE__*/React__default.createElement("use", {
|
|
12691
|
-
fill: iconFill
|
|
13805
|
+
fill: iconFill != null ? iconFill : themeValues.singleIconColor,
|
|
12692
13806
|
id: "icon-chevron-Fill-2",
|
|
12693
13807
|
xlinkHref: "#icon-chevron-path-1"
|
|
12694
13808
|
}), /*#__PURE__*/React__default.createElement("g", {
|
|
12695
13809
|
id: "Colors/Blue-Dark",
|
|
12696
13810
|
mask: "url(#icon-chevron-mask-2)",
|
|
12697
|
-
fill: iconFill
|
|
13811
|
+
fill: iconFill != null ? iconFill : themeValues.singleIconColor
|
|
12698
13812
|
}, /*#__PURE__*/React__default.createElement("rect", {
|
|
12699
13813
|
id: "icon-chevron-rect",
|
|
12700
13814
|
width: "24",
|
|
@@ -14875,9 +15989,9 @@ const AddObligation = ({
|
|
|
14875
15989
|
extraStyles,
|
|
14876
15990
|
textExtraStyles
|
|
14877
15991
|
}) => {
|
|
14878
|
-
const hoverStyles = "\n &:hover {\n .fill { fill: "
|
|
14879
|
-
const activeStyles = "\n &:active {\n .fill { fill: "
|
|
14880
|
-
const defaultStyles = "\n min-height: 0;\n .fill { fill: "
|
|
15992
|
+
const hoverStyles = "\n &:hover {\n .fill { fill: " + themeValues.hoverColor + "; }\n .stroke { stroke: " + themeValues.hoverColor + "; }\n button { text-decoration: underline; text-decoration-color: " + themeValues.hoverColor + "; }\n span { color: " + themeValues.hoverColor + "; }\n }";
|
|
15993
|
+
const activeStyles = "\n &:active {\n .fill { fill: " + themeValues.activeColor + "; }\n .stroke { stroke: " + themeValues.activeColor + "; }\n button { text-decoration: underline; text-decoration-color: " + themeValues.activeColor + "; }\n span { color: " + themeValues.activeColor + "; }\n }";
|
|
15994
|
+
const defaultStyles = "\n min-height: 0;\n .fill { fill: " + themeValues.color + "; }\n .stroke { stroke: " + themeValues.color + "; }\n &:focus {\n outline: 3px solid " + ROYAL_BLUE + ";\n outline-offset: 2px;\n }\n ";
|
|
14881
15995
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
14882
15996
|
className: "button",
|
|
14883
15997
|
padding: "0",
|
|
@@ -14899,8 +16013,8 @@ const AddObligation = ({
|
|
|
14899
16013
|
action: action,
|
|
14900
16014
|
text: text,
|
|
14901
16015
|
variant: "smallGhost",
|
|
14902
|
-
extraStyles: "min-height: 0; "
|
|
14903
|
-
textExtraStyles: "padding: 0 0 0 0.75rem; font-size: 0.875rem; font-weight "
|
|
16016
|
+
extraStyles: "min-height: 0; " + extraStyles,
|
|
16017
|
+
textExtraStyles: "padding: 0 0 0 0.75rem; font-size: 0.875rem; font-weight " + FONT_WEIGHT_SEMIBOLD + "; " + textExtraStyles,
|
|
14904
16018
|
tabIndex: "-1"
|
|
14905
16019
|
})))));
|
|
14906
16020
|
};
|
|
@@ -15230,40 +16344,40 @@ const AlertIcons = {
|
|
|
15230
16344
|
};
|
|
15231
16345
|
|
|
15232
16346
|
const background = {
|
|
15233
|
-
info: ""
|
|
15234
|
-
warn: ""
|
|
15235
|
-
error: ""
|
|
15236
|
-
success: ""
|
|
16347
|
+
info: "" + INFO_BLUE,
|
|
16348
|
+
warn: "" + APRICOT_ORANGE,
|
|
16349
|
+
error: "" + BLUSH_RED,
|
|
16350
|
+
success: "" + HINT_GREEN
|
|
15237
16351
|
};
|
|
15238
16352
|
const border$1 = {
|
|
15239
|
-
info: ""
|
|
15240
|
-
warn: ""
|
|
15241
|
-
error: ""
|
|
15242
|
-
success: ""
|
|
16353
|
+
info: "" + MATISSE_BLUE,
|
|
16354
|
+
warn: "" + ZEST_ORANGE,
|
|
16355
|
+
error: "" + RAZZMATAZZ_RED,
|
|
16356
|
+
success: "" + EMERALD_GREEN
|
|
15243
16357
|
};
|
|
15244
16358
|
const iconBackground = {
|
|
15245
|
-
info: ""
|
|
15246
|
-
warn: ""
|
|
15247
|
-
error: ""
|
|
15248
|
-
success: ""
|
|
16359
|
+
info: "" + ONAHAU_BLUE,
|
|
16360
|
+
warn: "" + MUSTARD_YELLOW,
|
|
16361
|
+
error: "" + COSMOS_RED,
|
|
16362
|
+
success: "" + ICE_GREEN
|
|
15249
16363
|
};
|
|
15250
16364
|
const iconFill = {
|
|
15251
|
-
info: ""
|
|
15252
|
-
warn: ""
|
|
15253
|
-
error: ""
|
|
15254
|
-
success: ""
|
|
16365
|
+
info: "" + CONGRESS_BLUE,
|
|
16366
|
+
warn: "" + CARROT_ORANGE,
|
|
16367
|
+
error: "" + THUNDERBIRD_RED,
|
|
16368
|
+
success: "" + HAZE_GREEN
|
|
15255
16369
|
};
|
|
15256
16370
|
const text = {
|
|
15257
|
-
info: ""
|
|
15258
|
-
warn: ""
|
|
15259
|
-
error: ""
|
|
15260
|
-
success: ""
|
|
16371
|
+
info: "" + ZODIAC_BLUE,
|
|
16372
|
+
warn: "" + ZODIAC_BLUE,
|
|
16373
|
+
error: "" + ZODIAC_BLUE,
|
|
16374
|
+
success: "" + ZODIAC_BLUE
|
|
15261
16375
|
};
|
|
15262
16376
|
const link = {
|
|
15263
|
-
info: ""
|
|
15264
|
-
warn: ""
|
|
15265
|
-
error: ""
|
|
15266
|
-
success: ""
|
|
16377
|
+
info: "" + SCIENCE_BLUE,
|
|
16378
|
+
warn: "" + SCIENCE_BLUE,
|
|
16379
|
+
error: "" + SCIENCE_BLUE,
|
|
16380
|
+
success: "" + SCIENCE_BLUE
|
|
15267
16381
|
};
|
|
15268
16382
|
const fallbackValues$4 = {
|
|
15269
16383
|
background,
|
|
@@ -15309,7 +16423,7 @@ const Alert = ({
|
|
|
15309
16423
|
width: "24px",
|
|
15310
16424
|
childGap: "0rem"
|
|
15311
16425
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
15312
|
-
padding: maxContentWidth ?
|
|
16426
|
+
padding: maxContentWidth ? padding + " 1rem" : "1rem"
|
|
15313
16427
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
15314
16428
|
justify: "flex-start",
|
|
15315
16429
|
align: "center"
|
|
@@ -16273,14 +17387,14 @@ const BoxWithShadow = ({
|
|
|
16273
17387
|
...props
|
|
16274
17388
|
}) => {
|
|
16275
17389
|
const shadowRegistry = {
|
|
16276
|
-
baseStandard: "0px 3px 7px 2px "
|
|
16277
|
-
baseHover: "0px 1px 7px 0px "
|
|
16278
|
-
baseClick: "0px 4px 7px 0px "
|
|
16279
|
-
insetStandard: "0px 1px 4px 2px "
|
|
16280
|
-
insetHover: "0px 1px 4px 0px "
|
|
16281
|
-
insetClick: "0px 4px 4px 0px "
|
|
16282
|
-
linkShadowFocus: "0px 0px 5px 2px "
|
|
16283
|
-
overlayShadow: "0px 1px 8px -1px "
|
|
17390
|
+
baseStandard: "0px 3px 7px 2px " + rgba$1(BLACK, 0.1) + ", 0px 1px 2px 1px " + rgba$1(BLACK, 0.1) + ";",
|
|
17391
|
+
baseHover: "0px 1px 7px 0px " + rgba$1(BLACK, 0.3) + ", 0px 1px 4px 0px " + rgba$1(BLACK, 0.2) + ", 0px 7px 12px 0px " + rgba$1(BLACK, 0.2) + ";",
|
|
17392
|
+
baseClick: "0px 4px 7px 0px " + rgba$1(BLACK, 0.3) + ", 0px 1px 4px 0px " + rgba$1(BLACK, 0.2) + ", 0px 7px 12px 0px " + rgba$1(BLACK, 0.2) + ";",
|
|
17393
|
+
insetStandard: "0px 1px 4px 2px " + rgba$1(BLACK, 0.1) + ", 0px 2px 1px 0px " + rgba$1(BLACK, 0.15) + ";",
|
|
17394
|
+
insetHover: "0px 1px 4px 0px " + rgba$1(BLACK, 0.3) + ", 0px 1px 2px 2px " + rgba$1(BLACK, 0.2) + ", 0px 4px 8px 0px " + rgba$1(BLACK, 0.2) + ";",
|
|
17395
|
+
insetClick: "0px 4px 4px 0px " + rgba$1(BLACK, 0.3) + ", 0px 1px 2px 2px " + rgba$1(BLACK, 0.2) + ", 0px 4px 8px 0px " + rgba$1(BLACK, 0.2) + ";",
|
|
17396
|
+
linkShadowFocus: "0px 0px 5px 2px " + rgba$1(themeValues.linkColor, 0.3) + ", 0px 1px 2px 0px " + rgba$1(themeValues.linkColor, 0.3) + ", 0px 4px 8px 0px " + rgba$1(themeValues.linkColor, 0.2) + ";",
|
|
17397
|
+
overlayShadow: "0px 1px 8px -1px " + rgba$1(BLACK, 0.3) + ", 0px 1px 4px 0px " + rgba$1(BLACK, 0.2) + ", 0px 7px 32px 0px " + rgba$1(BLACK, 0.2) + ";"
|
|
16284
17398
|
};
|
|
16285
17399
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
16286
17400
|
boxShadow: shadowRegistry[variant]
|
|
@@ -16295,9 +17409,9 @@ var BoxWithShadow$1 = themeComponent(BoxWithShadow, "BoxWithShadow", fallbackVal
|
|
|
16295
17409
|
for colors/values that should be used here instead
|
|
16296
17410
|
*/
|
|
16297
17411
|
|
|
16298
|
-
const color$4 = ""
|
|
16299
|
-
const activeColor$2 = ""
|
|
16300
|
-
const activeBreadcrumbColor = ""
|
|
17412
|
+
const color$4 = "" + MATISSE_BLUE;
|
|
17413
|
+
const activeColor$2 = "" + STORM_GREY;
|
|
17414
|
+
const activeBreadcrumbColor = "" + STORM_GREY;
|
|
16301
17415
|
const fontSize$3 = "0.875rem";
|
|
16302
17416
|
const lineHeight$1 = "1.25rem";
|
|
16303
17417
|
const fontWeight$1 = "400";
|
|
@@ -16479,7 +17593,7 @@ const Breadcrumbs = ({
|
|
|
16479
17593
|
linkDestination,
|
|
16480
17594
|
isActive
|
|
16481
17595
|
}, index) => /*#__PURE__*/React__default.createElement(React.Fragment, {
|
|
16482
|
-
key: "breadcrumb-"
|
|
17596
|
+
key: "breadcrumb-" + linkText
|
|
16483
17597
|
}, /*#__PURE__*/React__default.createElement(InternalLink, {
|
|
16484
17598
|
"aria-current": index === breadcrumbsList.length - 1 ? "location" : "",
|
|
16485
17599
|
to: linkDestination,
|
|
@@ -16489,7 +17603,7 @@ const Breadcrumbs = ({
|
|
|
16489
17603
|
lineheight: themeValues.lineHeight,
|
|
16490
17604
|
fontWeight: themeValues.fontWeight,
|
|
16491
17605
|
margin: themeValues.margin,
|
|
16492
|
-
extraStyles: "\n text-transform: uppercase;\n "
|
|
17606
|
+
extraStyles: "\n text-transform: uppercase;\n " + (isActive.toString() === "true" && "pointer-events: none;\n color: " + themeValues.activeBreadcrumbColor + ";\n ") + "\n &:first-child {\n margin-left: 0;\n }\n &:active {\n color: " + themeValues.activeColor + "; \n }"
|
|
16493
17607
|
}, linkText), index < breadcrumbsList.length - 1 ? /*#__PURE__*/React__default.createElement(IconChevron, null) : /*#__PURE__*/React__default.createElement(React.Fragment, null)))));
|
|
16494
17608
|
};
|
|
16495
17609
|
|
|
@@ -17022,13 +18136,13 @@ function _has(prop, obj) {
|
|
|
17022
18136
|
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
17023
18137
|
}
|
|
17024
18138
|
|
|
17025
|
-
var toString = Object.prototype.toString;
|
|
18139
|
+
var toString$1 = Object.prototype.toString;
|
|
17026
18140
|
|
|
17027
18141
|
var _isArguments =
|
|
17028
18142
|
/*#__PURE__*/
|
|
17029
18143
|
function () {
|
|
17030
|
-
return toString.call(arguments) === '[object Arguments]' ? function _isArguments(x) {
|
|
17031
|
-
return toString.call(x) === '[object Arguments]';
|
|
18144
|
+
return toString$1.call(arguments) === '[object Arguments]' ? function _isArguments(x) {
|
|
18145
|
+
return toString$1.call(x) === '[object Arguments]';
|
|
17032
18146
|
} : function _isArguments(x) {
|
|
17033
18147
|
return _has('callee', x);
|
|
17034
18148
|
};
|
|
@@ -17081,7 +18195,7 @@ var contains = function contains(list, item) {
|
|
|
17081
18195
|
*/
|
|
17082
18196
|
|
|
17083
18197
|
|
|
17084
|
-
var keys = typeof Object.keys === 'function' && !hasArgsEnumBug ?
|
|
18198
|
+
var keys$1 = typeof Object.keys === 'function' && !hasArgsEnumBug ?
|
|
17085
18199
|
/*#__PURE__*/
|
|
17086
18200
|
_curry1(function keys(obj) {
|
|
17087
18201
|
return Object(obj) !== obj ? [] : Object.keys(obj);
|
|
@@ -17506,9 +18620,9 @@ function _equals(a, b, stackA, stackB) {
|
|
|
17506
18620
|
return false;
|
|
17507
18621
|
}
|
|
17508
18622
|
|
|
17509
|
-
var keysA = keys(a);
|
|
18623
|
+
var keysA = keys$1(a);
|
|
17510
18624
|
|
|
17511
|
-
if (keysA.length !== keys(b).length) {
|
|
18625
|
+
if (keysA.length !== keys$1(b).length) {
|
|
17512
18626
|
return false;
|
|
17513
18627
|
}
|
|
17514
18628
|
|
|
@@ -17740,7 +18854,7 @@ _dispatchable(['filter'], _xfilter, function (pred, filterable) {
|
|
|
17740
18854
|
}
|
|
17741
18855
|
|
|
17742
18856
|
return acc;
|
|
17743
|
-
}, {}, keys(filterable)) : // else
|
|
18857
|
+
}, {}, keys$1(filterable)) : // else
|
|
17744
18858
|
_filter(pred, filterable);
|
|
17745
18859
|
}));
|
|
17746
18860
|
|
|
@@ -17795,7 +18909,7 @@ function _toString(x, seen) {
|
|
|
17795
18909
|
case '[object Array]':
|
|
17796
18910
|
return '[' + _map(recur, x).concat(mapPairs(x, reject(function (k) {
|
|
17797
18911
|
return /^\d+$/.test(k);
|
|
17798
|
-
}, keys(x)))).join(', ') + ']';
|
|
18912
|
+
}, keys$1(x)))).join(', ') + ']';
|
|
17799
18913
|
|
|
17800
18914
|
case '[object Boolean]':
|
|
17801
18915
|
return typeof x === 'object' ? 'new Boolean(' + recur(x.valueOf()) + ')' : x.toString();
|
|
@@ -17824,7 +18938,7 @@ function _toString(x, seen) {
|
|
|
17824
18938
|
}
|
|
17825
18939
|
}
|
|
17826
18940
|
|
|
17827
|
-
return '{' + mapPairs(x, keys(x)).join(', ') + '}';
|
|
18941
|
+
return '{' + mapPairs(x, keys$1(x)).join(', ') + '}';
|
|
17828
18942
|
}
|
|
17829
18943
|
}
|
|
17830
18944
|
|
|
@@ -17865,7 +18979,7 @@ function _toString(x, seen) {
|
|
|
17865
18979
|
* R.toString(new Date('2001-02-03T04:05:06Z')); //=> 'new Date("2001-02-03T04:05:06.000Z")'
|
|
17866
18980
|
*/
|
|
17867
18981
|
|
|
17868
|
-
var toString$
|
|
18982
|
+
var toString$2 =
|
|
17869
18983
|
/*#__PURE__*/
|
|
17870
18984
|
_curry1(function toString(val) {
|
|
17871
18985
|
return _toString(val, []);
|
|
@@ -18062,7 +19176,7 @@ var test =
|
|
|
18062
19176
|
/*#__PURE__*/
|
|
18063
19177
|
_curry2(function test(pattern, str) {
|
|
18064
19178
|
if (!_isRegExp(pattern)) {
|
|
18065
|
-
throw new TypeError('‘test’ requires a value of type RegExp as its first argument; received ' + toString$
|
|
19179
|
+
throw new TypeError('‘test’ requires a value of type RegExp as its first argument; received ' + toString$2(pattern));
|
|
18066
19180
|
}
|
|
18067
19181
|
|
|
18068
19182
|
return _cloneRegExp(pattern).test(str);
|
|
@@ -18106,7 +19220,7 @@ const ButtonWithLink = ({
|
|
|
18106
19220
|
url: url,
|
|
18107
19221
|
disabled: disabled,
|
|
18108
19222
|
newTab: newTab,
|
|
18109
|
-
extraStyles:
|
|
19223
|
+
extraStyles: linkExtraStyles + " text-decoration: none; &:hover {\n text-decoration: none; }"
|
|
18110
19224
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, _extends({}, otherProps, {
|
|
18111
19225
|
extraStyles: extraStyles
|
|
18112
19226
|
})));
|
|
@@ -18351,7 +19465,7 @@ const cardRegistry = {
|
|
|
18351
19465
|
};
|
|
18352
19466
|
|
|
18353
19467
|
const backgroundColor$2 = {
|
|
18354
|
-
default: ""
|
|
19468
|
+
default: "" + TRANSPARENT
|
|
18355
19469
|
};
|
|
18356
19470
|
const textFontSize = {
|
|
18357
19471
|
default: "1.1rem"
|
|
@@ -18363,31 +19477,31 @@ const textLineHeight = {
|
|
|
18363
19477
|
default: "2rem"
|
|
18364
19478
|
};
|
|
18365
19479
|
const textColor = {
|
|
18366
|
-
default: ""
|
|
19480
|
+
default: "" + CHARADE_GREY
|
|
18367
19481
|
};
|
|
18368
19482
|
const disabledCheckColor = {
|
|
18369
|
-
default:
|
|
19483
|
+
default: WHITE + ";"
|
|
18370
19484
|
};
|
|
18371
19485
|
const checkColor = {
|
|
18372
|
-
default:
|
|
19486
|
+
default: WHITE + ";"
|
|
18373
19487
|
};
|
|
18374
19488
|
const errorStyles = {
|
|
18375
|
-
default: "border: 1px solid "
|
|
19489
|
+
default: "border: 1px solid " + RED + ";"
|
|
18376
19490
|
};
|
|
18377
19491
|
const focusedStyles = {
|
|
18378
|
-
default: "box-shadow: 0 0 5px 0 "
|
|
19492
|
+
default: "box-shadow: 0 0 5px 0 " + MATISSE_BLUE + ";"
|
|
18379
19493
|
};
|
|
18380
19494
|
const disabledCheckedStyles = {
|
|
18381
19495
|
default: "\n background: #6d717e;\n border: 1px solid #6d717e;\n"
|
|
18382
19496
|
};
|
|
18383
19497
|
const disabledStyles = {
|
|
18384
|
-
default: "\n background: "
|
|
19498
|
+
default: "\n background: " + SEASHELL_WHITE + ";\n border: 1px solid " + GHOST_GREY + ";\n"
|
|
18385
19499
|
};
|
|
18386
19500
|
const checkedStyles = {
|
|
18387
|
-
default: "\n background: "
|
|
19501
|
+
default: "\n background: " + MATISSE_BLUE + "; \n border: 1px solid " + MATISSE_BLUE + ";\n"
|
|
18388
19502
|
};
|
|
18389
19503
|
const defaultStyles = {
|
|
18390
|
-
default: "\n background: "
|
|
19504
|
+
default: "\n background: " + WHITE + "; \n border: 1px solid " + GHOST_GREY + ";\n"
|
|
18391
19505
|
};
|
|
18392
19506
|
const fallbackValues$c = {
|
|
18393
19507
|
backgroundColor: backgroundColor$2,
|
|
@@ -18460,7 +19574,7 @@ const Checkbox = ({
|
|
|
18460
19574
|
const [focused, setFocused] = React.useState(false);
|
|
18461
19575
|
|
|
18462
19576
|
const handleClick = (e, func) => {
|
|
18463
|
-
if ((e
|
|
19577
|
+
if ((e == null ? void 0 : e.keyCode) === 13) {
|
|
18464
19578
|
func();
|
|
18465
19579
|
}
|
|
18466
19580
|
};
|
|
@@ -18473,11 +19587,11 @@ const Checkbox = ({
|
|
|
18473
19587
|
onKeyDown: e => handleClick(e, onChange),
|
|
18474
19588
|
hiddenStyles: hidden,
|
|
18475
19589
|
background: themeValues.backgroundColor,
|
|
18476
|
-
extraStyles: "outline: none; "
|
|
19590
|
+
extraStyles: "outline: none; " + extraStyles
|
|
18477
19591
|
}, /*#__PURE__*/React__default.createElement(CheckboxLabelContainer, null, /*#__PURE__*/React__default.createElement(CheckboxContainer, {
|
|
18478
19592
|
"data-qa": "Checkbox"
|
|
18479
19593
|
}, /*#__PURE__*/React__default.createElement(HiddenCheckbox, {
|
|
18480
|
-
id: "checkbox-"
|
|
19594
|
+
id: "checkbox-" + name,
|
|
18481
19595
|
disabled: disabled,
|
|
18482
19596
|
name: name,
|
|
18483
19597
|
"aria-label": name,
|
|
@@ -18506,35 +19620,35 @@ const Checkbox = ({
|
|
|
18506
19620
|
variant: "p",
|
|
18507
19621
|
weight: themeValues.textFontWeight,
|
|
18508
19622
|
color: themeValues.textColor,
|
|
18509
|
-
extraStyles: textExtraStyles ?
|
|
19623
|
+
extraStyles: textExtraStyles ? textExtraStyles + " " + (disabled && "color: #6e727e; background-color: #f7f7f7;") + " " : "margin-left: 1rem " + (disabled && "color: #6e727e; background-color: #f7f7f7;")
|
|
18510
19624
|
}, title)));
|
|
18511
19625
|
};
|
|
18512
19626
|
|
|
18513
19627
|
var Checkbox$1 = themeComponent(Checkbox, "Checkbox", fallbackValues$c, "default");
|
|
18514
19628
|
|
|
18515
19629
|
const listBackgroundColor = {
|
|
18516
|
-
default: ""
|
|
18517
|
-
disabled: ""
|
|
19630
|
+
default: "" + ATHENS_GREY,
|
|
19631
|
+
disabled: "" + WHITE
|
|
18518
19632
|
};
|
|
18519
19633
|
const listItemColor = {
|
|
18520
|
-
default: ""
|
|
18521
|
-
disabled: ""
|
|
19634
|
+
default: "" + MINESHAFT_GREY,
|
|
19635
|
+
disabled: "" + STORM_GREY
|
|
18522
19636
|
};
|
|
18523
19637
|
const listItemBackgroundColor = {
|
|
18524
|
-
default: ""
|
|
18525
|
-
disabled: ""
|
|
19638
|
+
default: "" + WHITE,
|
|
19639
|
+
disabled: "" + ATHENS_GREY
|
|
18526
19640
|
};
|
|
18527
19641
|
const listItemBorderColor = {
|
|
18528
|
-
default: ""
|
|
18529
|
-
disabled: ""
|
|
19642
|
+
default: "" + GHOST_GREY,
|
|
19643
|
+
disabled: "" + GHOST_GREY
|
|
18530
19644
|
};
|
|
18531
19645
|
const radioButtonActive = {
|
|
18532
|
-
default: ""
|
|
18533
|
-
disabled: ""
|
|
19646
|
+
default: "" + BOSTON_BLUE,
|
|
19647
|
+
disabled: "" + GHOST_GREY
|
|
18534
19648
|
};
|
|
18535
19649
|
const radioButtonInactive = {
|
|
18536
|
-
default: ""
|
|
18537
|
-
disabled: ""
|
|
19650
|
+
default: "" + GHOST_GREY,
|
|
19651
|
+
disabled: "" + GHOST_GREY
|
|
18538
19652
|
};
|
|
18539
19653
|
const fallbackValues$d = {
|
|
18540
19654
|
listBackgroundColor,
|
|
@@ -18628,11 +19742,11 @@ const CheckboxListItem = ({
|
|
|
18628
19742
|
justify: "flex-start",
|
|
18629
19743
|
align: "center"
|
|
18630
19744
|
}, /*#__PURE__*/React__default.createElement(HiddenCheckboxInput, {
|
|
18631
|
-
id: "checkbox-"
|
|
19745
|
+
id: "checkbox-" + name + "-" + index
|
|
18632
19746
|
}), /*#__PURE__*/React__default.createElement(CheckboxLabel, {
|
|
18633
19747
|
name: name,
|
|
18634
19748
|
"aria-label": name,
|
|
18635
|
-
htmlFor: "checkbox-"
|
|
19749
|
+
htmlFor: "checkbox-" + name + "-" + index,
|
|
18636
19750
|
onClick: disabled ? noop : onSelect,
|
|
18637
19751
|
onKeyDown: disabled ? noop : onSelect,
|
|
18638
19752
|
tabIndex: 0
|
|
@@ -18682,7 +19796,7 @@ const CheckboxList = ({
|
|
|
18682
19796
|
color: themeValues.listItemColor,
|
|
18683
19797
|
background: themeValues.listItemBackgroundColor,
|
|
18684
19798
|
borderColor: themeValues.listItemBorderColor,
|
|
18685
|
-
key: "checkbox-item-"
|
|
19799
|
+
key: "checkbox-item-" + item.name,
|
|
18686
19800
|
text: item.text,
|
|
18687
19801
|
render: item.render,
|
|
18688
19802
|
isSelected: item.name === selectedName,
|
|
@@ -18698,6 +19812,484 @@ const CheckboxList = ({
|
|
|
18698
19812
|
|
|
18699
19813
|
var CheckboxList$1 = themeComponent(CheckboxList, "CheckboxList", fallbackValues$d, "default");
|
|
18700
19814
|
|
|
19815
|
+
var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
|
|
19816
|
+
var test$1 = {};
|
|
19817
|
+
|
|
19818
|
+
test$1[TO_STRING_TAG$2] = 'z';
|
|
19819
|
+
|
|
19820
|
+
var toStringTagSupport = String(test$1) === '[object z]';
|
|
19821
|
+
|
|
19822
|
+
var TO_STRING_TAG$3 = wellKnownSymbol('toStringTag');
|
|
19823
|
+
// ES3 wrong here
|
|
19824
|
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
19825
|
+
|
|
19826
|
+
// fallback for IE11 Script Access Denied error
|
|
19827
|
+
var tryGet = function (it, key) {
|
|
19828
|
+
try {
|
|
19829
|
+
return it[key];
|
|
19830
|
+
} catch (error) { /* empty */ }
|
|
19831
|
+
};
|
|
19832
|
+
|
|
19833
|
+
// getting tag from ES6+ `Object.prototype.toString`
|
|
19834
|
+
var classof = toStringTagSupport ? classofRaw : function (it) {
|
|
19835
|
+
var O, tag, result;
|
|
19836
|
+
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
19837
|
+
// @@toStringTag case
|
|
19838
|
+
: typeof (tag = tryGet(O = Object(it), TO_STRING_TAG$3)) == 'string' ? tag
|
|
19839
|
+
// builtinTag case
|
|
19840
|
+
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
19841
|
+
// ES3 arguments fallback
|
|
19842
|
+
: (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
|
19843
|
+
};
|
|
19844
|
+
|
|
19845
|
+
var toString_1 = function (argument) {
|
|
19846
|
+
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
19847
|
+
return String(argument);
|
|
19848
|
+
};
|
|
19849
|
+
|
|
19850
|
+
// `RegExp.prototype.flags` getter implementation
|
|
19851
|
+
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
19852
|
+
var regexpFlags = function () {
|
|
19853
|
+
var that = anObject(this);
|
|
19854
|
+
var result = '';
|
|
19855
|
+
if (that.global) result += 'g';
|
|
19856
|
+
if (that.ignoreCase) result += 'i';
|
|
19857
|
+
if (that.multiline) result += 'm';
|
|
19858
|
+
if (that.dotAll) result += 's';
|
|
19859
|
+
if (that.unicode) result += 'u';
|
|
19860
|
+
if (that.sticky) result += 'y';
|
|
19861
|
+
return result;
|
|
19862
|
+
};
|
|
19863
|
+
|
|
19864
|
+
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
19865
|
+
var $RegExp = global_1.RegExp;
|
|
19866
|
+
|
|
19867
|
+
var UNSUPPORTED_Y = fails(function () {
|
|
19868
|
+
var re = $RegExp('a', 'y');
|
|
19869
|
+
re.lastIndex = 2;
|
|
19870
|
+
return re.exec('abcd') != null;
|
|
19871
|
+
});
|
|
19872
|
+
|
|
19873
|
+
var BROKEN_CARET = fails(function () {
|
|
19874
|
+
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
19875
|
+
var re = $RegExp('^r', 'gy');
|
|
19876
|
+
re.lastIndex = 2;
|
|
19877
|
+
return re.exec('str') != null;
|
|
19878
|
+
});
|
|
19879
|
+
|
|
19880
|
+
var regexpStickyHelpers = {
|
|
19881
|
+
UNSUPPORTED_Y: UNSUPPORTED_Y,
|
|
19882
|
+
BROKEN_CARET: BROKEN_CARET
|
|
19883
|
+
};
|
|
19884
|
+
|
|
19885
|
+
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
19886
|
+
var $RegExp$1 = global_1.RegExp;
|
|
19887
|
+
|
|
19888
|
+
var regexpUnsupportedDotAll = fails(function () {
|
|
19889
|
+
var re = $RegExp$1('.', 's');
|
|
19890
|
+
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
|
19891
|
+
});
|
|
19892
|
+
|
|
19893
|
+
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
19894
|
+
var $RegExp$2 = global_1.RegExp;
|
|
19895
|
+
|
|
19896
|
+
var regexpUnsupportedNcg = fails(function () {
|
|
19897
|
+
var re = $RegExp$2('(?<a>b)', 'g');
|
|
19898
|
+
return re.exec('b').groups.a !== 'b' ||
|
|
19899
|
+
'b'.replace(re, '$<a>c') !== 'bc';
|
|
19900
|
+
});
|
|
19901
|
+
|
|
19902
|
+
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
19903
|
+
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
19904
|
+
|
|
19905
|
+
|
|
19906
|
+
|
|
19907
|
+
|
|
19908
|
+
|
|
19909
|
+
var getInternalState$1 = internalState.get;
|
|
19910
|
+
|
|
19911
|
+
|
|
19912
|
+
|
|
19913
|
+
var nativeExec = RegExp.prototype.exec;
|
|
19914
|
+
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
19915
|
+
|
|
19916
|
+
var patchedExec = nativeExec;
|
|
19917
|
+
|
|
19918
|
+
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
19919
|
+
var re1 = /a/;
|
|
19920
|
+
var re2 = /b*/g;
|
|
19921
|
+
nativeExec.call(re1, 'a');
|
|
19922
|
+
nativeExec.call(re2, 'a');
|
|
19923
|
+
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
19924
|
+
})();
|
|
19925
|
+
|
|
19926
|
+
var UNSUPPORTED_Y$1 = regexpStickyHelpers.UNSUPPORTED_Y || regexpStickyHelpers.BROKEN_CARET;
|
|
19927
|
+
|
|
19928
|
+
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
|
19929
|
+
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
|
19930
|
+
|
|
19931
|
+
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1 || regexpUnsupportedDotAll || regexpUnsupportedNcg;
|
|
19932
|
+
|
|
19933
|
+
if (PATCH) {
|
|
19934
|
+
// eslint-disable-next-line max-statements -- TODO
|
|
19935
|
+
patchedExec = function exec(string) {
|
|
19936
|
+
var re = this;
|
|
19937
|
+
var state = getInternalState$1(re);
|
|
19938
|
+
var str = toString_1(string);
|
|
19939
|
+
var raw = state.raw;
|
|
19940
|
+
var result, reCopy, lastIndex, match, i, object, group;
|
|
19941
|
+
|
|
19942
|
+
if (raw) {
|
|
19943
|
+
raw.lastIndex = re.lastIndex;
|
|
19944
|
+
result = patchedExec.call(raw, str);
|
|
19945
|
+
re.lastIndex = raw.lastIndex;
|
|
19946
|
+
return result;
|
|
19947
|
+
}
|
|
19948
|
+
|
|
19949
|
+
var groups = state.groups;
|
|
19950
|
+
var sticky = UNSUPPORTED_Y$1 && re.sticky;
|
|
19951
|
+
var flags = regexpFlags.call(re);
|
|
19952
|
+
var source = re.source;
|
|
19953
|
+
var charsAdded = 0;
|
|
19954
|
+
var strCopy = str;
|
|
19955
|
+
|
|
19956
|
+
if (sticky) {
|
|
19957
|
+
flags = flags.replace('y', '');
|
|
19958
|
+
if (flags.indexOf('g') === -1) {
|
|
19959
|
+
flags += 'g';
|
|
19960
|
+
}
|
|
19961
|
+
|
|
19962
|
+
strCopy = str.slice(re.lastIndex);
|
|
19963
|
+
// Support anchored sticky behavior.
|
|
19964
|
+
if (re.lastIndex > 0 && (!re.multiline || re.multiline && str.charAt(re.lastIndex - 1) !== '\n')) {
|
|
19965
|
+
source = '(?: ' + source + ')';
|
|
19966
|
+
strCopy = ' ' + strCopy;
|
|
19967
|
+
charsAdded++;
|
|
19968
|
+
}
|
|
19969
|
+
// ^(? + rx + ) is needed, in combination with some str slicing, to
|
|
19970
|
+
// simulate the 'y' flag.
|
|
19971
|
+
reCopy = new RegExp('^(?:' + source + ')', flags);
|
|
19972
|
+
}
|
|
19973
|
+
|
|
19974
|
+
if (NPCG_INCLUDED) {
|
|
19975
|
+
reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
|
|
19976
|
+
}
|
|
19977
|
+
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
19978
|
+
|
|
19979
|
+
match = nativeExec.call(sticky ? reCopy : re, strCopy);
|
|
19980
|
+
|
|
19981
|
+
if (sticky) {
|
|
19982
|
+
if (match) {
|
|
19983
|
+
match.input = match.input.slice(charsAdded);
|
|
19984
|
+
match[0] = match[0].slice(charsAdded);
|
|
19985
|
+
match.index = re.lastIndex;
|
|
19986
|
+
re.lastIndex += match[0].length;
|
|
19987
|
+
} else re.lastIndex = 0;
|
|
19988
|
+
} else if (UPDATES_LAST_INDEX_WRONG && match) {
|
|
19989
|
+
re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
|
|
19990
|
+
}
|
|
19991
|
+
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
19992
|
+
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
19993
|
+
// for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
|
|
19994
|
+
nativeReplace.call(match[0], reCopy, function () {
|
|
19995
|
+
for (i = 1; i < arguments.length - 2; i++) {
|
|
19996
|
+
if (arguments[i] === undefined) match[i] = undefined;
|
|
19997
|
+
}
|
|
19998
|
+
});
|
|
19999
|
+
}
|
|
20000
|
+
|
|
20001
|
+
if (match && groups) {
|
|
20002
|
+
match.groups = object = objectCreate(null);
|
|
20003
|
+
for (i = 0; i < groups.length; i++) {
|
|
20004
|
+
group = groups[i];
|
|
20005
|
+
object[group[0]] = match[group[1]];
|
|
20006
|
+
}
|
|
20007
|
+
}
|
|
20008
|
+
|
|
20009
|
+
return match;
|
|
20010
|
+
};
|
|
20011
|
+
}
|
|
20012
|
+
|
|
20013
|
+
var regexpExec = patchedExec;
|
|
20014
|
+
|
|
20015
|
+
// `RegExp.prototype.exec` method
|
|
20016
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
20017
|
+
_export({ target: 'RegExp', proto: true, forced: /./.exec !== regexpExec }, {
|
|
20018
|
+
exec: regexpExec
|
|
20019
|
+
});
|
|
20020
|
+
|
|
20021
|
+
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
20022
|
+
|
|
20023
|
+
|
|
20024
|
+
|
|
20025
|
+
|
|
20026
|
+
|
|
20027
|
+
|
|
20028
|
+
|
|
20029
|
+
var SPECIES = wellKnownSymbol('species');
|
|
20030
|
+
var RegExpPrototype = RegExp.prototype;
|
|
20031
|
+
|
|
20032
|
+
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
20033
|
+
var SYMBOL = wellKnownSymbol(KEY);
|
|
20034
|
+
|
|
20035
|
+
var DELEGATES_TO_SYMBOL = !fails(function () {
|
|
20036
|
+
// String methods call symbol-named RegEp methods
|
|
20037
|
+
var O = {};
|
|
20038
|
+
O[SYMBOL] = function () { return 7; };
|
|
20039
|
+
return ''[KEY](O) != 7;
|
|
20040
|
+
});
|
|
20041
|
+
|
|
20042
|
+
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
|
|
20043
|
+
// Symbol-named RegExp methods call .exec
|
|
20044
|
+
var execCalled = false;
|
|
20045
|
+
var re = /a/;
|
|
20046
|
+
|
|
20047
|
+
if (KEY === 'split') {
|
|
20048
|
+
// We can't use real regex here since it causes deoptimization
|
|
20049
|
+
// and serious performance degradation in V8
|
|
20050
|
+
// https://github.com/zloirock/core-js/issues/306
|
|
20051
|
+
re = {};
|
|
20052
|
+
// RegExp[@@split] doesn't call the regex's exec method, but first creates
|
|
20053
|
+
// a new one. We need to return the patched regex when creating the new one.
|
|
20054
|
+
re.constructor = {};
|
|
20055
|
+
re.constructor[SPECIES] = function () { return re; };
|
|
20056
|
+
re.flags = '';
|
|
20057
|
+
re[SYMBOL] = /./[SYMBOL];
|
|
20058
|
+
}
|
|
20059
|
+
|
|
20060
|
+
re.exec = function () { execCalled = true; return null; };
|
|
20061
|
+
|
|
20062
|
+
re[SYMBOL]('');
|
|
20063
|
+
return !execCalled;
|
|
20064
|
+
});
|
|
20065
|
+
|
|
20066
|
+
if (
|
|
20067
|
+
!DELEGATES_TO_SYMBOL ||
|
|
20068
|
+
!DELEGATES_TO_EXEC ||
|
|
20069
|
+
FORCED
|
|
20070
|
+
) {
|
|
20071
|
+
var nativeRegExpMethod = /./[SYMBOL];
|
|
20072
|
+
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
|
20073
|
+
var $exec = regexp.exec;
|
|
20074
|
+
if ($exec === regexpExec || $exec === RegExpPrototype.exec) {
|
|
20075
|
+
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
|
20076
|
+
// The native String method already delegates to @@method (this
|
|
20077
|
+
// polyfilled function), leasing to infinite recursion.
|
|
20078
|
+
// We avoid it by directly calling the native @@method method.
|
|
20079
|
+
return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
|
|
20080
|
+
}
|
|
20081
|
+
return { done: true, value: nativeMethod.call(str, regexp, arg2) };
|
|
20082
|
+
}
|
|
20083
|
+
return { done: false };
|
|
20084
|
+
});
|
|
20085
|
+
|
|
20086
|
+
redefine(String.prototype, KEY, methods[0]);
|
|
20087
|
+
redefine(RegExpPrototype, SYMBOL, methods[1]);
|
|
20088
|
+
}
|
|
20089
|
+
|
|
20090
|
+
if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
|
|
20091
|
+
};
|
|
20092
|
+
|
|
20093
|
+
var createMethod$1 = function (CONVERT_TO_STRING) {
|
|
20094
|
+
return function ($this, pos) {
|
|
20095
|
+
var S = toString_1(requireObjectCoercible($this));
|
|
20096
|
+
var position = toIntegerOrInfinity(pos);
|
|
20097
|
+
var size = S.length;
|
|
20098
|
+
var first, second;
|
|
20099
|
+
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
|
20100
|
+
first = S.charCodeAt(position);
|
|
20101
|
+
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
|
20102
|
+
|| (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
|
|
20103
|
+
? CONVERT_TO_STRING ? S.charAt(position) : first
|
|
20104
|
+
: CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
|
|
20105
|
+
};
|
|
20106
|
+
};
|
|
20107
|
+
|
|
20108
|
+
var stringMultibyte = {
|
|
20109
|
+
// `String.prototype.codePointAt` method
|
|
20110
|
+
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
|
|
20111
|
+
codeAt: createMethod$1(false),
|
|
20112
|
+
// `String.prototype.at` method
|
|
20113
|
+
// https://github.com/mathiasbynens/String.prototype.at
|
|
20114
|
+
charAt: createMethod$1(true)
|
|
20115
|
+
};
|
|
20116
|
+
|
|
20117
|
+
var charAt = stringMultibyte.charAt;
|
|
20118
|
+
|
|
20119
|
+
// `AdvanceStringIndex` abstract operation
|
|
20120
|
+
// https://tc39.es/ecma262/#sec-advancestringindex
|
|
20121
|
+
var advanceStringIndex = function (S, index, unicode) {
|
|
20122
|
+
return index + (unicode ? charAt(S, index).length : 1);
|
|
20123
|
+
};
|
|
20124
|
+
|
|
20125
|
+
var floor$1 = Math.floor;
|
|
20126
|
+
var replace = ''.replace;
|
|
20127
|
+
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
|
|
20128
|
+
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
|
|
20129
|
+
|
|
20130
|
+
// `GetSubstitution` abstract operation
|
|
20131
|
+
// https://tc39.es/ecma262/#sec-getsubstitution
|
|
20132
|
+
var getSubstitution = function (matched, str, position, captures, namedCaptures, replacement) {
|
|
20133
|
+
var tailPos = position + matched.length;
|
|
20134
|
+
var m = captures.length;
|
|
20135
|
+
var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
|
|
20136
|
+
if (namedCaptures !== undefined) {
|
|
20137
|
+
namedCaptures = toObject(namedCaptures);
|
|
20138
|
+
symbols = SUBSTITUTION_SYMBOLS;
|
|
20139
|
+
}
|
|
20140
|
+
return replace.call(replacement, symbols, function (match, ch) {
|
|
20141
|
+
var capture;
|
|
20142
|
+
switch (ch.charAt(0)) {
|
|
20143
|
+
case '$': return '$';
|
|
20144
|
+
case '&': return matched;
|
|
20145
|
+
case '`': return str.slice(0, position);
|
|
20146
|
+
case "'": return str.slice(tailPos);
|
|
20147
|
+
case '<':
|
|
20148
|
+
capture = namedCaptures[ch.slice(1, -1)];
|
|
20149
|
+
break;
|
|
20150
|
+
default: // \d\d?
|
|
20151
|
+
var n = +ch;
|
|
20152
|
+
if (n === 0) return match;
|
|
20153
|
+
if (n > m) {
|
|
20154
|
+
var f = floor$1(n / 10);
|
|
20155
|
+
if (f === 0) return match;
|
|
20156
|
+
if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
|
|
20157
|
+
return match;
|
|
20158
|
+
}
|
|
20159
|
+
capture = captures[n - 1];
|
|
20160
|
+
}
|
|
20161
|
+
return capture === undefined ? '' : capture;
|
|
20162
|
+
});
|
|
20163
|
+
};
|
|
20164
|
+
|
|
20165
|
+
// `RegExpExec` abstract operation
|
|
20166
|
+
// https://tc39.es/ecma262/#sec-regexpexec
|
|
20167
|
+
var regexpExecAbstract = function (R, S) {
|
|
20168
|
+
var exec = R.exec;
|
|
20169
|
+
if (isCallable(exec)) {
|
|
20170
|
+
var result = exec.call(R, S);
|
|
20171
|
+
if (result !== null) anObject(result);
|
|
20172
|
+
return result;
|
|
20173
|
+
}
|
|
20174
|
+
if (classofRaw(R) === 'RegExp') return regexpExec.call(R, S);
|
|
20175
|
+
throw TypeError('RegExp#exec called on incompatible receiver');
|
|
20176
|
+
};
|
|
20177
|
+
|
|
20178
|
+
var REPLACE = wellKnownSymbol('replace');
|
|
20179
|
+
var max$1 = Math.max;
|
|
20180
|
+
var min$2 = Math.min;
|
|
20181
|
+
|
|
20182
|
+
var maybeToString = function (it) {
|
|
20183
|
+
return it === undefined ? it : String(it);
|
|
20184
|
+
};
|
|
20185
|
+
|
|
20186
|
+
// IE <= 11 replaces $0 with the whole match, as if it was $&
|
|
20187
|
+
// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
|
|
20188
|
+
var REPLACE_KEEPS_$0 = (function () {
|
|
20189
|
+
// eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
|
|
20190
|
+
return 'a'.replace(/./, '$0') === '$0';
|
|
20191
|
+
})();
|
|
20192
|
+
|
|
20193
|
+
// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
|
|
20194
|
+
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
|
|
20195
|
+
if (/./[REPLACE]) {
|
|
20196
|
+
return /./[REPLACE]('a', '$0') === '';
|
|
20197
|
+
}
|
|
20198
|
+
return false;
|
|
20199
|
+
})();
|
|
20200
|
+
|
|
20201
|
+
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
|
|
20202
|
+
var re = /./;
|
|
20203
|
+
re.exec = function () {
|
|
20204
|
+
var result = [];
|
|
20205
|
+
result.groups = { a: '7' };
|
|
20206
|
+
return result;
|
|
20207
|
+
};
|
|
20208
|
+
// eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
|
|
20209
|
+
return ''.replace(re, '$<a>') !== '7';
|
|
20210
|
+
});
|
|
20211
|
+
|
|
20212
|
+
// @@replace logic
|
|
20213
|
+
fixRegexpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
|
|
20214
|
+
var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
|
|
20215
|
+
|
|
20216
|
+
return [
|
|
20217
|
+
// `String.prototype.replace` method
|
|
20218
|
+
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
|
20219
|
+
function replace(searchValue, replaceValue) {
|
|
20220
|
+
var O = requireObjectCoercible(this);
|
|
20221
|
+
var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE);
|
|
20222
|
+
return replacer
|
|
20223
|
+
? replacer.call(searchValue, O, replaceValue)
|
|
20224
|
+
: nativeReplace.call(toString_1(O), searchValue, replaceValue);
|
|
20225
|
+
},
|
|
20226
|
+
// `RegExp.prototype[@@replace]` method
|
|
20227
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
|
20228
|
+
function (string, replaceValue) {
|
|
20229
|
+
var rx = anObject(this);
|
|
20230
|
+
var S = toString_1(string);
|
|
20231
|
+
|
|
20232
|
+
if (
|
|
20233
|
+
typeof replaceValue === 'string' &&
|
|
20234
|
+
replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1 &&
|
|
20235
|
+
replaceValue.indexOf('$<') === -1
|
|
20236
|
+
) {
|
|
20237
|
+
var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
|
|
20238
|
+
if (res.done) return res.value;
|
|
20239
|
+
}
|
|
20240
|
+
|
|
20241
|
+
var functionalReplace = isCallable(replaceValue);
|
|
20242
|
+
if (!functionalReplace) replaceValue = toString_1(replaceValue);
|
|
20243
|
+
|
|
20244
|
+
var global = rx.global;
|
|
20245
|
+
if (global) {
|
|
20246
|
+
var fullUnicode = rx.unicode;
|
|
20247
|
+
rx.lastIndex = 0;
|
|
20248
|
+
}
|
|
20249
|
+
var results = [];
|
|
20250
|
+
while (true) {
|
|
20251
|
+
var result = regexpExecAbstract(rx, S);
|
|
20252
|
+
if (result === null) break;
|
|
20253
|
+
|
|
20254
|
+
results.push(result);
|
|
20255
|
+
if (!global) break;
|
|
20256
|
+
|
|
20257
|
+
var matchStr = toString_1(result[0]);
|
|
20258
|
+
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
|
20259
|
+
}
|
|
20260
|
+
|
|
20261
|
+
var accumulatedResult = '';
|
|
20262
|
+
var nextSourcePosition = 0;
|
|
20263
|
+
for (var i = 0; i < results.length; i++) {
|
|
20264
|
+
result = results[i];
|
|
20265
|
+
|
|
20266
|
+
var matched = toString_1(result[0]);
|
|
20267
|
+
var position = max$1(min$2(toIntegerOrInfinity(result.index), S.length), 0);
|
|
20268
|
+
var captures = [];
|
|
20269
|
+
// NOTE: This is equivalent to
|
|
20270
|
+
// captures = result.slice(1).map(maybeToString)
|
|
20271
|
+
// but for some reason `nativeSlice.call(result, 1, result.length)` (called in
|
|
20272
|
+
// the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
|
|
20273
|
+
// causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
|
|
20274
|
+
for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
|
|
20275
|
+
var namedCaptures = result.groups;
|
|
20276
|
+
if (functionalReplace) {
|
|
20277
|
+
var replacerArgs = [matched].concat(captures, position, S);
|
|
20278
|
+
if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
|
|
20279
|
+
var replacement = toString_1(replaceValue.apply(undefined, replacerArgs));
|
|
20280
|
+
} else {
|
|
20281
|
+
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
|
20282
|
+
}
|
|
20283
|
+
if (position >= nextSourcePosition) {
|
|
20284
|
+
accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
|
|
20285
|
+
nextSourcePosition = position + matched.length;
|
|
20286
|
+
}
|
|
20287
|
+
}
|
|
20288
|
+
return accumulatedResult + S.slice(nextSourcePosition);
|
|
20289
|
+
}
|
|
20290
|
+
];
|
|
20291
|
+
}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
|
|
20292
|
+
|
|
18701
20293
|
const DropdownIcon = () => /*#__PURE__*/React__default.createElement("svg", {
|
|
18702
20294
|
version: "1.2",
|
|
18703
20295
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -18719,8 +20311,8 @@ const DropdownIcon = () => /*#__PURE__*/React__default.createElement("svg", {
|
|
|
18719
20311
|
vectorEffect: "non-scaling-stroke"
|
|
18720
20312
|
})))));
|
|
18721
20313
|
|
|
18722
|
-
const selectedColor = ""
|
|
18723
|
-
const hoverColor$3 = ""
|
|
20314
|
+
const selectedColor = "" + MATISSE_BLUE;
|
|
20315
|
+
const hoverColor$3 = "" + HOVER_LIGHT_BLUE;
|
|
18724
20316
|
const fallbackValues$e = {
|
|
18725
20317
|
selectedColor,
|
|
18726
20318
|
hoverColor: hoverColor$3
|
|
@@ -18888,7 +20480,7 @@ const Dropdown = ({
|
|
|
18888
20480
|
onClick: onClick,
|
|
18889
20481
|
padding: "0",
|
|
18890
20482
|
width: "100%",
|
|
18891
|
-
hoverStyles: "background-color: "
|
|
20483
|
+
hoverStyles: "background-color: " + themeValues.hoverColor + ";",
|
|
18892
20484
|
"aria-expanded": isOpen,
|
|
18893
20485
|
extraStyles: disabled && "color: #6e727e;\n background-color: #f7f7f7;\n pointer-events: none;"
|
|
18894
20486
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -18896,13 +20488,13 @@ const Dropdown = ({
|
|
|
18896
20488
|
background: isOpen ? themeValues.hoverColor : WHITE,
|
|
18897
20489
|
width: "100%",
|
|
18898
20490
|
padding: "12px",
|
|
18899
|
-
hoverStyles: "background-color: "
|
|
20491
|
+
hoverStyles: "background-color: " + themeValues.hoverColor + ";",
|
|
18900
20492
|
borderSize: "1px",
|
|
18901
20493
|
borderColor: isError ? ERROR_COLOR : isOpen ? themeValues.selectedColor : GREY_CHATEAU,
|
|
18902
20494
|
borderRadius: "2px",
|
|
18903
20495
|
tabIndex: 0,
|
|
18904
20496
|
dataQa: placeholder,
|
|
18905
|
-
extraStyles: "height: 48px;\n "
|
|
20497
|
+
extraStyles: "height: 48px;\n " + (disabled && "color: #6e727e;\n background-color: #f7f7f7;\n pointer-events: none;") + "\n "
|
|
18906
20498
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
18907
20499
|
direction: "row",
|
|
18908
20500
|
bottomItem: 2
|
|
@@ -18914,7 +20506,7 @@ const Dropdown = ({
|
|
|
18914
20506
|
}) : /*#__PURE__*/React__default.createElement(Text$1, {
|
|
18915
20507
|
variant: "p",
|
|
18916
20508
|
extraStyles: disabled && "color: #6e727e;\n background-color: #f7f7f7;\n pointer-events: none;"
|
|
18917
|
-
}, value ? (_options$find = options.find(option => option.value === value))
|
|
20509
|
+
}, value ? (_options$find = options.find(option => option.value === value)) == null ? void 0 : _options$find.text : placeholder), /*#__PURE__*/React__default.createElement(IconWrapper, {
|
|
18918
20510
|
open: isOpen
|
|
18919
20511
|
}, /*#__PURE__*/React__default.createElement(DropdownIcon, null)))), isOpen ? /*#__PURE__*/React__default.createElement(DropdownContentWrapper, {
|
|
18920
20512
|
maxHeight: maxHeight,
|
|
@@ -18937,7 +20529,7 @@ const Dropdown = ({
|
|
|
18937
20529
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
18938
20530
|
variant: "p",
|
|
18939
20531
|
color: choice.value === value ? WHITE : disabledValues.includes(choice.value) ? STORM_GREY : MINESHAFT_GREY,
|
|
18940
|
-
extraStyles: "padding-left: 16px; \n cursor: "
|
|
20532
|
+
extraStyles: "padding-left: 16px; \n cursor: " + (disabledValues.includes(choice.value) ? "default" : "pointer") + "; \n white-space: nowrap; \n overflow: hidden; \n text-overflow: ellipsis;"
|
|
18941
20533
|
}, choice.text))))) : /*#__PURE__*/React__default.createElement(React.Fragment, null));
|
|
18942
20534
|
};
|
|
18943
20535
|
|
|
@@ -18964,30 +20556,30 @@ const SelectOption = styled__default.option.withConfig({
|
|
|
18964
20556
|
})([""]);
|
|
18965
20557
|
|
|
18966
20558
|
const linkColor$1 = {
|
|
18967
|
-
default: ""
|
|
18968
|
-
disabled: ""
|
|
20559
|
+
default: "" + MATISSE_BLUE,
|
|
20560
|
+
disabled: "" + MATISSE_BLUE
|
|
18969
20561
|
};
|
|
18970
20562
|
const formBackgroundColor = {
|
|
18971
|
-
default: ""
|
|
18972
|
-
disabled: ""
|
|
18973
|
-
checkout: ""
|
|
18974
|
-
collapsible: ""
|
|
20563
|
+
default: "" + WHITE,
|
|
20564
|
+
disabled: "" + WHITE,
|
|
20565
|
+
checkout: "" + ATHENS_GREY,
|
|
20566
|
+
collapsible: "" + ATHENS_GREY
|
|
18975
20567
|
};
|
|
18976
20568
|
const inputBackgroundColor = {
|
|
18977
|
-
default: ""
|
|
18978
|
-
disabled: ""
|
|
20569
|
+
default: "" + WHITE,
|
|
20570
|
+
disabled: "" + SEASHELL_WHITE
|
|
18979
20571
|
};
|
|
18980
20572
|
const color$5 = {
|
|
18981
|
-
default: ""
|
|
18982
|
-
disabled: ""
|
|
20573
|
+
default: "" + MINESHAFT_GREY,
|
|
20574
|
+
disabled: "" + DUSTY_GREY
|
|
18983
20575
|
};
|
|
18984
20576
|
const labelColor = {
|
|
18985
|
-
default: ""
|
|
18986
|
-
disabled: ""
|
|
20577
|
+
default: "" + CHARADE_GREY,
|
|
20578
|
+
disabled: "" + CHARADE_GREY
|
|
18987
20579
|
};
|
|
18988
20580
|
const borderColor = {
|
|
18989
|
-
default: ""
|
|
18990
|
-
disabled: ""
|
|
20581
|
+
default: "" + GREY_CHATEAU,
|
|
20582
|
+
disabled: "" + GREY_CHATEAU
|
|
18991
20583
|
};
|
|
18992
20584
|
const lineHeight$2 = {
|
|
18993
20585
|
default: "1rem",
|
|
@@ -19002,8 +20594,8 @@ const errorFontSize = {
|
|
|
19002
20594
|
disabled: "0.75rem"
|
|
19003
20595
|
};
|
|
19004
20596
|
const fontWeight$2 = {
|
|
19005
|
-
default: ""
|
|
19006
|
-
disabled: ""
|
|
20597
|
+
default: "" + FONT_WEIGHT_REGULAR,
|
|
20598
|
+
disabled: "" + FONT_WEIGHT_REGULAR
|
|
19007
20599
|
};
|
|
19008
20600
|
const hoverFocusStyles = {
|
|
19009
20601
|
default: "color: #0E506D; outline: none; text-decoration: underline; ",
|
|
@@ -19088,7 +20680,7 @@ const FormSelect = ({
|
|
|
19088
20680
|
weight: themeValues.fontWeight,
|
|
19089
20681
|
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }"
|
|
19090
20682
|
}, errorMessages[field.errors[0]]) : /*#__PURE__*/React__default.createElement(Text$1, {
|
|
19091
|
-
extraStyles: "height: "
|
|
20683
|
+
extraStyles: "height: " + themeValues.lineHeight + ";"
|
|
19092
20684
|
})));
|
|
19093
20685
|
};
|
|
19094
20686
|
|
|
@@ -19964,7 +21556,7 @@ const Detail = ({
|
|
|
19964
21556
|
var Detail$1 = themeComponent(Detail, "Detail", fallbacks, "regular");
|
|
19965
21557
|
|
|
19966
21558
|
const backgroundColor$3 = WHITE;
|
|
19967
|
-
const boxShadow = "0px 2px 14px 0px "
|
|
21559
|
+
const boxShadow = "0px 2px 14px 0px " + ATHENS_GREY + ", 0px 3px 8px 0px " + GHOST_GREY;
|
|
19968
21560
|
const fallbackValues$h = {
|
|
19969
21561
|
backgroundColor: backgroundColor$3,
|
|
19970
21562
|
boxShadow
|
|
@@ -20311,30 +21903,30 @@ var FormattedInput = function FormattedInput(_ref) {
|
|
|
20311
21903
|
};
|
|
20312
21904
|
|
|
20313
21905
|
const linkColor$2 = {
|
|
20314
|
-
default: ""
|
|
20315
|
-
disabled: ""
|
|
21906
|
+
default: "" + MATISSE_BLUE,
|
|
21907
|
+
disabled: "" + MATISSE_BLUE
|
|
20316
21908
|
};
|
|
20317
21909
|
const formBackgroundColor$1 = {
|
|
20318
|
-
default: ""
|
|
20319
|
-
disabled: ""
|
|
20320
|
-
checkout: ""
|
|
20321
|
-
collapsible: ""
|
|
21910
|
+
default: "" + WHITE,
|
|
21911
|
+
disabled: "" + WHITE,
|
|
21912
|
+
checkout: "" + ATHENS_GREY,
|
|
21913
|
+
collapsible: "" + ATHENS_GREY
|
|
20322
21914
|
};
|
|
20323
21915
|
const inputBackgroundColor$1 = {
|
|
20324
|
-
default: ""
|
|
20325
|
-
disabled: ""
|
|
21916
|
+
default: "" + WHITE,
|
|
21917
|
+
disabled: "" + SEASHELL_WHITE
|
|
20326
21918
|
};
|
|
20327
21919
|
const color$6 = {
|
|
20328
|
-
default: ""
|
|
20329
|
-
disabled: ""
|
|
21920
|
+
default: "" + MINESHAFT_GREY,
|
|
21921
|
+
disabled: "" + DUSTY_GREY
|
|
20330
21922
|
};
|
|
20331
21923
|
const labelColor$1 = {
|
|
20332
|
-
default: ""
|
|
20333
|
-
disabled: ""
|
|
21924
|
+
default: "" + CHARADE_GREY,
|
|
21925
|
+
disabled: "" + CHARADE_GREY
|
|
20334
21926
|
};
|
|
20335
21927
|
const borderColor$1 = {
|
|
20336
|
-
default: ""
|
|
20337
|
-
disabled: ""
|
|
21928
|
+
default: "" + GREY_CHATEAU,
|
|
21929
|
+
disabled: "" + GREY_CHATEAU
|
|
20338
21930
|
};
|
|
20339
21931
|
const lineHeight$3 = {
|
|
20340
21932
|
default: "1rem",
|
|
@@ -20349,15 +21941,15 @@ const errorFontSize$1 = {
|
|
|
20349
21941
|
disabled: "0.75rem"
|
|
20350
21942
|
};
|
|
20351
21943
|
const fontWeight$3 = {
|
|
20352
|
-
default: ""
|
|
20353
|
-
disabled: ""
|
|
21944
|
+
default: "" + FONT_WEIGHT_REGULAR,
|
|
21945
|
+
disabled: "" + FONT_WEIGHT_REGULAR
|
|
20354
21946
|
};
|
|
20355
21947
|
const hoverFocusStyles$1 = {
|
|
20356
21948
|
default: "color: #0E506D; outline: none; text-decoration: underline; ",
|
|
20357
21949
|
disabled: "color: #6D717E;"
|
|
20358
21950
|
};
|
|
20359
21951
|
const formFooterPanel = {
|
|
20360
|
-
default: ""
|
|
21952
|
+
default: "" + INFO_BLUE
|
|
20361
21953
|
};
|
|
20362
21954
|
const fallbackValues$i = {
|
|
20363
21955
|
linkColor: linkColor$2,
|
|
@@ -20390,7 +21982,7 @@ const InputField = styled__default.input.withConfig({
|
|
|
20390
21982
|
}) => themeValues.color && themeValues.color, ({
|
|
20391
21983
|
background,
|
|
20392
21984
|
themeValues
|
|
20393
|
-
}) => background && "background: "
|
|
21985
|
+
}) => background && "background: " + themeValues.inputBackgroundColor + " url(" + background + ") no-repeat right 0.5rem center;", ROYAL_BLUE, ({
|
|
20394
21986
|
disabled
|
|
20395
21987
|
}) => disabled && styled.css(["color:#6e727e;background-color:#f7f7f7;"]), ({
|
|
20396
21988
|
extraStyles
|
|
@@ -20523,7 +22115,7 @@ const FormInput = ({
|
|
|
20523
22115
|
weight: themeValues.fontWeight,
|
|
20524
22116
|
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }"
|
|
20525
22117
|
}, errorMessages[field.errors[0]]) : /*#__PURE__*/React__default.createElement(Text$1, {
|
|
20526
|
-
extraStyles: "height: "
|
|
22118
|
+
extraStyles: "height: " + themeValues.lineHeight + ";"
|
|
20527
22119
|
}), !isMobile && decorator && /*#__PURE__*/React__default.createElement(Box, {
|
|
20528
22120
|
padding: "0 0 0 auto"
|
|
20529
22121
|
}, decorator)));
|
|
@@ -20609,8 +22201,8 @@ const padding$1 = {
|
|
|
20609
22201
|
radio: "0.625rem 0"
|
|
20610
22202
|
};
|
|
20611
22203
|
const color$7 = {
|
|
20612
|
-
default: ""
|
|
20613
|
-
radio: ""
|
|
22204
|
+
default: "" + CHARADE_GREY,
|
|
22205
|
+
radio: "" + MINESHAFT_GREY
|
|
20614
22206
|
};
|
|
20615
22207
|
const fallbackValues$j = {
|
|
20616
22208
|
fontSize: fontSize$8,
|
|
@@ -20634,29 +22226,29 @@ const FormattedAddress = ({
|
|
|
20634
22226
|
}, name && /*#__PURE__*/React__default.createElement(Text$1, {
|
|
20635
22227
|
variant: "p",
|
|
20636
22228
|
color: themeValues.color,
|
|
20637
|
-
dataQa:
|
|
22229
|
+
dataQa: qaPrefix + "-name"
|
|
20638
22230
|
}, name), /*#__PURE__*/React__default.createElement(Box, {
|
|
20639
22231
|
padding: "0"
|
|
20640
22232
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
20641
22233
|
variant: "p",
|
|
20642
22234
|
color: themeValues.color,
|
|
20643
|
-
dataQa:
|
|
22235
|
+
dataQa: qaPrefix + "-1"
|
|
20644
22236
|
}, street1), street2 && /*#__PURE__*/React__default.createElement(Text$1, {
|
|
20645
22237
|
variant: "p",
|
|
20646
|
-
dataQa:
|
|
22238
|
+
dataQa: qaPrefix + "-2"
|
|
20647
22239
|
}, ", ", street2)), /*#__PURE__*/React__default.createElement(Box, {
|
|
20648
22240
|
padding: "0"
|
|
20649
22241
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
20650
22242
|
variant: "p",
|
|
20651
22243
|
color: themeValues.color,
|
|
20652
|
-
dataQa:
|
|
20653
|
-
}, city, ", ", stateProvince, " "
|
|
22244
|
+
dataQa: qaPrefix + "-3"
|
|
22245
|
+
}, city, ", ", stateProvince, " " + zip, country ? " " + country : "")));
|
|
20654
22246
|
};
|
|
20655
22247
|
|
|
20656
22248
|
var FormattedAddress$1 = themeComponent(FormattedAddress, "FormattedAddress", fallbackValues$j, "default");
|
|
20657
22249
|
|
|
20658
|
-
const textColor$1 = ""
|
|
20659
|
-
const autopayTextColor = ""
|
|
22250
|
+
const textColor$1 = "" + CHARADE_GREY;
|
|
22251
|
+
const autopayTextColor = "" + REGENT_GREY;
|
|
20660
22252
|
const fallbackValues$k = {
|
|
20661
22253
|
textColor: textColor$1,
|
|
20662
22254
|
autopayTextColor
|
|
@@ -20716,7 +22308,7 @@ const FormattedCreditCard = ({
|
|
|
20716
22308
|
color: themeValues.textColor,
|
|
20717
22309
|
textAlign: "left",
|
|
20718
22310
|
extraStyles: "display: inline-block;"
|
|
20719
|
-
}, "Card ending in "
|
|
22311
|
+
}, "Card ending in " + lastFour), expireDate && /*#__PURE__*/React__default.createElement(React.Fragment, null, renderCardStatus())), autoPay && /*#__PURE__*/React__default.createElement(Text$1, {
|
|
20720
22312
|
variant: "p",
|
|
20721
22313
|
color: themeValues.autopayTextColor,
|
|
20722
22314
|
extraStyles: "font-style: italic;"
|
|
@@ -20883,7 +22475,7 @@ const Jumbo = ({
|
|
|
20883
22475
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
20884
22476
|
padding: "0 20px",
|
|
20885
22477
|
minHeight: "65px",
|
|
20886
|
-
id: "heroImage-"
|
|
22478
|
+
id: "heroImage-" + slug,
|
|
20887
22479
|
className: "themeJumboBackground"
|
|
20888
22480
|
}, /*#__PURE__*/React__default.createElement(Center, {
|
|
20889
22481
|
maxWidth: "76.5rem"
|
|
@@ -20950,12 +22542,12 @@ const LabeledAmount = ({
|
|
|
20950
22542
|
variant: variant,
|
|
20951
22543
|
as: as,
|
|
20952
22544
|
weight: themeValues.fontWeight,
|
|
20953
|
-
extraStyles:
|
|
22545
|
+
extraStyles: extraStyles + "; text-align: start; flex: 3;"
|
|
20954
22546
|
}, label, ":"), /*#__PURE__*/React__default.createElement(LabeledAmountText, {
|
|
20955
22547
|
variant: variant,
|
|
20956
22548
|
as: as,
|
|
20957
22549
|
weight: themeValues.fontWeight,
|
|
20958
|
-
extraStyles:
|
|
22550
|
+
extraStyles: extraStyles + "; text-align: end; flex: 1;"
|
|
20959
22551
|
}, amount));
|
|
20960
22552
|
};
|
|
20961
22553
|
|
|
@@ -21064,7 +22656,7 @@ const NavFooter = ({
|
|
|
21064
22656
|
background: backgroundColor,
|
|
21065
22657
|
minHeight: footerMinHeight,
|
|
21066
22658
|
minWidth: "100%",
|
|
21067
|
-
extraStyles: isMobile ? "overflow: hidden;" : "height: "
|
|
22659
|
+
extraStyles: isMobile ? "overflow: hidden;" : "height: " + footerMinHeight + "; > * { height: 100%; };"
|
|
21068
22660
|
}, rest), /*#__PURE__*/React__default.createElement(Center, {
|
|
21069
22661
|
maxWidth: footerWidth || "76.5rem"
|
|
21070
22662
|
}, /*#__PURE__*/React__default.createElement(Cover, {
|
|
@@ -21099,7 +22691,7 @@ const NavHeader = ({
|
|
|
21099
22691
|
}) => /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
21100
22692
|
padding: "0 16px 4px",
|
|
21101
22693
|
background: backgroundColor,
|
|
21102
|
-
extraStyles: isMobile ? "height: 72px; > * { height: 100%; }; z-index: 2;" : "height: "
|
|
22694
|
+
extraStyles: isMobile ? "height: 72px; > * { height: 100%; }; z-index: 2;" : "height: " + headerHeight + "; > * { height: 100%; }; z-index: 2;",
|
|
21103
22695
|
minWidth: "100%"
|
|
21104
22696
|
}, rest), /*#__PURE__*/React__default.createElement(Center, {
|
|
21105
22697
|
maxWidth: headerWidth || "76.5rem"
|
|
@@ -21138,7 +22730,7 @@ const NUM_LESS_THAN_ERROR = "num_less_than_error";
|
|
|
21138
22730
|
const MATCHES_FIELD_ERROR = "matches_field_error";
|
|
21139
22731
|
const VALID_SELECT_OPTION_ERROR = "valid_select_option_error"; // Array<String>, Array<String> -> Object -> String
|
|
21140
22732
|
|
|
21141
|
-
const genErrorMessage = (strings, ...argKeys) => inputState => strings.reduce((accum, current, index) => ""
|
|
22733
|
+
const genErrorMessage = (strings, ...argKeys) => inputState => strings.reduce((accum, current, index) => "" + accum + current + (argKeys[index] ? pathOr("", [argKeys[index]], inputState) : ""), []);
|
|
21142
22734
|
/*
|
|
21143
22735
|
What's going on here? This looks weird, you may ask...
|
|
21144
22736
|
DEFAULT_ERROR_MESSAGES is a map between the error constants (which are returned by validators)
|
|
@@ -21151,22 +22743,22 @@ with interpolation.
|
|
|
21151
22743
|
|
|
21152
22744
|
|
|
21153
22745
|
const DEFAULT_ERROR_MESSAGES = {
|
|
21154
|
-
[MIN_LENGTH_ERROR]: genErrorMessage(_templateObject || (_templateObject =
|
|
21155
|
-
[MAX_LENGTH_ERROR]: genErrorMessage(_templateObject2 || (_templateObject2 =
|
|
21156
|
-
[EXACT_LENGTH_ERROR]: genErrorMessage(_templateObject3 || (_templateObject3 =
|
|
21157
|
-
[MULTIPLE_LENGTHS_ERROR]: genErrorMessage(_templateObject4 || (_templateObject4 =
|
|
21158
|
-
[EMAIL_ERROR]: genErrorMessage(_templateObject5 || (_templateObject5 =
|
|
21159
|
-
[HAS_NUMBER_ERROR]: genErrorMessage(_templateObject6 || (_templateObject6 =
|
|
21160
|
-
[HAS_UPPERCASE_LETTER_ERROR]: genErrorMessage(_templateObject7 || (_templateObject7 =
|
|
21161
|
-
[HAS_LOWERCASE_LETTER_ERROR]: genErrorMessage(_templateObject8 || (_templateObject8 =
|
|
21162
|
-
[HAS_SPECIAL_CHARACTER_ERROR]: genErrorMessage(_templateObject9 || (_templateObject9 =
|
|
21163
|
-
[ONLY_NUMBERS_ERROR]: genErrorMessage(_templateObject10 || (_templateObject10 =
|
|
21164
|
-
[ONLY_LETTERS_ERROR]: genErrorMessage(_templateObject11 || (_templateObject11 =
|
|
21165
|
-
[REQUIRED_FIELD_ERROR]: genErrorMessage(_templateObject12 || (_templateObject12 =
|
|
21166
|
-
[NUM_GREATER_THAN_ERROR]: genErrorMessage(_templateObject13 || (_templateObject13 =
|
|
21167
|
-
[NUM_LESS_THAN_ERROR]: genErrorMessage(_templateObject14 || (_templateObject14 =
|
|
21168
|
-
[MATCHES_FIELD_ERROR]: genErrorMessage(_templateObject15 || (_templateObject15 =
|
|
21169
|
-
[VALID_SELECT_OPTION_ERROR]: genErrorMessage(_templateObject16 || (_templateObject16 =
|
|
22746
|
+
[MIN_LENGTH_ERROR]: genErrorMessage(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["", " is too short"])), "fieldLabel"),
|
|
22747
|
+
[MAX_LENGTH_ERROR]: genErrorMessage(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["", " is too long"])), "fieldLabel"),
|
|
22748
|
+
[EXACT_LENGTH_ERROR]: genErrorMessage(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["", " is not the right length"])), "fieldLabel"),
|
|
22749
|
+
[MULTIPLE_LENGTHS_ERROR]: genErrorMessage(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["", " is not a valid length"])), "fieldLabel"),
|
|
22750
|
+
[EMAIL_ERROR]: genErrorMessage(_templateObject5 || (_templateObject5 = _taggedTemplateLiteralLoose(["", " is not a valid email address"])), "fieldLabel"),
|
|
22751
|
+
[HAS_NUMBER_ERROR]: genErrorMessage(_templateObject6 || (_templateObject6 = _taggedTemplateLiteralLoose(["", " needs a number"])), "fieldLabel"),
|
|
22752
|
+
[HAS_UPPERCASE_LETTER_ERROR]: genErrorMessage(_templateObject7 || (_templateObject7 = _taggedTemplateLiteralLoose(["", " needs an uppercase letter"])), "fieldLabel"),
|
|
22753
|
+
[HAS_LOWERCASE_LETTER_ERROR]: genErrorMessage(_templateObject8 || (_templateObject8 = _taggedTemplateLiteralLoose(["", " needs a lowercase letter"])), "fieldLabel"),
|
|
22754
|
+
[HAS_SPECIAL_CHARACTER_ERROR]: genErrorMessage(_templateObject9 || (_templateObject9 = _taggedTemplateLiteralLoose(["", " needs a special character"])), "fieldLabel"),
|
|
22755
|
+
[ONLY_NUMBERS_ERROR]: genErrorMessage(_templateObject10 || (_templateObject10 = _taggedTemplateLiteralLoose(["", " must be only numbers"])), "fieldLabel"),
|
|
22756
|
+
[ONLY_LETTERS_ERROR]: genErrorMessage(_templateObject11 || (_templateObject11 = _taggedTemplateLiteralLoose(["", " must be only letters"])), "fieldLabel"),
|
|
22757
|
+
[REQUIRED_FIELD_ERROR]: genErrorMessage(_templateObject12 || (_templateObject12 = _taggedTemplateLiteralLoose(["", " is required"])), "fieldLabel"),
|
|
22758
|
+
[NUM_GREATER_THAN_ERROR]: genErrorMessage(_templateObject13 || (_templateObject13 = _taggedTemplateLiteralLoose(["", " is too high"])), "fieldLabel"),
|
|
22759
|
+
[NUM_LESS_THAN_ERROR]: genErrorMessage(_templateObject14 || (_templateObject14 = _taggedTemplateLiteralLoose(["", " is too low"])), "fieldLabel"),
|
|
22760
|
+
[MATCHES_FIELD_ERROR]: genErrorMessage(_templateObject15 || (_templateObject15 = _taggedTemplateLiteralLoose(["", " must match ", ""])), "fieldLabel", "matchField"),
|
|
22761
|
+
[VALID_SELECT_OPTION_ERROR]: genErrorMessage(_templateObject16 || (_templateObject16 = _taggedTemplateLiteralLoose(["", " is not a valid option"])), "fieldLabel")
|
|
21170
22762
|
}; // Constants to represent an input's state
|
|
21171
22763
|
// Neutral - has not been validated
|
|
21172
22764
|
// Invalid - has been validated and has an error
|
|
@@ -21283,8 +22875,8 @@ const PasswordRequirements = ({
|
|
|
21283
22875
|
};
|
|
21284
22876
|
|
|
21285
22877
|
const color$9 = {
|
|
21286
|
-
default: ""
|
|
21287
|
-
large: ""
|
|
22878
|
+
default: "" + CHARADE_GREY,
|
|
22879
|
+
large: "" + BRIGHT_GREY
|
|
21288
22880
|
};
|
|
21289
22881
|
const height$1 = {
|
|
21290
22882
|
default: "3rem",
|
|
@@ -21337,8 +22929,8 @@ const Placeholder = ({
|
|
|
21337
22929
|
border: "none",
|
|
21338
22930
|
minHeight: themeValues.height,
|
|
21339
22931
|
hiddenStyles: !visible,
|
|
21340
|
-
extraStyles: "\n background: linear-gradient(\n to right,\n "
|
|
21341
|
-
hoverStyles: "background-color: "
|
|
22932
|
+
extraStyles: "\n background: linear-gradient(\n to right,\n " + (variant === "large" ? STORM_GREY : themeValues.color) + " 40%,\n rgba(255, 255, 255, 0) 0%\n ),\n linear-gradient(" + (variant === "large" ? STORM_GREY : themeValues.color) + " 40%, rgba(255, 255, 255, 0) 0%),\n linear-gradient(to right, " + (variant === "large" ? STORM_GREY : themeValues.color) + " 40%, rgba(255, 255, 255, 0) 0%),\n linear-gradient(" + (variant === "large" ? STORM_GREY : themeValues.color) + " 40%, rgba(255, 255, 255, 0) 0%);\n background-position: top, right, bottom, left;\n background-repeat: repeat-x, repeat-y;\n background-size: 5px 1px, 1px 5px;\n display: flex;\n justify-content: center;\n align-items:center;",
|
|
22933
|
+
hoverStyles: "background-color: " + (variant === "large" ? GRECIAN_GREY : curriedTint(0.9, themeValues.color)) + ";"
|
|
21342
22934
|
}, /*#__PURE__*/React__default.createElement(Center, {
|
|
21343
22935
|
maxWidth: "300px"
|
|
21344
22936
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -21354,7 +22946,7 @@ const Placeholder = ({
|
|
|
21354
22946
|
childGap: "0"
|
|
21355
22947
|
}, variant === "large" && /*#__PURE__*/React__default.createElement("div", null), /*#__PURE__*/React__default.createElement(Box, {
|
|
21356
22948
|
padding: "0",
|
|
21357
|
-
extraStyles: ".fill { \n fill: "
|
|
22949
|
+
extraStyles: ".fill { \n fill: " + (variant === "large" ? CHARADE_GREY : themeValues.color) + "; \n } .stroke { \n stroke: " + (variant === "large" ? CHARADE_GREY : themeValues.color) + "; \n }"
|
|
21358
22950
|
}, variant === "large" ? /*#__PURE__*/React__default.createElement(Center, {
|
|
21359
22951
|
intrinsic: true
|
|
21360
22952
|
}, largeIcon === "accounts" ? /*#__PURE__*/React__default.createElement(AccountsAddIcon$1, null) : /*#__PURE__*/React__default.createElement(PropertiesAddIcon$1, null), /*#__PURE__*/React__default.createElement(Text$1, {
|
|
@@ -21380,7 +22972,7 @@ const Placeholder = ({
|
|
|
21380
22972
|
var Placeholder$1 = themeComponent(Placeholder, "Placeholder", fallbackValues$p, "default");
|
|
21381
22973
|
|
|
21382
22974
|
const backgroundColor$4 = {
|
|
21383
|
-
default: ""
|
|
22975
|
+
default: "" + WHITE
|
|
21384
22976
|
};
|
|
21385
22977
|
const fallbackValues$q = {
|
|
21386
22978
|
backgroundColor: backgroundColor$4
|
|
@@ -21399,15 +22991,15 @@ const ProcessingFee = ({
|
|
|
21399
22991
|
hiddenStyles: hide
|
|
21400
22992
|
}, /*#__PURE__*/React__default.createElement(Alert$1, {
|
|
21401
22993
|
heading: "Processing Fee",
|
|
21402
|
-
text: "There is a processing fee of "
|
|
22994
|
+
text: "There is a processing fee of " + (feeType === "FLAT" ? "" + displayCurrency(feeValue) : formatPercent(feeValue * 100) + "%") + " " + ifElse(isNil, always(""), a => "with a minimum of " + displayCurrency(a) + " ")(feeMinimum) + "on all " + feeName + " payments.",
|
|
21403
22995
|
variant: "info",
|
|
21404
22996
|
showQuitLink: false
|
|
21405
22997
|
}));
|
|
21406
22998
|
|
|
21407
22999
|
var ProcessingFee$1 = themeComponent(ProcessingFee, "ProcessingFee", fallbackValues$q, "default");
|
|
21408
23000
|
|
|
21409
|
-
const activeColor$4 = ""
|
|
21410
|
-
const inactiveColor = ""
|
|
23001
|
+
const activeColor$4 = "" + MATISSE_BLUE;
|
|
23002
|
+
const inactiveColor = "" + GREY_CHATEAU;
|
|
21411
23003
|
const fallbackValues$r = {
|
|
21412
23004
|
activeColor: activeColor$4,
|
|
21413
23005
|
inactiveColor
|
|
@@ -21431,11 +23023,11 @@ const RadioButton$1 = ({
|
|
|
21431
23023
|
const buttonBorder = {
|
|
21432
23024
|
onFocused: {
|
|
21433
23025
|
borderColor: themeValues.activeColor,
|
|
21434
|
-
boxShadow: "0px 0px 4px 0px "
|
|
23026
|
+
boxShadow: "0px 0px 4px 0px " + themeValues.activeColor
|
|
21435
23027
|
},
|
|
21436
23028
|
offFocused: {
|
|
21437
23029
|
borderColor: themeValues.activeColor,
|
|
21438
|
-
boxShadow: "0px 0px 4px 0px "
|
|
23030
|
+
boxShadow: "0px 0px 4px 0px " + themeValues.activeColor
|
|
21439
23031
|
},
|
|
21440
23032
|
on: {
|
|
21441
23033
|
borderColor: themeValues.activeColor,
|
|
@@ -21474,7 +23066,7 @@ const RadioButton$1 = ({
|
|
|
21474
23066
|
initial: "off",
|
|
21475
23067
|
animate: radioOn ? radioFocused ? "onFocused" : "on" : radioFocused ? "offFocused" : "off"
|
|
21476
23068
|
}, /*#__PURE__*/React__default.createElement(HiddenRadioButton, {
|
|
21477
|
-
id: "#radio-"
|
|
23069
|
+
id: "#radio-" + name,
|
|
21478
23070
|
"aria-label": name,
|
|
21479
23071
|
disabled: disabled,
|
|
21480
23072
|
onClick: toggleRadio,
|
|
@@ -21523,7 +23115,7 @@ const SearchableSelect = ({
|
|
|
21523
23115
|
const filteredItems = items.filter(item => {
|
|
21524
23116
|
var _item$name, _fields$searchTerm, _fields$searchTerm$ra;
|
|
21525
23117
|
|
|
21526
|
-
return item
|
|
23118
|
+
return item == null ? void 0 : (_item$name = item.name) == null ? void 0 : _item$name.toLowerCase().includes(fields == null ? void 0 : (_fields$searchTerm = fields.searchTerm) == null ? void 0 : (_fields$searchTerm$ra = _fields$searchTerm.rawValue) == null ? void 0 : _fields$searchTerm$ra.toLowerCase());
|
|
21527
23119
|
});
|
|
21528
23120
|
setItemList(filteredItems);
|
|
21529
23121
|
}, [fields.searchTerm.rawValue]);
|
|
@@ -21556,7 +23148,7 @@ const SearchableSelect = ({
|
|
|
21556
23148
|
key: value.name,
|
|
21557
23149
|
title: value.name,
|
|
21558
23150
|
name: value.name,
|
|
21559
|
-
checked: (_selectedItems$find = selectedItems
|
|
23151
|
+
checked: (_selectedItems$find = selectedItems == null ? void 0 : selectedItems.find(item => (item == null ? void 0 : item.name) === (value == null ? void 0 : value.name))) != null ? _selectedItems$find : false,
|
|
21560
23152
|
onChange: () => handleSelect(value),
|
|
21561
23153
|
textExtraStyles: "margin: 0;",
|
|
21562
23154
|
disabled: disabled,
|
|
@@ -21568,7 +23160,7 @@ const SearchableSelect = ({
|
|
|
21568
23160
|
var SearchableSelect$1 = themeComponent(SearchableSelect, "SearchableSelect", fallbackValues$s, "default");
|
|
21569
23161
|
|
|
21570
23162
|
const borderColor$2 = {
|
|
21571
|
-
default: ""
|
|
23163
|
+
default: "" + GREY_CHATEAU
|
|
21572
23164
|
};
|
|
21573
23165
|
const borderSize = {
|
|
21574
23166
|
default: "1px"
|
|
@@ -21586,7 +23178,7 @@ const SolidDivider = ({
|
|
|
21586
23178
|
minHeight: "1px",
|
|
21587
23179
|
borderColor: themeValues.borderColor,
|
|
21588
23180
|
borderSize: themeValues.borderSize,
|
|
21589
|
-
borderWidthOverride: "0px 0px "
|
|
23181
|
+
borderWidthOverride: "0px 0px " + themeValues.borderSize + " 0px"
|
|
21590
23182
|
});
|
|
21591
23183
|
|
|
21592
23184
|
var SolidDivider$1 = themeComponent(SolidDivider, "SolidDivider", fallbackValues$t, "default");
|
|
@@ -32163,13 +33755,13 @@ const FormStateDropdown = ({
|
|
|
32163
33755
|
});
|
|
32164
33756
|
};
|
|
32165
33757
|
|
|
32166
|
-
const onBackground = ""
|
|
32167
|
-
const disabledBackground = ""
|
|
32168
|
-
const white = ""
|
|
32169
|
-
const offBackground = ""
|
|
33758
|
+
const onBackground = "" + MATISSE_BLUE;
|
|
33759
|
+
const disabledBackground = "" + IRON_GREY;
|
|
33760
|
+
const white = "" + WHITE;
|
|
33761
|
+
const offBackground = "" + REGENT_GREY;
|
|
32170
33762
|
const labelStyles = "\n display: flex;\n justify-content: flex-start;\n align-items: center;\n";
|
|
32171
|
-
const rightLabelStyles = "\n "
|
|
32172
|
-
const leftLabelStyles = "\n "
|
|
33763
|
+
const rightLabelStyles = "\n " + labelStyles + "\n flex-direction: row;\n";
|
|
33764
|
+
const leftLabelStyles = "\n " + labelStyles + "\n flex-direction: row-reverse;\n";
|
|
32173
33765
|
const fallbackValues$u = {
|
|
32174
33766
|
onBackground,
|
|
32175
33767
|
disabledBackground,
|
|
@@ -32316,11 +33908,11 @@ const ToggleSwitch = ({
|
|
|
32316
33908
|
checked: isOn,
|
|
32317
33909
|
onChange: disabled ? noop : onToggle,
|
|
32318
33910
|
disabled: disabled,
|
|
32319
|
-
id: "#toggle-"
|
|
33911
|
+
id: "#toggle-" + name,
|
|
32320
33912
|
isMobile: isMobile
|
|
32321
33913
|
}), /*#__PURE__*/React__default.createElement(VisibleSwitch, {
|
|
32322
33914
|
name: name,
|
|
32323
|
-
htmlFor: "#toggle-"
|
|
33915
|
+
htmlFor: "#toggle-" + name,
|
|
32324
33916
|
onClick: disabled ? noop : onToggle,
|
|
32325
33917
|
onKeyDown: disabled ? noop : handleKeyDown,
|
|
32326
33918
|
pose: disabled ? "disabled" : isOn ? "on" : "off",
|
|
@@ -32337,10 +33929,10 @@ const ToggleSwitch = ({
|
|
|
32337
33929
|
|
|
32338
33930
|
var ToggleSwitch$1 = themeComponent(ToggleSwitch, "ToggleSwitch", fallbackValues$u);
|
|
32339
33931
|
|
|
32340
|
-
const background$1 = ""
|
|
32341
|
-
const white$1 = ""
|
|
33932
|
+
const background$1 = "" + ATHENS_GREY;
|
|
33933
|
+
const white$1 = "" + WHITE;
|
|
32342
33934
|
const black = "#000";
|
|
32343
|
-
const focusBorder = ""
|
|
33935
|
+
const focusBorder = "" + MATISSE_BLUE;
|
|
32344
33936
|
const themeValues = {
|
|
32345
33937
|
background: background$1,
|
|
32346
33938
|
white: white$1,
|
|
@@ -32872,20 +34464,20 @@ function isPlainObject(value) {
|
|
|
32872
34464
|
}
|
|
32873
34465
|
var assign = Object.assign || function assign(target, value) {
|
|
32874
34466
|
for (var key in value) {
|
|
32875
|
-
if (has(value, key)) {
|
|
34467
|
+
if (has$1(value, key)) {
|
|
32876
34468
|
target[key] = value[key];
|
|
32877
34469
|
}
|
|
32878
34470
|
}
|
|
32879
34471
|
|
|
32880
34472
|
return target;
|
|
32881
34473
|
};
|
|
32882
|
-
var ownKeys = typeof Reflect !== "undefined" && Reflect.ownKeys ? Reflect.ownKeys : typeof Object.getOwnPropertySymbols !== "undefined" ? function (obj) { return Object.getOwnPropertyNames(obj).concat(Object.getOwnPropertySymbols(obj)); } : Object.getOwnPropertyNames;
|
|
34474
|
+
var ownKeys$1 = typeof Reflect !== "undefined" && Reflect.ownKeys ? Reflect.ownKeys : typeof Object.getOwnPropertySymbols !== "undefined" ? function (obj) { return Object.getOwnPropertyNames(obj).concat(Object.getOwnPropertySymbols(obj)); } : Object.getOwnPropertyNames;
|
|
32883
34475
|
function shallowCopy(base, invokeGetters) {
|
|
32884
34476
|
if ( invokeGetters === void 0 ) invokeGetters = false;
|
|
32885
34477
|
|
|
32886
34478
|
if (Array.isArray(base)) { return base.slice(); }
|
|
32887
34479
|
var clone = Object.create(Object.getPrototypeOf(base));
|
|
32888
|
-
ownKeys(base).forEach(function (key) {
|
|
34480
|
+
ownKeys$1(base).forEach(function (key) {
|
|
32889
34481
|
if (key === DRAFT_STATE) {
|
|
32890
34482
|
return; // Never copy over draft state.
|
|
32891
34483
|
}
|
|
@@ -32917,14 +34509,14 @@ function each(value, cb) {
|
|
|
32917
34509
|
if (Array.isArray(value)) {
|
|
32918
34510
|
for (var i = 0; i < value.length; i++) { cb(i, value[i], value); }
|
|
32919
34511
|
} else {
|
|
32920
|
-
ownKeys(value).forEach(function (key) { return cb(key, value[key], value); });
|
|
34512
|
+
ownKeys$1(value).forEach(function (key) { return cb(key, value[key], value); });
|
|
32921
34513
|
}
|
|
32922
34514
|
}
|
|
32923
34515
|
function isEnumerable(base, prop) {
|
|
32924
34516
|
var desc = Object.getOwnPropertyDescriptor(base, prop);
|
|
32925
34517
|
return !!desc && desc.enumerable;
|
|
32926
34518
|
}
|
|
32927
|
-
function has(thing, prop) {
|
|
34519
|
+
function has$1(thing, prop) {
|
|
32928
34520
|
return Object.prototype.hasOwnProperty.call(thing, prop);
|
|
32929
34521
|
}
|
|
32930
34522
|
function is(x, y) {
|
|
@@ -32988,7 +34580,7 @@ function revoke(draft) {
|
|
|
32988
34580
|
|
|
32989
34581
|
// but share them all instead
|
|
32990
34582
|
|
|
32991
|
-
var descriptors = {};
|
|
34583
|
+
var descriptors$1 = {};
|
|
32992
34584
|
function willFinalize(scope, result, isReplaced) {
|
|
32993
34585
|
scope.drafts.forEach(function (draft) {
|
|
32994
34586
|
draft[DRAFT_STATE].finalizing = true;
|
|
@@ -33056,7 +34648,7 @@ function peek(draft, prop) {
|
|
|
33056
34648
|
return draft[prop];
|
|
33057
34649
|
}
|
|
33058
34650
|
|
|
33059
|
-
function get(state, prop) {
|
|
34651
|
+
function get$1(state, prop) {
|
|
33060
34652
|
assertUnrevoked(state);
|
|
33061
34653
|
var value = peek(source(state), prop);
|
|
33062
34654
|
if (state.finalizing) { return value; } // Create a draft if the value is unmodified.
|
|
@@ -33107,17 +34699,17 @@ function clonePotentialDraft(base) {
|
|
|
33107
34699
|
}
|
|
33108
34700
|
|
|
33109
34701
|
function proxyProperty(draft, prop, enumerable) {
|
|
33110
|
-
var desc = descriptors[prop];
|
|
34702
|
+
var desc = descriptors$1[prop];
|
|
33111
34703
|
|
|
33112
34704
|
if (desc) {
|
|
33113
34705
|
desc.enumerable = enumerable;
|
|
33114
34706
|
} else {
|
|
33115
|
-
descriptors[prop] = desc = {
|
|
34707
|
+
descriptors$1[prop] = desc = {
|
|
33116
34708
|
configurable: true,
|
|
33117
34709
|
enumerable: enumerable,
|
|
33118
34710
|
|
|
33119
|
-
get: function get$1() {
|
|
33120
|
-
return get(this[DRAFT_STATE], prop);
|
|
34711
|
+
get: function get$1$1() {
|
|
34712
|
+
return get$1(this[DRAFT_STATE], prop);
|
|
33121
34713
|
},
|
|
33122
34714
|
|
|
33123
34715
|
set: function set$1$1(value) {
|
|
@@ -33163,7 +34755,7 @@ function markChangesRecursively(object) {
|
|
|
33163
34755
|
// Look for added keys.
|
|
33164
34756
|
Object.keys(draft).forEach(function (key) {
|
|
33165
34757
|
// The `undefined` check is a fast path for pre-existing keys.
|
|
33166
|
-
if (base[key] === undefined && !has(base, key)) {
|
|
34758
|
+
if (base[key] === undefined && !has$1(base, key)) {
|
|
33167
34759
|
assigned[key] = true;
|
|
33168
34760
|
markChanged(state);
|
|
33169
34761
|
} else if (!assigned[key]) {
|
|
@@ -33174,7 +34766,7 @@ function markChangesRecursively(object) {
|
|
|
33174
34766
|
|
|
33175
34767
|
Object.keys(base).forEach(function (key) {
|
|
33176
34768
|
// The `undefined` check is a fast path for pre-existing keys.
|
|
33177
|
-
if (draft[key] === undefined && !has(draft, key)) {
|
|
34769
|
+
if (draft[key] === undefined && !has$1(draft, key)) {
|
|
33178
34770
|
assigned[key] = false;
|
|
33179
34771
|
markChanged(state);
|
|
33180
34772
|
}
|
|
@@ -33207,7 +34799,7 @@ function hasObjectChanges(state) {
|
|
|
33207
34799
|
var key = keys[i];
|
|
33208
34800
|
var baseValue = base[key]; // The `undefined` check is a fast path for pre-existing keys.
|
|
33209
34801
|
|
|
33210
|
-
if (baseValue === undefined && !has(base, key)) {
|
|
34802
|
+
if (baseValue === undefined && !has$1(base, key)) {
|
|
33211
34803
|
return true;
|
|
33212
34804
|
} // Once a base key is deleted, future changes go undetected, because its
|
|
33213
34805
|
// descriptor is erased. This branch detects any missed changes.
|
|
@@ -33292,7 +34884,7 @@ function createProxy$1(base, parent) {
|
|
|
33292
34884
|
return proxy;
|
|
33293
34885
|
}
|
|
33294
34886
|
var objectTraps = {
|
|
33295
|
-
get: get$1,
|
|
34887
|
+
get: get$1$1,
|
|
33296
34888
|
|
|
33297
34889
|
has: function has(target, prop) {
|
|
33298
34890
|
return prop in source$1(target);
|
|
@@ -33304,7 +34896,7 @@ var objectTraps = {
|
|
|
33304
34896
|
|
|
33305
34897
|
set: set$1$1,
|
|
33306
34898
|
deleteProperty: deleteProperty,
|
|
33307
|
-
getOwnPropertyDescriptor: getOwnPropertyDescriptor,
|
|
34899
|
+
getOwnPropertyDescriptor: getOwnPropertyDescriptor$2,
|
|
33308
34900
|
|
|
33309
34901
|
defineProperty: function defineProperty() {
|
|
33310
34902
|
throw new Error("Object.defineProperty() cannot be used on an Immer draft"); // prettier-ignore
|
|
@@ -33355,11 +34947,11 @@ function peek$1(draft, prop) {
|
|
|
33355
34947
|
return desc && desc.value;
|
|
33356
34948
|
}
|
|
33357
34949
|
|
|
33358
|
-
function get$1(state, prop) {
|
|
34950
|
+
function get$1$1(state, prop) {
|
|
33359
34951
|
if (prop === DRAFT_STATE) { return state; }
|
|
33360
34952
|
var drafts = state.drafts; // Check for existing draft in unmodified state.
|
|
33361
34953
|
|
|
33362
|
-
if (!state.modified && has(drafts, prop)) {
|
|
34954
|
+
if (!state.modified && has$1(drafts, prop)) {
|
|
33363
34955
|
return drafts[prop];
|
|
33364
34956
|
}
|
|
33365
34957
|
|
|
@@ -33412,7 +35004,7 @@ function deleteProperty(state, prop) {
|
|
|
33412
35004
|
// the same guarantee in ES5 mode.
|
|
33413
35005
|
|
|
33414
35006
|
|
|
33415
|
-
function getOwnPropertyDescriptor(state, prop) {
|
|
35007
|
+
function getOwnPropertyDescriptor$2(state, prop) {
|
|
33416
35008
|
var owner = source$1(state);
|
|
33417
35009
|
var desc = Reflect.getOwnPropertyDescriptor(owner, prop);
|
|
33418
35010
|
|
|
@@ -33831,7 +35423,7 @@ Immer.prototype.finalize = function finalize (draft, path, scope) {
|
|
|
33831
35423
|
var base = state.base;
|
|
33832
35424
|
var copy = state.copy;
|
|
33833
35425
|
each(base, function (prop) {
|
|
33834
|
-
if (!has(copy, prop)) { this$1$1.onDelete(state, prop); }
|
|
35426
|
+
if (!has$1(copy, prop)) { this$1$1.onDelete(state, prop); }
|
|
33835
35427
|
});
|
|
33836
35428
|
}
|
|
33837
35429
|
}
|
|
@@ -34010,7 +35602,7 @@ const createInitialState = formConfig => {
|
|
|
34010
35602
|
};
|
|
34011
35603
|
|
|
34012
35604
|
const SET = "field/SET";
|
|
34013
|
-
const set = fieldName => value => ({
|
|
35605
|
+
const set$2 = fieldName => value => ({
|
|
34014
35606
|
type: SET,
|
|
34015
35607
|
payload: { fieldName, value }
|
|
34016
35608
|
});
|
|
@@ -34090,7 +35682,7 @@ const createMapDispatchToProps = formConfig => {
|
|
|
34090
35682
|
const keys = Object.keys(formConfig);
|
|
34091
35683
|
for (let fieldName of keys) {
|
|
34092
35684
|
dispatchObj.fields[fieldName] = {
|
|
34093
|
-
set: value => dispatch(set(fieldName)(value)),
|
|
35685
|
+
set: value => dispatch(set$2(fieldName)(value)),
|
|
34094
35686
|
addValidator: validator => dispatch(addValidator(fieldName)(validator))
|
|
34095
35687
|
};
|
|
34096
35688
|
}
|
|
@@ -34393,6 +35985,72 @@ ChangePasswordForm.reducer = reducer$1;
|
|
|
34393
35985
|
ChangePasswordForm.mapStateToProps = mapStateToProps$2;
|
|
34394
35986
|
ChangePasswordForm.mapDispatchToProps = mapDispatchToProps$1;
|
|
34395
35987
|
|
|
35988
|
+
var MATCH = wellKnownSymbol('match');
|
|
35989
|
+
|
|
35990
|
+
// `IsRegExp` abstract operation
|
|
35991
|
+
// https://tc39.es/ecma262/#sec-isregexp
|
|
35992
|
+
var isRegexp = function (it) {
|
|
35993
|
+
var isRegExp;
|
|
35994
|
+
return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classofRaw(it) == 'RegExp');
|
|
35995
|
+
};
|
|
35996
|
+
|
|
35997
|
+
var REPLACE$1 = wellKnownSymbol('replace');
|
|
35998
|
+
var RegExpPrototype$1 = RegExp.prototype;
|
|
35999
|
+
var max$2 = Math.max;
|
|
36000
|
+
|
|
36001
|
+
var stringIndexOf = function (string, searchValue, fromIndex) {
|
|
36002
|
+
if (fromIndex > string.length) return -1;
|
|
36003
|
+
if (searchValue === '') return fromIndex;
|
|
36004
|
+
return string.indexOf(searchValue, fromIndex);
|
|
36005
|
+
};
|
|
36006
|
+
|
|
36007
|
+
// `String.prototype.replaceAll` method
|
|
36008
|
+
// https://tc39.es/ecma262/#sec-string.prototype.replaceall
|
|
36009
|
+
_export({ target: 'String', proto: true }, {
|
|
36010
|
+
replaceAll: function replaceAll(searchValue, replaceValue) {
|
|
36011
|
+
var O = requireObjectCoercible(this);
|
|
36012
|
+
var IS_REG_EXP, flags, replacer, string, searchString, functionalReplace, searchLength, advanceBy, replacement;
|
|
36013
|
+
var position = 0;
|
|
36014
|
+
var endOfLastMatch = 0;
|
|
36015
|
+
var result = '';
|
|
36016
|
+
if (searchValue != null) {
|
|
36017
|
+
IS_REG_EXP = isRegexp(searchValue);
|
|
36018
|
+
if (IS_REG_EXP) {
|
|
36019
|
+
flags = toString_1(requireObjectCoercible('flags' in RegExpPrototype$1
|
|
36020
|
+
? searchValue.flags
|
|
36021
|
+
: regexpFlags.call(searchValue)
|
|
36022
|
+
));
|
|
36023
|
+
if (!~flags.indexOf('g')) throw TypeError('`.replaceAll` does not allow non-global regexes');
|
|
36024
|
+
}
|
|
36025
|
+
replacer = getMethod(searchValue, REPLACE$1);
|
|
36026
|
+
if (replacer) {
|
|
36027
|
+
return replacer.call(searchValue, O, replaceValue);
|
|
36028
|
+
}
|
|
36029
|
+
}
|
|
36030
|
+
string = toString_1(O);
|
|
36031
|
+
searchString = toString_1(searchValue);
|
|
36032
|
+
functionalReplace = isCallable(replaceValue);
|
|
36033
|
+
if (!functionalReplace) replaceValue = toString_1(replaceValue);
|
|
36034
|
+
searchLength = searchString.length;
|
|
36035
|
+
advanceBy = max$2(1, searchLength);
|
|
36036
|
+
position = stringIndexOf(string, searchString, 0);
|
|
36037
|
+
while (position !== -1) {
|
|
36038
|
+
if (functionalReplace) {
|
|
36039
|
+
replacement = toString_1(replaceValue(searchString, position, string));
|
|
36040
|
+
} else {
|
|
36041
|
+
replacement = getSubstitution(searchString, string, position, [], undefined, replaceValue);
|
|
36042
|
+
}
|
|
36043
|
+
result += string.slice(endOfLastMatch, position) + replacement;
|
|
36044
|
+
endOfLastMatch = position + searchLength;
|
|
36045
|
+
position = stringIndexOf(string, searchString, position + advanceBy);
|
|
36046
|
+
}
|
|
36047
|
+
if (endOfLastMatch < string.length) {
|
|
36048
|
+
result += string.slice(endOfLastMatch);
|
|
36049
|
+
}
|
|
36050
|
+
return result;
|
|
36051
|
+
}
|
|
36052
|
+
});
|
|
36053
|
+
|
|
34396
36054
|
const titleColor = "#292A33";
|
|
34397
36055
|
const headingBackgroundColor = "transparent";
|
|
34398
36056
|
const bodyBackgroundColor = "transparent";
|
|
@@ -34430,7 +36088,7 @@ const CollapsibleSection = ({
|
|
|
34430
36088
|
|
|
34431
36089
|
const numChildren = typeof children === "Array" ? children.length : 1;
|
|
34432
36090
|
const label = name !== "" ? name : !customTitle ? title : "collapsible section";
|
|
34433
|
-
const id =
|
|
36091
|
+
const id = (label == null ? void 0 : (_label$replaceAll = label.replaceAll(" ", "-")) == null ? void 0 : _label$replaceAll.toLowerCase()) + "-" + index;
|
|
34434
36092
|
const wrapper = {
|
|
34435
36093
|
open: {
|
|
34436
36094
|
height: openHeight,
|
|
@@ -34484,7 +36142,7 @@ const CollapsibleSection = ({
|
|
|
34484
36142
|
role: "button",
|
|
34485
36143
|
"aria-expanded": isOpen.toString(),
|
|
34486
36144
|
"aria-controls": id,
|
|
34487
|
-
id:
|
|
36145
|
+
id: id + "-button"
|
|
34488
36146
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
34489
36147
|
justify: "space-between",
|
|
34490
36148
|
align: "center"
|
|
@@ -34510,9 +36168,9 @@ const CollapsibleSection = ({
|
|
|
34510
36168
|
exit: "closed",
|
|
34511
36169
|
variants: wrapper,
|
|
34512
36170
|
extraStyles: "transform-origin: 100% 0; overflow-y: hidden;",
|
|
34513
|
-
id:
|
|
36171
|
+
id: id + "-content",
|
|
34514
36172
|
role: "region",
|
|
34515
|
-
"aria-labelledby":
|
|
36173
|
+
"aria-labelledby": id + "-button"
|
|
34516
36174
|
}, children))));
|
|
34517
36175
|
};
|
|
34518
36176
|
|
|
@@ -34610,7 +36268,7 @@ const EditableList = ({
|
|
|
34610
36268
|
as = "p",
|
|
34611
36269
|
qaPrefix
|
|
34612
36270
|
}) => {
|
|
34613
|
-
const addText = "Add a"
|
|
36271
|
+
const addText = "Add a" + (itemName[0].match(/[aieouAIEOU]/) ? "n" : "") + " " + itemName;
|
|
34614
36272
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
34615
36273
|
padding: "0rem 0rem 1.5rem 0rem",
|
|
34616
36274
|
as: "section",
|
|
@@ -34632,9 +36290,9 @@ const EditableList = ({
|
|
|
34632
36290
|
var _item$expirationStatu;
|
|
34633
36291
|
|
|
34634
36292
|
const [modalOpen, toggleModal] = React.useState(false);
|
|
34635
|
-
const expiredItem = (_item$expirationStatu = item
|
|
36293
|
+
const expiredItem = (_item$expirationStatu = item == null ? void 0 : item.expirationStatus) != null ? _item$expirationStatu : ACTIVE$1;
|
|
34636
36294
|
return /*#__PURE__*/React__default.createElement(EditableListItem, {
|
|
34637
|
-
listItemSize: !!item.id && autoPayMethods
|
|
36295
|
+
listItemSize: !!item.id && autoPayMethods != null && autoPayMethods.some(methodID => methodID === item.id) ? "big" : listItemSize,
|
|
34638
36296
|
key: item.id || item,
|
|
34639
36297
|
disabled: expiredItem === EXPIRED$1
|
|
34640
36298
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
@@ -34644,13 +36302,13 @@ const EditableList = ({
|
|
|
34644
36302
|
variant: "p",
|
|
34645
36303
|
color: STORM_GREY,
|
|
34646
36304
|
extraStyles: "font-style: italic;",
|
|
34647
|
-
key: "Default "
|
|
36305
|
+
key: "Default " + itemName
|
|
34648
36306
|
}, "Default ", itemName), canRemove && /*#__PURE__*/React__default.createElement(Box, {
|
|
34649
36307
|
padding: "0 0.5rem",
|
|
34650
36308
|
border: "2px solid transparent",
|
|
34651
|
-
extraStyles: ":not(:first-child) { border-left: 2px solid "
|
|
36309
|
+
extraStyles: ":not(:first-child) { border-left: 2px solid " + BOSTON_BLUE + ";}",
|
|
34652
36310
|
dataQa: qaPrefix + " Remove",
|
|
34653
|
-
key: "Remove "
|
|
36311
|
+
key: "Remove " + item.id
|
|
34654
36312
|
}, useModal ? /*#__PURE__*/React__default.createElement(Modal, _extends({
|
|
34655
36313
|
item: { ...item
|
|
34656
36314
|
}
|
|
@@ -34662,19 +36320,19 @@ const EditableList = ({
|
|
|
34662
36320
|
text: "Remove",
|
|
34663
36321
|
action: () => removeItem(item.id),
|
|
34664
36322
|
extraStyles: "min-width: 0;",
|
|
34665
|
-
"aria-label": "Remove "
|
|
36323
|
+
"aria-label": "Remove " + itemName
|
|
34666
36324
|
})), canEdit && /*#__PURE__*/React__default.createElement(Box, {
|
|
34667
36325
|
padding: "0 0.5rem",
|
|
34668
36326
|
border: "2px solid transparent",
|
|
34669
|
-
extraStyles: ":not(:first-child) { border-left: 2px solid "
|
|
36327
|
+
extraStyles: ":not(:first-child) { border-left: 2px solid " + BOSTON_BLUE + ";}",
|
|
34670
36328
|
dataQa: qaPrefix + " Edit",
|
|
34671
|
-
key: "Edit "
|
|
36329
|
+
key: "Edit " + item.id
|
|
34672
36330
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
34673
36331
|
variant: "smallGhost",
|
|
34674
36332
|
text: "Edit",
|
|
34675
36333
|
action: () => editItem(item.id),
|
|
34676
36334
|
extraStyles: "min-width: 0;",
|
|
34677
|
-
"aria-label": "Edit "
|
|
36335
|
+
"aria-label": "Edit " + itemName
|
|
34678
36336
|
}))));
|
|
34679
36337
|
})), canAdd && (!maxItems || items.length < maxItems) && /*#__PURE__*/React__default.createElement(Box, {
|
|
34680
36338
|
padding: items.length === 0 ? "0" : "1rem 0 0"
|
|
@@ -34782,7 +36440,7 @@ const TableListItem = ({
|
|
|
34782
36440
|
borderTopItem
|
|
34783
36441
|
}) => /*#__PURE__*/React__default.createElement(Box, {
|
|
34784
36442
|
padding: "0px",
|
|
34785
|
-
extraStyles: "&:last-child {\n > * {\n border-bottom: none;\n }\n }\n "
|
|
36443
|
+
extraStyles: "&:last-child {\n > * {\n border-bottom: none;\n }\n }\n " + (isMobile && borderTopItem && "&:first-child {\n > * {\n border-top: 1px solid " + GHOST_GREY + ";\n }\n }") + "\n "
|
|
34786
36444
|
}, /*#__PURE__*/React__default.createElement(ItemWrapper, null, /*#__PURE__*/React__default.createElement(EditableTableListItem, {
|
|
34787
36445
|
isMobile: isMobile
|
|
34788
36446
|
}, /*#__PURE__*/React__default.createElement(TableItemKey, {
|
|
@@ -36904,7 +38562,7 @@ var tabbable_1 = tabbable;
|
|
|
36904
38562
|
|
|
36905
38563
|
var immutable = extend;
|
|
36906
38564
|
|
|
36907
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
38565
|
+
var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
36908
38566
|
|
|
36909
38567
|
function extend() {
|
|
36910
38568
|
var target = {};
|
|
@@ -36913,7 +38571,7 @@ function extend() {
|
|
|
36913
38571
|
var source = arguments[i];
|
|
36914
38572
|
|
|
36915
38573
|
for (var key in source) {
|
|
36916
|
-
if (hasOwnProperty.call(source, key)) {
|
|
38574
|
+
if (hasOwnProperty$1.call(source, key)) {
|
|
36917
38575
|
target[key] = source[key];
|
|
36918
38576
|
}
|
|
36919
38577
|
}
|
|
@@ -37923,7 +39581,7 @@ const Modal$1 = ({
|
|
|
37923
39581
|
borderWidthOverride: noBorder && "0 0 2px 0",
|
|
37924
39582
|
borderColor: !noBorder && SILVER_GREY,
|
|
37925
39583
|
padding: !noBorder && "0 0 1.5rem 0",
|
|
37926
|
-
extraStyles: maxHeight ? "max-height: "
|
|
39584
|
+
extraStyles: maxHeight ? "max-height: " + maxHeight + "; overflow: auto;" : ""
|
|
37927
39585
|
}, defaultWrapper ? /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
37928
39586
|
variant: "p"
|
|
37929
39587
|
}, modalBodyText) : /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -38082,12 +39740,12 @@ const Module = ({
|
|
|
38082
39740
|
return /*#__PURE__*/React__default.createElement(React.Fragment, null, heading && /*#__PURE__*/React__default.createElement(Title$1, {
|
|
38083
39741
|
weight: themeValues.fontWeight,
|
|
38084
39742
|
color: themeValues.fontColor,
|
|
38085
|
-
margin:
|
|
39743
|
+
margin: spacing + " 0 " + themeValues.titleSpacing + " 0",
|
|
38086
39744
|
textAlign: themeValues.textAlign,
|
|
38087
39745
|
as: computedElemType,
|
|
38088
|
-
extraStyles: "font-size: "
|
|
39746
|
+
extraStyles: "font-size: " + computedFontSize + ";"
|
|
38089
39747
|
}, heading), /*#__PURE__*/React__default.createElement(Box, {
|
|
38090
|
-
padding: "0 0 "
|
|
39748
|
+
padding: "0 0 " + spacingBottom
|
|
38091
39749
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
38092
39750
|
padding: padding,
|
|
38093
39751
|
background: themeValues.backgroundColor,
|
|
@@ -38123,7 +39781,7 @@ const NavMenuDesktop = ({
|
|
|
38123
39781
|
onBlur,
|
|
38124
39782
|
themeValues
|
|
38125
39783
|
}) => {
|
|
38126
|
-
const menuCarat = "&:after { bottom: 100%; right: 10px; border: solid transparent; content: \" \"; height: 0; width: 0; position: absolute; pointer-events: none; border-color: "
|
|
39784
|
+
const menuCarat = "&:after { bottom: 100%; right: 10px; border: solid transparent; content: \" \"; height: 0; width: 0; position: absolute; pointer-events: none; border-color: " + themeValues.backgroundColor + "00; border-bottom-color: " + themeValues.backgroundColor + "; border-width: 10px; margin-left: -10px; }";
|
|
38127
39785
|
return /*#__PURE__*/React__default.createElement(Imposter, {
|
|
38128
39786
|
id: id,
|
|
38129
39787
|
breakout: true,
|
|
@@ -38133,10 +39791,10 @@ const NavMenuDesktop = ({
|
|
|
38133
39791
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
38134
39792
|
minWidth: "240px",
|
|
38135
39793
|
padding: "1rem 0.5rem",
|
|
38136
|
-
extraStyles: "position: relative; "
|
|
39794
|
+
extraStyles: "position: relative; " + menuCarat,
|
|
38137
39795
|
background: themeValues.backgroundColor,
|
|
38138
39796
|
borderRadius: "5px",
|
|
38139
|
-
boxShadow: "0px 1px 8px -1px rgba(0, 0, 0, 0.3), 0px 1px 4px 0px "
|
|
39797
|
+
boxShadow: "0px 1px 8px -1px rgba(0, 0, 0, 0.3), 0px 1px 4px 0px " + themeValues.shadowColor + ", 0px 7px 32px 0px " + themeValues.shadowColor,
|
|
38140
39798
|
onMouseEnter: onMouseEnter,
|
|
38141
39799
|
onMouseLeave: onMouseLeave,
|
|
38142
39800
|
onFocus: onFocus,
|
|
@@ -38213,8 +39871,8 @@ const IconsModule = ({
|
|
|
38213
39871
|
if (typeof icon === "object") {
|
|
38214
39872
|
var _configIconMap$iconID;
|
|
38215
39873
|
|
|
38216
|
-
const iconID = customAttributes
|
|
38217
|
-
const iconMapValue = (_configIconMap$iconID = configIconMap
|
|
39874
|
+
const iconID = customAttributes == null ? void 0 : customAttributes[iconValue];
|
|
39875
|
+
const iconMapValue = (_configIconMap$iconID = configIconMap == null ? void 0 : configIconMap[iconID]) != null ? _configIconMap$iconID : iconDefault;
|
|
38218
39876
|
Icon = iconsMap[iconMapValue];
|
|
38219
39877
|
} else {
|
|
38220
39878
|
Icon = iconsMap[icon];
|
|
@@ -38278,24 +39936,24 @@ const AutopayModal = ({
|
|
|
38278
39936
|
}) => {
|
|
38279
39937
|
const planType = isPaymentPlan ? "Payment Plan" : "Autopay";
|
|
38280
39938
|
const modalExtraProps = {
|
|
38281
|
-
modalHeaderText: autoPayActive ? "Deactivate "
|
|
38282
|
-
modalBodyText: autoPayActive ? "Are you sure you want to deactivate "
|
|
38283
|
-
continueButtonText: autoPayActive ? "Disable "
|
|
39939
|
+
modalHeaderText: autoPayActive ? "Deactivate " + planType : "Set Up " + planType,
|
|
39940
|
+
modalBodyText: autoPayActive ? "Are you sure you want to deactivate " + (isPaymentPlan ? "your payment plan" : "autopay") + "? You will need to manually make your next payment." : "To set up " + (isPaymentPlan ? "a payment plan" : "autopay") + " you must save a payment method and address in your profile. Do you want to save these now?",
|
|
39941
|
+
continueButtonText: autoPayActive ? "Disable " + planType : "Add to Profile",
|
|
38284
39942
|
useDangerButton: autoPayActive,
|
|
38285
39943
|
continueAction: autoPayActive ? () => {
|
|
38286
39944
|
deactivatePaymentSchedule(isPaymentPlan ? paymentPlanSchedule : autoPaySchedule, isPaymentPlan);
|
|
38287
39945
|
toggleModal(false);
|
|
38288
39946
|
} : navigateToSettings
|
|
38289
39947
|
};
|
|
38290
|
-
const hoverStyles = "\n &:hover {\n .autopayIcon { fill: "
|
|
38291
|
-
const activeStyles = "\n &:active {\n .autopayIcon { fill: "
|
|
38292
|
-
const defaultStyles = "\n .autopayIcon { fill: "
|
|
39948
|
+
const hoverStyles = "\n &:hover {\n .autopayIcon { fill: " + themeValues.hoverColor + "; text-decoration: underline; cursor: pointer; }\n }";
|
|
39949
|
+
const activeStyles = "\n &:active {\n .autopayIcon { fill: " + themeValues.activeColor + "; text-decoration: underline; }\n }";
|
|
39950
|
+
const defaultStyles = "\n .autopayIcon { fill: " + themeValues.color + "; text-decoration: underline; }\n ";
|
|
38293
39951
|
return /*#__PURE__*/React__default.createElement(Modal$1, _extends({
|
|
38294
39952
|
showModal: () => toggleModal(true),
|
|
38295
39953
|
hideModal: () => toggleModal(false),
|
|
38296
39954
|
modalOpen: modalOpen
|
|
38297
39955
|
}, modalExtraProps), buttonLinkType ? /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
38298
|
-
text: autoPayActive ? "Manage "
|
|
39956
|
+
text: autoPayActive ? "Manage " + planType : "Set Up " + planType,
|
|
38299
39957
|
variant: "tertiary",
|
|
38300
39958
|
action: () => {
|
|
38301
39959
|
toggleModal(true);
|
|
@@ -38323,12 +39981,12 @@ const AutopayModal = ({
|
|
|
38323
39981
|
e.key === "Enter" && toggleModal(true);
|
|
38324
39982
|
},
|
|
38325
39983
|
tabIndex: "0",
|
|
38326
|
-
dataQa:
|
|
39984
|
+
dataQa: planType + " On",
|
|
38327
39985
|
color: SEA_GREEN,
|
|
38328
39986
|
weight: themeValues.fontWeight,
|
|
38329
39987
|
hoverStyles: themeValues.modalLinkHoverFocus,
|
|
38330
39988
|
extraStyles: "padding-left: 0.25rem;"
|
|
38331
|
-
},
|
|
39989
|
+
}, planType + " " + nextAutopayDate))));
|
|
38332
39990
|
};
|
|
38333
39991
|
|
|
38334
39992
|
const AutopayModalModule = themeComponent(AutopayModal, "AutopayModal", fallbackValues$z);
|
|
@@ -38396,7 +40054,7 @@ const PaymentDetailsActions = ({
|
|
|
38396
40054
|
setDetailedObligation,
|
|
38397
40055
|
navigateToDetailedObligation
|
|
38398
40056
|
} = actions;
|
|
38399
|
-
const detailsSlug = config.type === "ACCOUNT" ? "/profile/accounts/details/"
|
|
40057
|
+
const detailsSlug = config.type === "ACCOUNT" ? "/profile/accounts/details/" + obligationSlug : "/profile/properties/details/" + obligationSlug;
|
|
38400
40058
|
|
|
38401
40059
|
const handleClick = obligations => {
|
|
38402
40060
|
setIsLoading(true);
|
|
@@ -38414,7 +40072,7 @@ const PaymentDetailsActions = ({
|
|
|
38414
40072
|
borderSize: "1px",
|
|
38415
40073
|
borderColor: GHOST_GREY,
|
|
38416
40074
|
borderWidthOverride: "1px 0 0 0",
|
|
38417
|
-
key:
|
|
40075
|
+
key: obligations[0].id + "-actions"
|
|
38418
40076
|
}, isMobile && /*#__PURE__*/React__default.createElement(Box, {
|
|
38419
40077
|
padding: "16px 24px",
|
|
38420
40078
|
borderSize: "1px",
|
|
@@ -38454,7 +40112,7 @@ const PaymentDetailsActions = ({
|
|
|
38454
40112
|
extraStyles: isMobile && "flex-grow: 1;"
|
|
38455
40113
|
}, autoPayAvailable && !autoPayEnabled ? /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
38456
40114
|
variant: "tertiary",
|
|
38457
|
-
text: "Set Up "
|
|
40115
|
+
text: "Set Up " + planType,
|
|
38458
40116
|
action: () => {
|
|
38459
40117
|
setDetailedObligation(obligations, config);
|
|
38460
40118
|
handleAutopayAction();
|
|
@@ -38518,13 +40176,13 @@ const Obligation = ({
|
|
|
38518
40176
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
38519
40177
|
padding: "0",
|
|
38520
40178
|
borderRadius: "4px",
|
|
38521
|
-
boxShadow: "0px 0px 5px 0px "
|
|
40179
|
+
boxShadow: "0px 0px 5px 0px " + GHOST_GREY
|
|
38522
40180
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
38523
40181
|
background: WHITE
|
|
38524
40182
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
38525
40183
|
childGap: "14px"
|
|
38526
40184
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
38527
|
-
key:
|
|
40185
|
+
key: obligations[0].id + "-top",
|
|
38528
40186
|
padding: "0 8px",
|
|
38529
40187
|
minWidth: "100%"
|
|
38530
40188
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
@@ -38605,8 +40263,8 @@ const PartialAmountForm = ({
|
|
|
38605
40263
|
|
|
38606
40264
|
const amountErrors = {
|
|
38607
40265
|
[required.error]: "Amount is required",
|
|
38608
|
-
[numberGreaterThanOrEqualTo.error]: "There is a minimum payment of "
|
|
38609
|
-
[numberLessThanOrEqualTo.error]: "There is a maximum payment of "
|
|
40266
|
+
[numberGreaterThanOrEqualTo.error]: "There is a minimum payment of " + displayCurrency(minimum),
|
|
40267
|
+
[numberLessThanOrEqualTo.error]: "There is a maximum payment of " + displayCurrency(maximum)
|
|
38610
40268
|
};
|
|
38611
40269
|
const lineItemsNew = Array.isArray(lineItems) ? lineItems : [];
|
|
38612
40270
|
return /*#__PURE__*/React__default.createElement(FormContainer$1, {
|
|
@@ -38686,7 +40344,7 @@ const PrevNextButton = ({
|
|
|
38686
40344
|
action: action,
|
|
38687
40345
|
contentOverride: true,
|
|
38688
40346
|
dataQa: type,
|
|
38689
|
-
extraStyles: "\n min-width: 40px;\n min-height: 100%;\n max-height: 40px;\n padding: 6px;\n border-radius: 3px;\n background-color: "
|
|
40347
|
+
extraStyles: "\n min-width: 40px;\n min-height: 100%;\n max-height: 40px;\n padding: 6px;\n border-radius: 3px;\n background-color: " + (numberColor != null ? numberColor : MATISSE_BLUE) + ";\n border-color: " + (numberColor != null ? numberColor : MATISSE_BLUE) + "\n "
|
|
38690
40348
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
38691
40349
|
padding: "0",
|
|
38692
40350
|
extraStyles: type === "prev" && "transform: scaleX(-1)"
|
|
@@ -38757,7 +40415,7 @@ const Pagination = ({
|
|
|
38757
40415
|
numberColor: numberColor
|
|
38758
40416
|
}), getPagesPanel(currentPage, pageCount).map((item, index) => item.isButton ? /*#__PURE__*/React__default.createElement(Box, {
|
|
38759
40417
|
padding: "0",
|
|
38760
|
-
border: item.active && "1px solid "
|
|
40418
|
+
border: item.active && "1px solid " + (numberColor != null ? numberColor : MATISSE_BLUE),
|
|
38761
40419
|
borderRadius: item.active && "3px",
|
|
38762
40420
|
extraStyles: "max-height: 40px;"
|
|
38763
40421
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
@@ -38769,7 +40427,7 @@ const Pagination = ({
|
|
|
38769
40427
|
pageNumber: item.index
|
|
38770
40428
|
}) : noop,
|
|
38771
40429
|
textExtraStyles: "font-size: 17px; font-weight: 900;",
|
|
38772
|
-
extraStyles: "\n min-width: 40px; min-height: 100%; padding: 0;\n &:hover, &:focus {\n text-decoration: none;\n > * > span {\n text-decoration: none;\n }\n }\n > * > span {\n color: "
|
|
40430
|
+
extraStyles: "\n min-width: 40px; min-height: 100%; padding: 0;\n &:hover, &:focus {\n text-decoration: none;\n > * > span {\n text-decoration: none;\n }\n }\n > * > span {\n color: " + (numberColor != null ? numberColor : MATISSE_BLUE) + "\n }\n }\n &:hover { " + (item.active ? "cursor: default;" : "background-color: " + ALABASTER_WHITE) + " }\n ",
|
|
38773
40431
|
dataQa: index
|
|
38774
40432
|
}, item.index)) : /*#__PURE__*/React__default.createElement(Box, {
|
|
38775
40433
|
padding: "0 10px"
|
|
@@ -38779,7 +40437,7 @@ const Pagination = ({
|
|
|
38779
40437
|
key: index,
|
|
38780
40438
|
variant: "pXL",
|
|
38781
40439
|
weight: "900",
|
|
38782
|
-
color: numberColor
|
|
40440
|
+
color: numberColor != null ? numberColor : MATISSE_BLUE
|
|
38783
40441
|
}, "...")))), currentPage < pageCount && /*#__PURE__*/React__default.createElement(PrevNextButton, {
|
|
38784
40442
|
type: "next",
|
|
38785
40443
|
action: pageNext,
|
|
@@ -38884,7 +40542,7 @@ const PaymentDetailsContent = ({
|
|
|
38884
40542
|
variant: themeValues.labeledAmountTotal,
|
|
38885
40543
|
label: "Total",
|
|
38886
40544
|
amount: displayCurrency(total),
|
|
38887
|
-
extraStyles: variant === "small" && "font-weight: "
|
|
40545
|
+
extraStyles: variant === "small" && "font-weight: " + FONT_WEIGHT_BOLD + ";"
|
|
38888
40546
|
}));
|
|
38889
40547
|
|
|
38890
40548
|
const Collapsible = ({
|
|
@@ -39286,7 +40944,7 @@ const PaymentFormCard = ({
|
|
|
39286
40944
|
const creditCardNumberErrors = {
|
|
39287
40945
|
[required.error]: "Credit card number is required",
|
|
39288
40946
|
[hasLength.error]: "Credit card number is invalid",
|
|
39289
|
-
[matchesRegex.error]:
|
|
40947
|
+
[matchesRegex.error]: displayCardBrand(fields.creditCardNumber.rawValue) + " is not accepted"
|
|
39290
40948
|
};
|
|
39291
40949
|
const expirationDateErrors = {
|
|
39292
40950
|
[required.error]: "Expiration date is required",
|
|
@@ -39473,10 +41131,10 @@ PhoneForm.reducer = reducer$9;
|
|
|
39473
41131
|
PhoneForm.mapStateToProps = mapStateToProps$a;
|
|
39474
41132
|
PhoneForm.mapDispatchToProps = mapDispatchToProps$9;
|
|
39475
41133
|
|
|
39476
|
-
const headingBackgroundColor$1 = ""
|
|
39477
|
-
const headingDisabledColor = ""
|
|
41134
|
+
const headingBackgroundColor$1 = "" + WHITE;
|
|
41135
|
+
const headingDisabledColor = "" + ATHENS_GREY;
|
|
39478
41136
|
const bodyBackgroundColor$1 = "#eeeeee";
|
|
39479
|
-
const borderColor$3 = ""
|
|
41137
|
+
const borderColor$3 = "" + GREY_CHATEAU;
|
|
39480
41138
|
const focusStyles = "outline: none;";
|
|
39481
41139
|
const fallbackValues$C = {
|
|
39482
41140
|
headingBackgroundColor: headingBackgroundColor$1,
|
|
@@ -39524,7 +41182,7 @@ const RadioSection = ({
|
|
|
39524
41182
|
openHeight = "auto"
|
|
39525
41183
|
}) => {
|
|
39526
41184
|
const handleKeyDown = (id, e) => {
|
|
39527
|
-
if ((e
|
|
41185
|
+
if ((e == null ? void 0 : e.keyCode) === 13) {
|
|
39528
41186
|
toggleOpenSection(id);
|
|
39529
41187
|
}
|
|
39530
41188
|
};
|
|
@@ -39580,7 +41238,7 @@ const RadioSection = ({
|
|
|
39580
41238
|
}
|
|
39581
41239
|
}
|
|
39582
41240
|
};
|
|
39583
|
-
const borderStyles = "\n border-width: 0 0 1px 0;\n border-color: "
|
|
41241
|
+
const borderStyles = "\n border-width: 0 0 1px 0;\n border-color: " + themeValues.borderColor + ";\n border-style: solid;\n border-radius: 0px;\n transform-origin: 100% 0;\n\n &:last-child {\n border-width: 0;\n }\n ";
|
|
39584
41242
|
const RightIcon = styled__default.img.withConfig({
|
|
39585
41243
|
displayName: "RadioSection__RightIcon",
|
|
39586
41244
|
componentId: "sc-uema02-0"
|
|
@@ -39594,7 +41252,7 @@ const RadioSection = ({
|
|
|
39594
41252
|
const [focused, setFocused] = React.useState(null);
|
|
39595
41253
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
39596
41254
|
padding: "1px",
|
|
39597
|
-
border: "1px solid "
|
|
41255
|
+
border: "1px solid " + themeValues.borderColor,
|
|
39598
41256
|
borderRadius: "4px"
|
|
39599
41257
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
39600
41258
|
childGap: "0"
|
|
@@ -39606,7 +41264,7 @@ const RadioSection = ({
|
|
|
39606
41264
|
hoverStyles: themeValues.focusStyles,
|
|
39607
41265
|
animate: openSection === section.id ? "open" : "closed",
|
|
39608
41266
|
initial: initiallyOpen ? "open" : "closed",
|
|
39609
|
-
key: "item-"
|
|
41267
|
+
key: "item-" + section.id,
|
|
39610
41268
|
extraStyles: borderStyles
|
|
39611
41269
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
39612
41270
|
childGap: "0"
|
|
@@ -39615,7 +41273,7 @@ const RadioSection = ({
|
|
|
39615
41273
|
background: section.disabled ? themeValues.headingDisabledColor : themeValues.headingBackgroundColor,
|
|
39616
41274
|
onClick: isMobile && supportsTouch || section.disabled ? noop : () => toggleOpenSection(section.id),
|
|
39617
41275
|
onTouchEnd: isMobile && supportsTouch || !section.disabled ? () => toggleOpenSection(section.id) : noop,
|
|
39618
|
-
key: "header-"
|
|
41276
|
+
key: "header-" + section.id,
|
|
39619
41277
|
borderSize: "0px",
|
|
39620
41278
|
borderColor: themeValues.borderColor,
|
|
39621
41279
|
borderWidthOverride: openSection === section.id && !!section.content ? "0px 0px 1px 0px" : "",
|
|
@@ -39656,7 +41314,7 @@ const RadioSection = ({
|
|
|
39656
41314
|
}))), section.shouldDisplayCardExpiration && /*#__PURE__*/React__default.createElement(React.Fragment, null, renderCardStatus(section)))), /*#__PURE__*/React__default.createElement(AnimatePresence, {
|
|
39657
41315
|
initial: false
|
|
39658
41316
|
}, openSection === section.id && /*#__PURE__*/React__default.createElement(Motion, {
|
|
39659
|
-
key: "content-"
|
|
41317
|
+
key: "content-" + section.id,
|
|
39660
41318
|
padding: "0",
|
|
39661
41319
|
background: themeValues.bodyBackgroundColor,
|
|
39662
41320
|
layoutTransition: true,
|
|
@@ -39976,7 +41634,7 @@ const Tab = ({
|
|
|
39976
41634
|
margin: "0 0 -1px 0",
|
|
39977
41635
|
padding: "0.5rem 0.75rem",
|
|
39978
41636
|
background: activeTab === label ? WHITE : GRECIAN_GREY,
|
|
39979
|
-
extraStyles: "cursor: pointer; flex-grow: 1; text-align: center; "
|
|
41637
|
+
extraStyles: "cursor: pointer; flex-grow: 1; text-align: center; " + (activeTab === label ? "list-style: none;" : "")
|
|
39980
41638
|
}, /*#__PURE__*/React__default.createElement(Text$1, null, label));
|
|
39981
41639
|
};
|
|
39982
41640
|
|
|
@@ -40056,15 +41714,15 @@ const TabSidebar = ({
|
|
|
40056
41714
|
icon
|
|
40057
41715
|
}, index) => /*#__PURE__*/React__default.createElement(InternalLink, {
|
|
40058
41716
|
to: route,
|
|
40059
|
-
key:
|
|
40060
|
-
extraStyles: "&:hover {\n text-decoration: none; \n "
|
|
41717
|
+
key: route + "-" + index,
|
|
41718
|
+
extraStyles: "&:hover {\n text-decoration: none; \n " + (active ? "> * {\n background-color: " + themeValues.activeTabHover + ";\n }" : "> * { \n background-color: rgba(8, 27, 43, 0.05);\n }") + "}"
|
|
40061
41719
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
40062
41720
|
padding: isMobile ? "6px 4px" : "18px 16px",
|
|
40063
41721
|
background: active ? themeValues.activeTabBackground : "transparent",
|
|
40064
41722
|
borderSize: active ? "3px" : "1px",
|
|
40065
41723
|
borderColor: active ? themeValues.activeTabAccent : TRANSPARENT,
|
|
40066
41724
|
borderWidthOverride: "0 0 3px 0",
|
|
40067
|
-
boxShadow: active ? "0px 2px 4px 0px "
|
|
41725
|
+
boxShadow: active ? "0px 2px 4px 0px " + GHOST_GREY + ", 0px 2px 9px 1px " + GHOST_GREY : "0px 2px 4px 0px " + TRANSPARENT + ", 0px 2px 9px 1px " + TRANSPARENT,
|
|
40068
41726
|
minWidth: "100%",
|
|
40069
41727
|
borderRadius: "4px 4px 0 0"
|
|
40070
41728
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -40078,7 +41736,7 @@ const TabSidebar = ({
|
|
|
40078
41736
|
variant: isMobile ? "pXXS" : "pS",
|
|
40079
41737
|
weight: active ? FONT_WEIGHT_BOLD : FONT_WEIGHT_REGULAR,
|
|
40080
41738
|
color: active ? themeValues.activeTabAccent : BRIGHT_GREY,
|
|
40081
|
-
extraStyles: "text-transform: uppercase; "
|
|
41739
|
+
extraStyles: "text-transform: uppercase; " + (isMobile ? "width: 100%; padding-top: 4px;" : "padding-left: 8px;")
|
|
40082
41740
|
}, text))))))));
|
|
40083
41741
|
|
|
40084
41742
|
var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$E);
|
|
@@ -40139,7 +41797,7 @@ const TermsAndConditionsModal = ({
|
|
|
40139
41797
|
modalHeaderText: title,
|
|
40140
41798
|
modalBodyText: /*#__PURE__*/React__default.createElement(Box, {
|
|
40141
41799
|
background: themeValues.backgroundColor,
|
|
40142
|
-
border: "1px solid "
|
|
41800
|
+
border: "1px solid " + themeValues.border,
|
|
40143
41801
|
borderRadius: "3px",
|
|
40144
41802
|
extraStyles: "overflow: scroll; max-height: 20rem;"
|
|
40145
41803
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
@@ -40290,7 +41948,7 @@ const WorkflowTile = ({
|
|
|
40290
41948
|
slug
|
|
40291
41949
|
}) => /*#__PURE__*/React__default.createElement(Box, {
|
|
40292
41950
|
background: WHITE,
|
|
40293
|
-
boxShadow: "0px 0px 5px 0px "
|
|
41951
|
+
boxShadow: "0px 0px 5px 0px " + GHOST_GREY,
|
|
40294
41952
|
padding: 0
|
|
40295
41953
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
40296
41954
|
childGap: 0,
|
|
@@ -40320,7 +41978,7 @@ const WorkflowTile = ({
|
|
|
40320
41978
|
borderRadius: "0px",
|
|
40321
41979
|
text: workflowActionName,
|
|
40322
41980
|
minWidth: "100%",
|
|
40323
|
-
url: "/service/"
|
|
41981
|
+
url: "/service/" + slug,
|
|
40324
41982
|
extraStyles: "width: 100%;",
|
|
40325
41983
|
linkExtraStyles: "justify-content: center;"
|
|
40326
41984
|
}))));
|