@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.esm.js
CHANGED
|
@@ -22,16 +22,13 @@ function _extends() {
|
|
|
22
22
|
return _extends.apply(this, arguments);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
function
|
|
25
|
+
function _taggedTemplateLiteralLoose(strings, raw) {
|
|
26
26
|
if (!raw) {
|
|
27
27
|
raw = strings.slice(0);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
value: Object.freeze(raw)
|
|
33
|
-
}
|
|
34
|
-
}));
|
|
30
|
+
strings.raw = raw;
|
|
31
|
+
return strings;
|
|
35
32
|
}
|
|
36
33
|
|
|
37
34
|
/*! *****************************************************************************
|
|
@@ -4454,6 +4451,1129 @@ const fallbackValues = {
|
|
|
4454
4451
|
fontSize
|
|
4455
4452
|
};
|
|
4456
4453
|
|
|
4454
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
4455
|
+
|
|
4456
|
+
function createCommonjsModule(fn, module) {
|
|
4457
|
+
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
4458
|
+
}
|
|
4459
|
+
|
|
4460
|
+
var check = function (it) {
|
|
4461
|
+
return it && it.Math == Math && it;
|
|
4462
|
+
};
|
|
4463
|
+
|
|
4464
|
+
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
4465
|
+
var global_1 =
|
|
4466
|
+
// eslint-disable-next-line es/no-global-this -- safe
|
|
4467
|
+
check(typeof globalThis == 'object' && globalThis) ||
|
|
4468
|
+
check(typeof window == 'object' && window) ||
|
|
4469
|
+
// eslint-disable-next-line no-restricted-globals -- safe
|
|
4470
|
+
check(typeof self == 'object' && self) ||
|
|
4471
|
+
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
4472
|
+
// eslint-disable-next-line no-new-func -- fallback
|
|
4473
|
+
(function () { return this; })() || Function('return this')();
|
|
4474
|
+
|
|
4475
|
+
// iterable DOM collections
|
|
4476
|
+
// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
|
|
4477
|
+
var domIterables = {
|
|
4478
|
+
CSSRuleList: 0,
|
|
4479
|
+
CSSStyleDeclaration: 0,
|
|
4480
|
+
CSSValueList: 0,
|
|
4481
|
+
ClientRectList: 0,
|
|
4482
|
+
DOMRectList: 0,
|
|
4483
|
+
DOMStringList: 0,
|
|
4484
|
+
DOMTokenList: 1,
|
|
4485
|
+
DataTransferItemList: 0,
|
|
4486
|
+
FileList: 0,
|
|
4487
|
+
HTMLAllCollection: 0,
|
|
4488
|
+
HTMLCollection: 0,
|
|
4489
|
+
HTMLFormElement: 0,
|
|
4490
|
+
HTMLSelectElement: 0,
|
|
4491
|
+
MediaList: 0,
|
|
4492
|
+
MimeTypeArray: 0,
|
|
4493
|
+
NamedNodeMap: 0,
|
|
4494
|
+
NodeList: 1,
|
|
4495
|
+
PaintRequestList: 0,
|
|
4496
|
+
Plugin: 0,
|
|
4497
|
+
PluginArray: 0,
|
|
4498
|
+
SVGLengthList: 0,
|
|
4499
|
+
SVGNumberList: 0,
|
|
4500
|
+
SVGPathSegList: 0,
|
|
4501
|
+
SVGPointList: 0,
|
|
4502
|
+
SVGStringList: 0,
|
|
4503
|
+
SVGTransformList: 0,
|
|
4504
|
+
SourceBufferList: 0,
|
|
4505
|
+
StyleSheetList: 0,
|
|
4506
|
+
TextTrackCueList: 0,
|
|
4507
|
+
TextTrackList: 0,
|
|
4508
|
+
TouchList: 0
|
|
4509
|
+
};
|
|
4510
|
+
|
|
4511
|
+
// `IsCallable` abstract operation
|
|
4512
|
+
// https://tc39.es/ecma262/#sec-iscallable
|
|
4513
|
+
var isCallable = function (argument) {
|
|
4514
|
+
return typeof argument === 'function';
|
|
4515
|
+
};
|
|
4516
|
+
|
|
4517
|
+
var isObject = function (it) {
|
|
4518
|
+
return typeof it === 'object' ? it !== null : isCallable(it);
|
|
4519
|
+
};
|
|
4520
|
+
|
|
4521
|
+
var document$1 = global_1.document;
|
|
4522
|
+
// typeof document.createElement is 'object' in old IE
|
|
4523
|
+
var EXISTS = isObject(document$1) && isObject(document$1.createElement);
|
|
4524
|
+
|
|
4525
|
+
var documentCreateElement = function (it) {
|
|
4526
|
+
return EXISTS ? document$1.createElement(it) : {};
|
|
4527
|
+
};
|
|
4528
|
+
|
|
4529
|
+
// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
|
|
4530
|
+
|
|
4531
|
+
|
|
4532
|
+
var classList = documentCreateElement('span').classList;
|
|
4533
|
+
var DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype;
|
|
4534
|
+
|
|
4535
|
+
var domTokenListPrototype = DOMTokenListPrototype === Object.prototype ? undefined : DOMTokenListPrototype;
|
|
4536
|
+
|
|
4537
|
+
var fails = function (exec) {
|
|
4538
|
+
try {
|
|
4539
|
+
return !!exec();
|
|
4540
|
+
} catch (error) {
|
|
4541
|
+
return true;
|
|
4542
|
+
}
|
|
4543
|
+
};
|
|
4544
|
+
|
|
4545
|
+
var toString = {}.toString;
|
|
4546
|
+
|
|
4547
|
+
var classofRaw = function (it) {
|
|
4548
|
+
return toString.call(it).slice(8, -1);
|
|
4549
|
+
};
|
|
4550
|
+
|
|
4551
|
+
var split = ''.split;
|
|
4552
|
+
|
|
4553
|
+
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
4554
|
+
var indexedObject = fails(function () {
|
|
4555
|
+
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
4556
|
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
4557
|
+
return !Object('z').propertyIsEnumerable(0);
|
|
4558
|
+
}) ? function (it) {
|
|
4559
|
+
return classofRaw(it) == 'String' ? split.call(it, '') : Object(it);
|
|
4560
|
+
} : Object;
|
|
4561
|
+
|
|
4562
|
+
// `RequireObjectCoercible` abstract operation
|
|
4563
|
+
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
4564
|
+
var requireObjectCoercible = function (it) {
|
|
4565
|
+
if (it == undefined) throw TypeError("Can't call method on " + it);
|
|
4566
|
+
return it;
|
|
4567
|
+
};
|
|
4568
|
+
|
|
4569
|
+
// toObject with fallback for non-array-like ES3 strings
|
|
4570
|
+
|
|
4571
|
+
|
|
4572
|
+
|
|
4573
|
+
var toIndexedObject = function (it) {
|
|
4574
|
+
return indexedObject(requireObjectCoercible(it));
|
|
4575
|
+
};
|
|
4576
|
+
|
|
4577
|
+
var setGlobal = function (key, value) {
|
|
4578
|
+
try {
|
|
4579
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
4580
|
+
Object.defineProperty(global_1, key, { value: value, configurable: true, writable: true });
|
|
4581
|
+
} catch (error) {
|
|
4582
|
+
global_1[key] = value;
|
|
4583
|
+
} return value;
|
|
4584
|
+
};
|
|
4585
|
+
|
|
4586
|
+
var SHARED = '__core-js_shared__';
|
|
4587
|
+
var store = global_1[SHARED] || setGlobal(SHARED, {});
|
|
4588
|
+
|
|
4589
|
+
var sharedStore = store;
|
|
4590
|
+
|
|
4591
|
+
var shared = createCommonjsModule(function (module) {
|
|
4592
|
+
(module.exports = function (key, value) {
|
|
4593
|
+
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
|
4594
|
+
})('versions', []).push({
|
|
4595
|
+
version: '3.18.3',
|
|
4596
|
+
mode: 'global',
|
|
4597
|
+
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
|
|
4598
|
+
});
|
|
4599
|
+
});
|
|
4600
|
+
|
|
4601
|
+
// `ToObject` abstract operation
|
|
4602
|
+
// https://tc39.es/ecma262/#sec-toobject
|
|
4603
|
+
var toObject = function (argument) {
|
|
4604
|
+
return Object(requireObjectCoercible(argument));
|
|
4605
|
+
};
|
|
4606
|
+
|
|
4607
|
+
var hasOwnProperty = {}.hasOwnProperty;
|
|
4608
|
+
|
|
4609
|
+
// `HasOwnProperty` abstract operation
|
|
4610
|
+
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
4611
|
+
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
4612
|
+
return hasOwnProperty.call(toObject(it), key);
|
|
4613
|
+
};
|
|
4614
|
+
|
|
4615
|
+
var id = 0;
|
|
4616
|
+
var postfix = Math.random();
|
|
4617
|
+
|
|
4618
|
+
var uid = function (key) {
|
|
4619
|
+
return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
|
|
4620
|
+
};
|
|
4621
|
+
|
|
4622
|
+
var aFunction = function (argument) {
|
|
4623
|
+
return isCallable(argument) ? argument : undefined;
|
|
4624
|
+
};
|
|
4625
|
+
|
|
4626
|
+
var getBuiltIn = function (namespace, method) {
|
|
4627
|
+
return arguments.length < 2 ? aFunction(global_1[namespace]) : global_1[namespace] && global_1[namespace][method];
|
|
4628
|
+
};
|
|
4629
|
+
|
|
4630
|
+
var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
|
|
4631
|
+
|
|
4632
|
+
var process$1 = global_1.process;
|
|
4633
|
+
var Deno = global_1.Deno;
|
|
4634
|
+
var versions = process$1 && process$1.versions || Deno && Deno.version;
|
|
4635
|
+
var v8 = versions && versions.v8;
|
|
4636
|
+
var match, version;
|
|
4637
|
+
|
|
4638
|
+
if (v8) {
|
|
4639
|
+
match = v8.split('.');
|
|
4640
|
+
version = match[0] < 4 ? 1 : match[0] + match[1];
|
|
4641
|
+
} else if (engineUserAgent) {
|
|
4642
|
+
match = engineUserAgent.match(/Edge\/(\d+)/);
|
|
4643
|
+
if (!match || match[1] >= 74) {
|
|
4644
|
+
match = engineUserAgent.match(/Chrome\/(\d+)/);
|
|
4645
|
+
if (match) version = match[1];
|
|
4646
|
+
}
|
|
4647
|
+
}
|
|
4648
|
+
|
|
4649
|
+
var engineV8Version = version && +version;
|
|
4650
|
+
|
|
4651
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
|
4652
|
+
|
|
4653
|
+
|
|
4654
|
+
|
|
4655
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
4656
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
4657
|
+
var symbol = Symbol();
|
|
4658
|
+
// Chrome 38 Symbol has incorrect toString conversion
|
|
4659
|
+
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
4660
|
+
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
4661
|
+
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
4662
|
+
!Symbol.sham && engineV8Version && engineV8Version < 41;
|
|
4663
|
+
});
|
|
4664
|
+
|
|
4665
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
|
4666
|
+
|
|
4667
|
+
|
|
4668
|
+
var useSymbolAsUid = nativeSymbol
|
|
4669
|
+
&& !Symbol.sham
|
|
4670
|
+
&& typeof Symbol.iterator == 'symbol';
|
|
4671
|
+
|
|
4672
|
+
var WellKnownSymbolsStore = shared('wks');
|
|
4673
|
+
var Symbol$1 = global_1.Symbol;
|
|
4674
|
+
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
|
4675
|
+
|
|
4676
|
+
var wellKnownSymbol = function (name) {
|
|
4677
|
+
if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
|
|
4678
|
+
if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
|
|
4679
|
+
WellKnownSymbolsStore[name] = Symbol$1[name];
|
|
4680
|
+
} else {
|
|
4681
|
+
WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
|
|
4682
|
+
}
|
|
4683
|
+
} return WellKnownSymbolsStore[name];
|
|
4684
|
+
};
|
|
4685
|
+
|
|
4686
|
+
// `Assert: Type(argument) is Object`
|
|
4687
|
+
var anObject = function (argument) {
|
|
4688
|
+
if (isObject(argument)) return argument;
|
|
4689
|
+
throw TypeError(String(argument) + ' is not an object');
|
|
4690
|
+
};
|
|
4691
|
+
|
|
4692
|
+
// Detect IE8's incomplete defineProperty implementation
|
|
4693
|
+
var descriptors = !fails(function () {
|
|
4694
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
4695
|
+
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
4696
|
+
});
|
|
4697
|
+
|
|
4698
|
+
// Thank's IE8 for his funny defineProperty
|
|
4699
|
+
var ie8DomDefine = !descriptors && !fails(function () {
|
|
4700
|
+
// eslint-disable-next-line es/no-object-defineproperty -- requied for testing
|
|
4701
|
+
return Object.defineProperty(documentCreateElement('div'), 'a', {
|
|
4702
|
+
get: function () { return 7; }
|
|
4703
|
+
}).a != 7;
|
|
4704
|
+
});
|
|
4705
|
+
|
|
4706
|
+
var isSymbol = useSymbolAsUid ? function (it) {
|
|
4707
|
+
return typeof it == 'symbol';
|
|
4708
|
+
} : function (it) {
|
|
4709
|
+
var $Symbol = getBuiltIn('Symbol');
|
|
4710
|
+
return isCallable($Symbol) && Object(it) instanceof $Symbol;
|
|
4711
|
+
};
|
|
4712
|
+
|
|
4713
|
+
var tryToString = function (argument) {
|
|
4714
|
+
try {
|
|
4715
|
+
return String(argument);
|
|
4716
|
+
} catch (error) {
|
|
4717
|
+
return 'Object';
|
|
4718
|
+
}
|
|
4719
|
+
};
|
|
4720
|
+
|
|
4721
|
+
// `Assert: IsCallable(argument) is true`
|
|
4722
|
+
var aCallable = function (argument) {
|
|
4723
|
+
if (isCallable(argument)) return argument;
|
|
4724
|
+
throw TypeError(tryToString(argument) + ' is not a function');
|
|
4725
|
+
};
|
|
4726
|
+
|
|
4727
|
+
// `GetMethod` abstract operation
|
|
4728
|
+
// https://tc39.es/ecma262/#sec-getmethod
|
|
4729
|
+
var getMethod = function (V, P) {
|
|
4730
|
+
var func = V[P];
|
|
4731
|
+
return func == null ? undefined : aCallable(func);
|
|
4732
|
+
};
|
|
4733
|
+
|
|
4734
|
+
// `OrdinaryToPrimitive` abstract operation
|
|
4735
|
+
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
4736
|
+
var ordinaryToPrimitive = function (input, pref) {
|
|
4737
|
+
var fn, val;
|
|
4738
|
+
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = fn.call(input))) return val;
|
|
4739
|
+
if (isCallable(fn = input.valueOf) && !isObject(val = fn.call(input))) return val;
|
|
4740
|
+
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = fn.call(input))) return val;
|
|
4741
|
+
throw TypeError("Can't convert object to primitive value");
|
|
4742
|
+
};
|
|
4743
|
+
|
|
4744
|
+
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
|
4745
|
+
|
|
4746
|
+
// `ToPrimitive` abstract operation
|
|
4747
|
+
// https://tc39.es/ecma262/#sec-toprimitive
|
|
4748
|
+
var toPrimitive = function (input, pref) {
|
|
4749
|
+
if (!isObject(input) || isSymbol(input)) return input;
|
|
4750
|
+
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
|
4751
|
+
var result;
|
|
4752
|
+
if (exoticToPrim) {
|
|
4753
|
+
if (pref === undefined) pref = 'default';
|
|
4754
|
+
result = exoticToPrim.call(input, pref);
|
|
4755
|
+
if (!isObject(result) || isSymbol(result)) return result;
|
|
4756
|
+
throw TypeError("Can't convert object to primitive value");
|
|
4757
|
+
}
|
|
4758
|
+
if (pref === undefined) pref = 'number';
|
|
4759
|
+
return ordinaryToPrimitive(input, pref);
|
|
4760
|
+
};
|
|
4761
|
+
|
|
4762
|
+
// `ToPropertyKey` abstract operation
|
|
4763
|
+
// https://tc39.es/ecma262/#sec-topropertykey
|
|
4764
|
+
var toPropertyKey = function (argument) {
|
|
4765
|
+
var key = toPrimitive(argument, 'string');
|
|
4766
|
+
return isSymbol(key) ? key : String(key);
|
|
4767
|
+
};
|
|
4768
|
+
|
|
4769
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
4770
|
+
var $defineProperty = Object.defineProperty;
|
|
4771
|
+
|
|
4772
|
+
// `Object.defineProperty` method
|
|
4773
|
+
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
4774
|
+
var f = descriptors ? $defineProperty : function defineProperty(O, P, Attributes) {
|
|
4775
|
+
anObject(O);
|
|
4776
|
+
P = toPropertyKey(P);
|
|
4777
|
+
anObject(Attributes);
|
|
4778
|
+
if (ie8DomDefine) try {
|
|
4779
|
+
return $defineProperty(O, P, Attributes);
|
|
4780
|
+
} catch (error) { /* empty */ }
|
|
4781
|
+
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
|
|
4782
|
+
if ('value' in Attributes) O[P] = Attributes.value;
|
|
4783
|
+
return O;
|
|
4784
|
+
};
|
|
4785
|
+
|
|
4786
|
+
var objectDefineProperty = {
|
|
4787
|
+
f: f
|
|
4788
|
+
};
|
|
4789
|
+
|
|
4790
|
+
var ceil = Math.ceil;
|
|
4791
|
+
var floor = Math.floor;
|
|
4792
|
+
|
|
4793
|
+
// `ToIntegerOrInfinity` abstract operation
|
|
4794
|
+
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
4795
|
+
var toIntegerOrInfinity = function (argument) {
|
|
4796
|
+
var number = +argument;
|
|
4797
|
+
// eslint-disable-next-line no-self-compare -- safe
|
|
4798
|
+
return number !== number || number === 0 ? 0 : (number > 0 ? floor : ceil)(number);
|
|
4799
|
+
};
|
|
4800
|
+
|
|
4801
|
+
var max = Math.max;
|
|
4802
|
+
var min = Math.min;
|
|
4803
|
+
|
|
4804
|
+
// Helper for a popular repeating case of the spec:
|
|
4805
|
+
// Let integer be ? ToInteger(index).
|
|
4806
|
+
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
4807
|
+
var toAbsoluteIndex = function (index, length) {
|
|
4808
|
+
var integer = toIntegerOrInfinity(index);
|
|
4809
|
+
return integer < 0 ? max(integer + length, 0) : min(integer, length);
|
|
4810
|
+
};
|
|
4811
|
+
|
|
4812
|
+
var min$1 = Math.min;
|
|
4813
|
+
|
|
4814
|
+
// `ToLength` abstract operation
|
|
4815
|
+
// https://tc39.es/ecma262/#sec-tolength
|
|
4816
|
+
var toLength = function (argument) {
|
|
4817
|
+
return argument > 0 ? min$1(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
4818
|
+
};
|
|
4819
|
+
|
|
4820
|
+
// `LengthOfArrayLike` abstract operation
|
|
4821
|
+
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
4822
|
+
var lengthOfArrayLike = function (obj) {
|
|
4823
|
+
return toLength(obj.length);
|
|
4824
|
+
};
|
|
4825
|
+
|
|
4826
|
+
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
4827
|
+
var createMethod = function (IS_INCLUDES) {
|
|
4828
|
+
return function ($this, el, fromIndex) {
|
|
4829
|
+
var O = toIndexedObject($this);
|
|
4830
|
+
var length = lengthOfArrayLike(O);
|
|
4831
|
+
var index = toAbsoluteIndex(fromIndex, length);
|
|
4832
|
+
var value;
|
|
4833
|
+
// Array#includes uses SameValueZero equality algorithm
|
|
4834
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
4835
|
+
if (IS_INCLUDES && el != el) while (length > index) {
|
|
4836
|
+
value = O[index++];
|
|
4837
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
4838
|
+
if (value != value) return true;
|
|
4839
|
+
// Array#indexOf ignores holes, Array#includes - not
|
|
4840
|
+
} else for (;length > index; index++) {
|
|
4841
|
+
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
4842
|
+
} return !IS_INCLUDES && -1;
|
|
4843
|
+
};
|
|
4844
|
+
};
|
|
4845
|
+
|
|
4846
|
+
var arrayIncludes = {
|
|
4847
|
+
// `Array.prototype.includes` method
|
|
4848
|
+
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
4849
|
+
includes: createMethod(true),
|
|
4850
|
+
// `Array.prototype.indexOf` method
|
|
4851
|
+
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
4852
|
+
indexOf: createMethod(false)
|
|
4853
|
+
};
|
|
4854
|
+
|
|
4855
|
+
var hiddenKeys = {};
|
|
4856
|
+
|
|
4857
|
+
var indexOf = arrayIncludes.indexOf;
|
|
4858
|
+
|
|
4859
|
+
|
|
4860
|
+
var objectKeysInternal = function (object, names) {
|
|
4861
|
+
var O = toIndexedObject(object);
|
|
4862
|
+
var i = 0;
|
|
4863
|
+
var result = [];
|
|
4864
|
+
var key;
|
|
4865
|
+
for (key in O) !hasOwnProperty_1(hiddenKeys, key) && hasOwnProperty_1(O, key) && result.push(key);
|
|
4866
|
+
// Don't enum bug & hidden keys
|
|
4867
|
+
while (names.length > i) if (hasOwnProperty_1(O, key = names[i++])) {
|
|
4868
|
+
~indexOf(result, key) || result.push(key);
|
|
4869
|
+
}
|
|
4870
|
+
return result;
|
|
4871
|
+
};
|
|
4872
|
+
|
|
4873
|
+
// IE8- don't enum bug keys
|
|
4874
|
+
var enumBugKeys = [
|
|
4875
|
+
'constructor',
|
|
4876
|
+
'hasOwnProperty',
|
|
4877
|
+
'isPrototypeOf',
|
|
4878
|
+
'propertyIsEnumerable',
|
|
4879
|
+
'toLocaleString',
|
|
4880
|
+
'toString',
|
|
4881
|
+
'valueOf'
|
|
4882
|
+
];
|
|
4883
|
+
|
|
4884
|
+
// `Object.keys` method
|
|
4885
|
+
// https://tc39.es/ecma262/#sec-object.keys
|
|
4886
|
+
// eslint-disable-next-line es/no-object-keys -- safe
|
|
4887
|
+
var objectKeys = Object.keys || function keys(O) {
|
|
4888
|
+
return objectKeysInternal(O, enumBugKeys);
|
|
4889
|
+
};
|
|
4890
|
+
|
|
4891
|
+
// `Object.defineProperties` method
|
|
4892
|
+
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
4893
|
+
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
4894
|
+
var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
4895
|
+
anObject(O);
|
|
4896
|
+
var keys = objectKeys(Properties);
|
|
4897
|
+
var length = keys.length;
|
|
4898
|
+
var index = 0;
|
|
4899
|
+
var key;
|
|
4900
|
+
while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]);
|
|
4901
|
+
return O;
|
|
4902
|
+
};
|
|
4903
|
+
|
|
4904
|
+
var html = getBuiltIn('document', 'documentElement');
|
|
4905
|
+
|
|
4906
|
+
var keys = shared('keys');
|
|
4907
|
+
|
|
4908
|
+
var sharedKey = function (key) {
|
|
4909
|
+
return keys[key] || (keys[key] = uid(key));
|
|
4910
|
+
};
|
|
4911
|
+
|
|
4912
|
+
/* global ActiveXObject -- old IE, WSH */
|
|
4913
|
+
|
|
4914
|
+
|
|
4915
|
+
|
|
4916
|
+
|
|
4917
|
+
|
|
4918
|
+
|
|
4919
|
+
|
|
4920
|
+
|
|
4921
|
+
var GT = '>';
|
|
4922
|
+
var LT = '<';
|
|
4923
|
+
var PROTOTYPE = 'prototype';
|
|
4924
|
+
var SCRIPT = 'script';
|
|
4925
|
+
var IE_PROTO = sharedKey('IE_PROTO');
|
|
4926
|
+
|
|
4927
|
+
var EmptyConstructor = function () { /* empty */ };
|
|
4928
|
+
|
|
4929
|
+
var scriptTag = function (content) {
|
|
4930
|
+
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
|
4931
|
+
};
|
|
4932
|
+
|
|
4933
|
+
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
|
4934
|
+
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
|
4935
|
+
activeXDocument.write(scriptTag(''));
|
|
4936
|
+
activeXDocument.close();
|
|
4937
|
+
var temp = activeXDocument.parentWindow.Object;
|
|
4938
|
+
activeXDocument = null; // avoid memory leak
|
|
4939
|
+
return temp;
|
|
4940
|
+
};
|
|
4941
|
+
|
|
4942
|
+
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
4943
|
+
var NullProtoObjectViaIFrame = function () {
|
|
4944
|
+
// Thrash, waste and sodomy: IE GC bug
|
|
4945
|
+
var iframe = documentCreateElement('iframe');
|
|
4946
|
+
var JS = 'java' + SCRIPT + ':';
|
|
4947
|
+
var iframeDocument;
|
|
4948
|
+
iframe.style.display = 'none';
|
|
4949
|
+
html.appendChild(iframe);
|
|
4950
|
+
// https://github.com/zloirock/core-js/issues/475
|
|
4951
|
+
iframe.src = String(JS);
|
|
4952
|
+
iframeDocument = iframe.contentWindow.document;
|
|
4953
|
+
iframeDocument.open();
|
|
4954
|
+
iframeDocument.write(scriptTag('document.F=Object'));
|
|
4955
|
+
iframeDocument.close();
|
|
4956
|
+
return iframeDocument.F;
|
|
4957
|
+
};
|
|
4958
|
+
|
|
4959
|
+
// Check for document.domain and active x support
|
|
4960
|
+
// No need to use active x approach when document.domain is not set
|
|
4961
|
+
// see https://github.com/es-shims/es5-shim/issues/150
|
|
4962
|
+
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
|
4963
|
+
// avoid IE GC bug
|
|
4964
|
+
var activeXDocument;
|
|
4965
|
+
var NullProtoObject = function () {
|
|
4966
|
+
try {
|
|
4967
|
+
activeXDocument = new ActiveXObject('htmlfile');
|
|
4968
|
+
} catch (error) { /* ignore */ }
|
|
4969
|
+
NullProtoObject = typeof document != 'undefined'
|
|
4970
|
+
? document.domain && activeXDocument
|
|
4971
|
+
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
|
4972
|
+
: NullProtoObjectViaIFrame()
|
|
4973
|
+
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
|
4974
|
+
var length = enumBugKeys.length;
|
|
4975
|
+
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
|
4976
|
+
return NullProtoObject();
|
|
4977
|
+
};
|
|
4978
|
+
|
|
4979
|
+
hiddenKeys[IE_PROTO] = true;
|
|
4980
|
+
|
|
4981
|
+
// `Object.create` method
|
|
4982
|
+
// https://tc39.es/ecma262/#sec-object.create
|
|
4983
|
+
var objectCreate = Object.create || function create(O, Properties) {
|
|
4984
|
+
var result;
|
|
4985
|
+
if (O !== null) {
|
|
4986
|
+
EmptyConstructor[PROTOTYPE] = anObject(O);
|
|
4987
|
+
result = new EmptyConstructor();
|
|
4988
|
+
EmptyConstructor[PROTOTYPE] = null;
|
|
4989
|
+
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
4990
|
+
result[IE_PROTO] = O;
|
|
4991
|
+
} else result = NullProtoObject();
|
|
4992
|
+
return Properties === undefined ? result : objectDefineProperties(result, Properties);
|
|
4993
|
+
};
|
|
4994
|
+
|
|
4995
|
+
var UNSCOPABLES = wellKnownSymbol('unscopables');
|
|
4996
|
+
var ArrayPrototype = Array.prototype;
|
|
4997
|
+
|
|
4998
|
+
// Array.prototype[@@unscopables]
|
|
4999
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
5000
|
+
if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
|
5001
|
+
objectDefineProperty.f(ArrayPrototype, UNSCOPABLES, {
|
|
5002
|
+
configurable: true,
|
|
5003
|
+
value: objectCreate(null)
|
|
5004
|
+
});
|
|
5005
|
+
}
|
|
5006
|
+
|
|
5007
|
+
// add a key to Array.prototype[@@unscopables]
|
|
5008
|
+
var addToUnscopables = function (key) {
|
|
5009
|
+
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
5010
|
+
};
|
|
5011
|
+
|
|
5012
|
+
var functionToString = Function.toString;
|
|
5013
|
+
|
|
5014
|
+
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
5015
|
+
if (!isCallable(sharedStore.inspectSource)) {
|
|
5016
|
+
sharedStore.inspectSource = function (it) {
|
|
5017
|
+
return functionToString.call(it);
|
|
5018
|
+
};
|
|
5019
|
+
}
|
|
5020
|
+
|
|
5021
|
+
var inspectSource = sharedStore.inspectSource;
|
|
5022
|
+
|
|
5023
|
+
var WeakMap$1 = global_1.WeakMap;
|
|
5024
|
+
|
|
5025
|
+
var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
|
|
5026
|
+
|
|
5027
|
+
var createPropertyDescriptor = function (bitmap, value) {
|
|
5028
|
+
return {
|
|
5029
|
+
enumerable: !(bitmap & 1),
|
|
5030
|
+
configurable: !(bitmap & 2),
|
|
5031
|
+
writable: !(bitmap & 4),
|
|
5032
|
+
value: value
|
|
5033
|
+
};
|
|
5034
|
+
};
|
|
5035
|
+
|
|
5036
|
+
var createNonEnumerableProperty = descriptors ? function (object, key, value) {
|
|
5037
|
+
return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));
|
|
5038
|
+
} : function (object, key, value) {
|
|
5039
|
+
object[key] = value;
|
|
5040
|
+
return object;
|
|
5041
|
+
};
|
|
5042
|
+
|
|
5043
|
+
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
5044
|
+
var WeakMap$2 = global_1.WeakMap;
|
|
5045
|
+
var set, get, has;
|
|
5046
|
+
|
|
5047
|
+
var enforce = function (it) {
|
|
5048
|
+
return has(it) ? get(it) : set(it, {});
|
|
5049
|
+
};
|
|
5050
|
+
|
|
5051
|
+
var getterFor = function (TYPE) {
|
|
5052
|
+
return function (it) {
|
|
5053
|
+
var state;
|
|
5054
|
+
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
|
5055
|
+
throw TypeError('Incompatible receiver, ' + TYPE + ' required');
|
|
5056
|
+
} return state;
|
|
5057
|
+
};
|
|
5058
|
+
};
|
|
5059
|
+
|
|
5060
|
+
if (nativeWeakMap || sharedStore.state) {
|
|
5061
|
+
var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$2());
|
|
5062
|
+
var wmget = store$1.get;
|
|
5063
|
+
var wmhas = store$1.has;
|
|
5064
|
+
var wmset = store$1.set;
|
|
5065
|
+
set = function (it, metadata) {
|
|
5066
|
+
if (wmhas.call(store$1, it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
|
|
5067
|
+
metadata.facade = it;
|
|
5068
|
+
wmset.call(store$1, it, metadata);
|
|
5069
|
+
return metadata;
|
|
5070
|
+
};
|
|
5071
|
+
get = function (it) {
|
|
5072
|
+
return wmget.call(store$1, it) || {};
|
|
5073
|
+
};
|
|
5074
|
+
has = function (it) {
|
|
5075
|
+
return wmhas.call(store$1, it);
|
|
5076
|
+
};
|
|
5077
|
+
} else {
|
|
5078
|
+
var STATE = sharedKey('state');
|
|
5079
|
+
hiddenKeys[STATE] = true;
|
|
5080
|
+
set = function (it, metadata) {
|
|
5081
|
+
if (hasOwnProperty_1(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
|
|
5082
|
+
metadata.facade = it;
|
|
5083
|
+
createNonEnumerableProperty(it, STATE, metadata);
|
|
5084
|
+
return metadata;
|
|
5085
|
+
};
|
|
5086
|
+
get = function (it) {
|
|
5087
|
+
return hasOwnProperty_1(it, STATE) ? it[STATE] : {};
|
|
5088
|
+
};
|
|
5089
|
+
has = function (it) {
|
|
5090
|
+
return hasOwnProperty_1(it, STATE);
|
|
5091
|
+
};
|
|
5092
|
+
}
|
|
5093
|
+
|
|
5094
|
+
var internalState = {
|
|
5095
|
+
set: set,
|
|
5096
|
+
get: get,
|
|
5097
|
+
has: has,
|
|
5098
|
+
enforce: enforce,
|
|
5099
|
+
getterFor: getterFor
|
|
5100
|
+
};
|
|
5101
|
+
|
|
5102
|
+
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
5103
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
5104
|
+
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
5105
|
+
|
|
5106
|
+
// Nashorn ~ JDK8 bug
|
|
5107
|
+
var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
5108
|
+
|
|
5109
|
+
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
5110
|
+
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
5111
|
+
var f$1 = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
5112
|
+
var descriptor = getOwnPropertyDescriptor(this, V);
|
|
5113
|
+
return !!descriptor && descriptor.enumerable;
|
|
5114
|
+
} : $propertyIsEnumerable;
|
|
5115
|
+
|
|
5116
|
+
var objectPropertyIsEnumerable = {
|
|
5117
|
+
f: f$1
|
|
5118
|
+
};
|
|
5119
|
+
|
|
5120
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
5121
|
+
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
5122
|
+
|
|
5123
|
+
// `Object.getOwnPropertyDescriptor` method
|
|
5124
|
+
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
5125
|
+
var f$2 = descriptors ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
|
5126
|
+
O = toIndexedObject(O);
|
|
5127
|
+
P = toPropertyKey(P);
|
|
5128
|
+
if (ie8DomDefine) try {
|
|
5129
|
+
return $getOwnPropertyDescriptor(O, P);
|
|
5130
|
+
} catch (error) { /* empty */ }
|
|
5131
|
+
if (hasOwnProperty_1(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
|
|
5132
|
+
};
|
|
5133
|
+
|
|
5134
|
+
var objectGetOwnPropertyDescriptor = {
|
|
5135
|
+
f: f$2
|
|
5136
|
+
};
|
|
5137
|
+
|
|
5138
|
+
var FunctionPrototype = Function.prototype;
|
|
5139
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
5140
|
+
var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
|
|
5141
|
+
|
|
5142
|
+
var EXISTS$1 = hasOwnProperty_1(FunctionPrototype, 'name');
|
|
5143
|
+
// additional protection from minified / mangled / dropped function names
|
|
5144
|
+
var PROPER = EXISTS$1 && (function something() { /* empty */ }).name === 'something';
|
|
5145
|
+
var CONFIGURABLE = EXISTS$1 && (!descriptors || (descriptors && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
5146
|
+
|
|
5147
|
+
var functionName = {
|
|
5148
|
+
EXISTS: EXISTS$1,
|
|
5149
|
+
PROPER: PROPER,
|
|
5150
|
+
CONFIGURABLE: CONFIGURABLE
|
|
5151
|
+
};
|
|
5152
|
+
|
|
5153
|
+
var redefine = createCommonjsModule(function (module) {
|
|
5154
|
+
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
5155
|
+
|
|
5156
|
+
var getInternalState = internalState.get;
|
|
5157
|
+
var enforceInternalState = internalState.enforce;
|
|
5158
|
+
var TEMPLATE = String(String).split('String');
|
|
5159
|
+
|
|
5160
|
+
(module.exports = function (O, key, value, options) {
|
|
5161
|
+
var unsafe = options ? !!options.unsafe : false;
|
|
5162
|
+
var simple = options ? !!options.enumerable : false;
|
|
5163
|
+
var noTargetGet = options ? !!options.noTargetGet : false;
|
|
5164
|
+
var name = options && options.name !== undefined ? options.name : key;
|
|
5165
|
+
var state;
|
|
5166
|
+
if (isCallable(value)) {
|
|
5167
|
+
if (String(name).slice(0, 7) === 'Symbol(') {
|
|
5168
|
+
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
5169
|
+
}
|
|
5170
|
+
if (!hasOwnProperty_1(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
|
5171
|
+
createNonEnumerableProperty(value, 'name', name);
|
|
5172
|
+
}
|
|
5173
|
+
state = enforceInternalState(value);
|
|
5174
|
+
if (!state.source) {
|
|
5175
|
+
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
5176
|
+
}
|
|
5177
|
+
}
|
|
5178
|
+
if (O === global_1) {
|
|
5179
|
+
if (simple) O[key] = value;
|
|
5180
|
+
else setGlobal(key, value);
|
|
5181
|
+
return;
|
|
5182
|
+
} else if (!unsafe) {
|
|
5183
|
+
delete O[key];
|
|
5184
|
+
} else if (!noTargetGet && O[key]) {
|
|
5185
|
+
simple = true;
|
|
5186
|
+
}
|
|
5187
|
+
if (simple) O[key] = value;
|
|
5188
|
+
else createNonEnumerableProperty(O, key, value);
|
|
5189
|
+
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
5190
|
+
})(Function.prototype, 'toString', function toString() {
|
|
5191
|
+
return isCallable(this) && getInternalState(this).source || inspectSource(this);
|
|
5192
|
+
});
|
|
5193
|
+
});
|
|
5194
|
+
|
|
5195
|
+
var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
|
|
5196
|
+
|
|
5197
|
+
// `Object.getOwnPropertyNames` method
|
|
5198
|
+
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
5199
|
+
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
5200
|
+
var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
5201
|
+
return objectKeysInternal(O, hiddenKeys$1);
|
|
5202
|
+
};
|
|
5203
|
+
|
|
5204
|
+
var objectGetOwnPropertyNames = {
|
|
5205
|
+
f: f$3
|
|
5206
|
+
};
|
|
5207
|
+
|
|
5208
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
5209
|
+
var f$4 = Object.getOwnPropertySymbols;
|
|
5210
|
+
|
|
5211
|
+
var objectGetOwnPropertySymbols = {
|
|
5212
|
+
f: f$4
|
|
5213
|
+
};
|
|
5214
|
+
|
|
5215
|
+
// all object keys, includes non-enumerable and symbols
|
|
5216
|
+
var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
5217
|
+
var keys = objectGetOwnPropertyNames.f(anObject(it));
|
|
5218
|
+
var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
|
|
5219
|
+
return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
|
|
5220
|
+
};
|
|
5221
|
+
|
|
5222
|
+
var copyConstructorProperties = function (target, source) {
|
|
5223
|
+
var keys = ownKeys(source);
|
|
5224
|
+
var defineProperty = objectDefineProperty.f;
|
|
5225
|
+
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
5226
|
+
for (var i = 0; i < keys.length; i++) {
|
|
5227
|
+
var key = keys[i];
|
|
5228
|
+
if (!hasOwnProperty_1(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
5229
|
+
}
|
|
5230
|
+
};
|
|
5231
|
+
|
|
5232
|
+
var replacement = /#|\.prototype\./;
|
|
5233
|
+
|
|
5234
|
+
var isForced = function (feature, detection) {
|
|
5235
|
+
var value = data[normalize(feature)];
|
|
5236
|
+
return value == POLYFILL ? true
|
|
5237
|
+
: value == NATIVE ? false
|
|
5238
|
+
: isCallable(detection) ? fails(detection)
|
|
5239
|
+
: !!detection;
|
|
5240
|
+
};
|
|
5241
|
+
|
|
5242
|
+
var normalize = isForced.normalize = function (string) {
|
|
5243
|
+
return String(string).replace(replacement, '.').toLowerCase();
|
|
5244
|
+
};
|
|
5245
|
+
|
|
5246
|
+
var data = isForced.data = {};
|
|
5247
|
+
var NATIVE = isForced.NATIVE = 'N';
|
|
5248
|
+
var POLYFILL = isForced.POLYFILL = 'P';
|
|
5249
|
+
|
|
5250
|
+
var isForced_1 = isForced;
|
|
5251
|
+
|
|
5252
|
+
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
5253
|
+
|
|
5254
|
+
|
|
5255
|
+
|
|
5256
|
+
|
|
5257
|
+
|
|
5258
|
+
|
|
5259
|
+
/*
|
|
5260
|
+
options.target - name of the target object
|
|
5261
|
+
options.global - target is the global object
|
|
5262
|
+
options.stat - export as static methods of target
|
|
5263
|
+
options.proto - export as prototype methods of target
|
|
5264
|
+
options.real - real prototype method for the `pure` version
|
|
5265
|
+
options.forced - export even if the native feature is available
|
|
5266
|
+
options.bind - bind methods to the target, required for the `pure` version
|
|
5267
|
+
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
|
|
5268
|
+
options.unsafe - use the simple assignment of property instead of delete + defineProperty
|
|
5269
|
+
options.sham - add a flag to not completely full polyfills
|
|
5270
|
+
options.enumerable - export as enumerable property
|
|
5271
|
+
options.noTargetGet - prevent calling a getter on target
|
|
5272
|
+
options.name - the .name of the function if it does not match the key
|
|
5273
|
+
*/
|
|
5274
|
+
var _export = function (options, source) {
|
|
5275
|
+
var TARGET = options.target;
|
|
5276
|
+
var GLOBAL = options.global;
|
|
5277
|
+
var STATIC = options.stat;
|
|
5278
|
+
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
5279
|
+
if (GLOBAL) {
|
|
5280
|
+
target = global_1;
|
|
5281
|
+
} else if (STATIC) {
|
|
5282
|
+
target = global_1[TARGET] || setGlobal(TARGET, {});
|
|
5283
|
+
} else {
|
|
5284
|
+
target = (global_1[TARGET] || {}).prototype;
|
|
5285
|
+
}
|
|
5286
|
+
if (target) for (key in source) {
|
|
5287
|
+
sourceProperty = source[key];
|
|
5288
|
+
if (options.noTargetGet) {
|
|
5289
|
+
descriptor = getOwnPropertyDescriptor$1(target, key);
|
|
5290
|
+
targetProperty = descriptor && descriptor.value;
|
|
5291
|
+
} else targetProperty = target[key];
|
|
5292
|
+
FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
5293
|
+
// contained in target
|
|
5294
|
+
if (!FORCED && targetProperty !== undefined) {
|
|
5295
|
+
if (typeof sourceProperty === typeof targetProperty) continue;
|
|
5296
|
+
copyConstructorProperties(sourceProperty, targetProperty);
|
|
5297
|
+
}
|
|
5298
|
+
// add a flag to not completely full polyfills
|
|
5299
|
+
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
5300
|
+
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
|
5301
|
+
}
|
|
5302
|
+
// extend global
|
|
5303
|
+
redefine(target, key, sourceProperty, options);
|
|
5304
|
+
}
|
|
5305
|
+
};
|
|
5306
|
+
|
|
5307
|
+
var correctPrototypeGetter = !fails(function () {
|
|
5308
|
+
function F() { /* empty */ }
|
|
5309
|
+
F.prototype.constructor = null;
|
|
5310
|
+
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
5311
|
+
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
5312
|
+
});
|
|
5313
|
+
|
|
5314
|
+
var IE_PROTO$1 = sharedKey('IE_PROTO');
|
|
5315
|
+
var ObjectPrototype = Object.prototype;
|
|
5316
|
+
|
|
5317
|
+
// `Object.getPrototypeOf` method
|
|
5318
|
+
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
5319
|
+
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
5320
|
+
var objectGetPrototypeOf = correctPrototypeGetter ? Object.getPrototypeOf : function (O) {
|
|
5321
|
+
var object = toObject(O);
|
|
5322
|
+
if (hasOwnProperty_1(object, IE_PROTO$1)) return object[IE_PROTO$1];
|
|
5323
|
+
var constructor = object.constructor;
|
|
5324
|
+
if (isCallable(constructor) && object instanceof constructor) {
|
|
5325
|
+
return constructor.prototype;
|
|
5326
|
+
} return object instanceof Object ? ObjectPrototype : null;
|
|
5327
|
+
};
|
|
5328
|
+
|
|
5329
|
+
var ITERATOR = wellKnownSymbol('iterator');
|
|
5330
|
+
var BUGGY_SAFARI_ITERATORS = false;
|
|
5331
|
+
|
|
5332
|
+
// `%IteratorPrototype%` object
|
|
5333
|
+
// https://tc39.es/ecma262/#sec-%iteratorprototype%-object
|
|
5334
|
+
var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
|
5335
|
+
|
|
5336
|
+
/* eslint-disable es/no-array-prototype-keys -- safe */
|
|
5337
|
+
if ([].keys) {
|
|
5338
|
+
arrayIterator = [].keys();
|
|
5339
|
+
// Safari 8 has buggy iterators w/o `next`
|
|
5340
|
+
if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
|
|
5341
|
+
else {
|
|
5342
|
+
PrototypeOfArrayIteratorPrototype = objectGetPrototypeOf(objectGetPrototypeOf(arrayIterator));
|
|
5343
|
+
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;
|
|
5344
|
+
}
|
|
5345
|
+
}
|
|
5346
|
+
|
|
5347
|
+
var NEW_ITERATOR_PROTOTYPE = IteratorPrototype == undefined || fails(function () {
|
|
5348
|
+
var test = {};
|
|
5349
|
+
// FF44- legacy iterators case
|
|
5350
|
+
return IteratorPrototype[ITERATOR].call(test) !== test;
|
|
5351
|
+
});
|
|
5352
|
+
|
|
5353
|
+
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};
|
|
5354
|
+
|
|
5355
|
+
// `%IteratorPrototype%[@@iterator]()` method
|
|
5356
|
+
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
5357
|
+
if (!isCallable(IteratorPrototype[ITERATOR])) {
|
|
5358
|
+
redefine(IteratorPrototype, ITERATOR, function () {
|
|
5359
|
+
return this;
|
|
5360
|
+
});
|
|
5361
|
+
}
|
|
5362
|
+
|
|
5363
|
+
var iteratorsCore = {
|
|
5364
|
+
IteratorPrototype: IteratorPrototype,
|
|
5365
|
+
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
|
|
5366
|
+
};
|
|
5367
|
+
|
|
5368
|
+
var defineProperty = objectDefineProperty.f;
|
|
5369
|
+
|
|
5370
|
+
|
|
5371
|
+
|
|
5372
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
5373
|
+
|
|
5374
|
+
var setToStringTag = function (it, TAG, STATIC) {
|
|
5375
|
+
if (it && !hasOwnProperty_1(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {
|
|
5376
|
+
defineProperty(it, TO_STRING_TAG, { configurable: true, value: TAG });
|
|
5377
|
+
}
|
|
5378
|
+
};
|
|
5379
|
+
|
|
5380
|
+
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
|
5381
|
+
|
|
5382
|
+
var createIteratorConstructor = function (IteratorConstructor, NAME, next) {
|
|
5383
|
+
var TO_STRING_TAG = NAME + ' Iterator';
|
|
5384
|
+
IteratorConstructor.prototype = objectCreate(IteratorPrototype$1, { next: createPropertyDescriptor(1, next) });
|
|
5385
|
+
setToStringTag(IteratorConstructor, TO_STRING_TAG, false);
|
|
5386
|
+
return IteratorConstructor;
|
|
5387
|
+
};
|
|
5388
|
+
|
|
5389
|
+
var aPossiblePrototype = function (argument) {
|
|
5390
|
+
if (typeof argument === 'object' || isCallable(argument)) return argument;
|
|
5391
|
+
throw TypeError("Can't set " + String(argument) + ' as a prototype');
|
|
5392
|
+
};
|
|
5393
|
+
|
|
5394
|
+
/* eslint-disable no-proto -- safe */
|
|
5395
|
+
|
|
5396
|
+
|
|
5397
|
+
|
|
5398
|
+
// `Object.setPrototypeOf` method
|
|
5399
|
+
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
5400
|
+
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
5401
|
+
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
5402
|
+
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
5403
|
+
var CORRECT_SETTER = false;
|
|
5404
|
+
var test = {};
|
|
5405
|
+
var setter;
|
|
5406
|
+
try {
|
|
5407
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
5408
|
+
setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;
|
|
5409
|
+
setter.call(test, []);
|
|
5410
|
+
CORRECT_SETTER = test instanceof Array;
|
|
5411
|
+
} catch (error) { /* empty */ }
|
|
5412
|
+
return function setPrototypeOf(O, proto) {
|
|
5413
|
+
anObject(O);
|
|
5414
|
+
aPossiblePrototype(proto);
|
|
5415
|
+
if (CORRECT_SETTER) setter.call(O, proto);
|
|
5416
|
+
else O.__proto__ = proto;
|
|
5417
|
+
return O;
|
|
5418
|
+
};
|
|
5419
|
+
}() : undefined);
|
|
5420
|
+
|
|
5421
|
+
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
5422
|
+
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
5423
|
+
var IteratorPrototype$2 = iteratorsCore.IteratorPrototype;
|
|
5424
|
+
var BUGGY_SAFARI_ITERATORS$1 = iteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
5425
|
+
var ITERATOR$1 = wellKnownSymbol('iterator');
|
|
5426
|
+
var KEYS = 'keys';
|
|
5427
|
+
var VALUES = 'values';
|
|
5428
|
+
var ENTRIES = 'entries';
|
|
5429
|
+
|
|
5430
|
+
var returnThis = function () { return this; };
|
|
5431
|
+
|
|
5432
|
+
var defineIterator = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
|
|
5433
|
+
createIteratorConstructor(IteratorConstructor, NAME, next);
|
|
5434
|
+
|
|
5435
|
+
var getIterationMethod = function (KIND) {
|
|
5436
|
+
if (KIND === DEFAULT && defaultIterator) return defaultIterator;
|
|
5437
|
+
if (!BUGGY_SAFARI_ITERATORS$1 && KIND in IterablePrototype) return IterablePrototype[KIND];
|
|
5438
|
+
switch (KIND) {
|
|
5439
|
+
case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
|
|
5440
|
+
case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
|
|
5441
|
+
case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
|
|
5442
|
+
} return function () { return new IteratorConstructor(this); };
|
|
5443
|
+
};
|
|
5444
|
+
|
|
5445
|
+
var TO_STRING_TAG = NAME + ' Iterator';
|
|
5446
|
+
var INCORRECT_VALUES_NAME = false;
|
|
5447
|
+
var IterablePrototype = Iterable.prototype;
|
|
5448
|
+
var nativeIterator = IterablePrototype[ITERATOR$1]
|
|
5449
|
+
|| IterablePrototype['@@iterator']
|
|
5450
|
+
|| DEFAULT && IterablePrototype[DEFAULT];
|
|
5451
|
+
var defaultIterator = !BUGGY_SAFARI_ITERATORS$1 && nativeIterator || getIterationMethod(DEFAULT);
|
|
5452
|
+
var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
|
|
5453
|
+
var CurrentIteratorPrototype, methods, KEY;
|
|
5454
|
+
|
|
5455
|
+
// fix native
|
|
5456
|
+
if (anyNativeIterator) {
|
|
5457
|
+
CurrentIteratorPrototype = objectGetPrototypeOf(anyNativeIterator.call(new Iterable()));
|
|
5458
|
+
if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
|
|
5459
|
+
if ( objectGetPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype$2) {
|
|
5460
|
+
if (objectSetPrototypeOf) {
|
|
5461
|
+
objectSetPrototypeOf(CurrentIteratorPrototype, IteratorPrototype$2);
|
|
5462
|
+
} else if (!isCallable(CurrentIteratorPrototype[ITERATOR$1])) {
|
|
5463
|
+
redefine(CurrentIteratorPrototype, ITERATOR$1, returnThis);
|
|
5464
|
+
}
|
|
5465
|
+
}
|
|
5466
|
+
// Set @@toStringTag to native iterators
|
|
5467
|
+
setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);
|
|
5468
|
+
}
|
|
5469
|
+
}
|
|
5470
|
+
|
|
5471
|
+
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
|
|
5472
|
+
if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
5473
|
+
if ( CONFIGURABLE_FUNCTION_NAME) {
|
|
5474
|
+
createNonEnumerableProperty(IterablePrototype, 'name', VALUES);
|
|
5475
|
+
} else {
|
|
5476
|
+
INCORRECT_VALUES_NAME = true;
|
|
5477
|
+
defaultIterator = function values() { return nativeIterator.call(this); };
|
|
5478
|
+
}
|
|
5479
|
+
}
|
|
5480
|
+
|
|
5481
|
+
// export additional methods
|
|
5482
|
+
if (DEFAULT) {
|
|
5483
|
+
methods = {
|
|
5484
|
+
values: getIterationMethod(VALUES),
|
|
5485
|
+
keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
|
|
5486
|
+
entries: getIterationMethod(ENTRIES)
|
|
5487
|
+
};
|
|
5488
|
+
if (FORCED) for (KEY in methods) {
|
|
5489
|
+
if (BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
5490
|
+
redefine(IterablePrototype, KEY, methods[KEY]);
|
|
5491
|
+
}
|
|
5492
|
+
} else _export({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME }, methods);
|
|
5493
|
+
}
|
|
5494
|
+
|
|
5495
|
+
// define iterator
|
|
5496
|
+
if ( IterablePrototype[ITERATOR$1] !== defaultIterator) {
|
|
5497
|
+
redefine(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
|
|
5498
|
+
}
|
|
5499
|
+
|
|
5500
|
+
return methods;
|
|
5501
|
+
};
|
|
5502
|
+
|
|
5503
|
+
var ARRAY_ITERATOR = 'Array Iterator';
|
|
5504
|
+
var setInternalState = internalState.set;
|
|
5505
|
+
var getInternalState = internalState.getterFor(ARRAY_ITERATOR);
|
|
5506
|
+
|
|
5507
|
+
// `Array.prototype.entries` method
|
|
5508
|
+
// https://tc39.es/ecma262/#sec-array.prototype.entries
|
|
5509
|
+
// `Array.prototype.keys` method
|
|
5510
|
+
// https://tc39.es/ecma262/#sec-array.prototype.keys
|
|
5511
|
+
// `Array.prototype.values` method
|
|
5512
|
+
// https://tc39.es/ecma262/#sec-array.prototype.values
|
|
5513
|
+
// `Array.prototype[@@iterator]` method
|
|
5514
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@iterator
|
|
5515
|
+
// `CreateArrayIterator` internal method
|
|
5516
|
+
// https://tc39.es/ecma262/#sec-createarrayiterator
|
|
5517
|
+
var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
|
|
5518
|
+
setInternalState(this, {
|
|
5519
|
+
type: ARRAY_ITERATOR,
|
|
5520
|
+
target: toIndexedObject(iterated), // target
|
|
5521
|
+
index: 0, // next index
|
|
5522
|
+
kind: kind // kind
|
|
5523
|
+
});
|
|
5524
|
+
// `%ArrayIteratorPrototype%.next` method
|
|
5525
|
+
// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
|
|
5526
|
+
}, function () {
|
|
5527
|
+
var state = getInternalState(this);
|
|
5528
|
+
var target = state.target;
|
|
5529
|
+
var kind = state.kind;
|
|
5530
|
+
var index = state.index++;
|
|
5531
|
+
if (!target || index >= target.length) {
|
|
5532
|
+
state.target = undefined;
|
|
5533
|
+
return { value: undefined, done: true };
|
|
5534
|
+
}
|
|
5535
|
+
if (kind == 'keys') return { value: index, done: false };
|
|
5536
|
+
if (kind == 'values') return { value: target[index], done: false };
|
|
5537
|
+
return { value: [index, target[index]], done: false };
|
|
5538
|
+
}, 'values');
|
|
5539
|
+
|
|
5540
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
5541
|
+
addToUnscopables('keys');
|
|
5542
|
+
addToUnscopables('values');
|
|
5543
|
+
addToUnscopables('entries');
|
|
5544
|
+
|
|
5545
|
+
var ITERATOR$2 = wellKnownSymbol('iterator');
|
|
5546
|
+
var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
|
|
5547
|
+
var ArrayValues = es_array_iterator.values;
|
|
5548
|
+
|
|
5549
|
+
var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
5550
|
+
if (CollectionPrototype) {
|
|
5551
|
+
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
5552
|
+
if (CollectionPrototype[ITERATOR$2] !== ArrayValues) try {
|
|
5553
|
+
createNonEnumerableProperty(CollectionPrototype, ITERATOR$2, ArrayValues);
|
|
5554
|
+
} catch (error) {
|
|
5555
|
+
CollectionPrototype[ITERATOR$2] = ArrayValues;
|
|
5556
|
+
}
|
|
5557
|
+
if (!CollectionPrototype[TO_STRING_TAG$1]) {
|
|
5558
|
+
createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG$1, COLLECTION_NAME);
|
|
5559
|
+
}
|
|
5560
|
+
if (domIterables[COLLECTION_NAME]) for (var METHOD_NAME in es_array_iterator) {
|
|
5561
|
+
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
5562
|
+
if (CollectionPrototype[METHOD_NAME] !== es_array_iterator[METHOD_NAME]) try {
|
|
5563
|
+
createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, es_array_iterator[METHOD_NAME]);
|
|
5564
|
+
} catch (error) {
|
|
5565
|
+
CollectionPrototype[METHOD_NAME] = es_array_iterator[METHOD_NAME];
|
|
5566
|
+
}
|
|
5567
|
+
}
|
|
5568
|
+
}
|
|
5569
|
+
};
|
|
5570
|
+
|
|
5571
|
+
for (var COLLECTION_NAME in domIterables) {
|
|
5572
|
+
handlePrototype(global_1[COLLECTION_NAME] && global_1[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
5573
|
+
}
|
|
5574
|
+
|
|
5575
|
+
handlePrototype(domTokenListPrototype, 'DOMTokenList');
|
|
5576
|
+
|
|
4457
5577
|
/*
|
|
4458
5578
|
themeContext: { name: "default", values: {JSON_THEME_VALUES_HERE} }
|
|
4459
5579
|
|
|
@@ -4515,7 +5635,7 @@ const createThemeValues = (themeContext, fallbackValues, componentName, variant)
|
|
|
4515
5635
|
const mergedPropValues = Object.entries(propValue).reduce((innerAcc, [variantName, defaultVariantValue]) => {
|
|
4516
5636
|
var _themeValues$componen, _themeValues$componen2, _themeValues$componen3;
|
|
4517
5637
|
|
|
4518
|
-
const variantValue = (_themeValues$componen = themeValues
|
|
5638
|
+
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;
|
|
4519
5639
|
return { ...innerAcc,
|
|
4520
5640
|
[variantName]: {
|
|
4521
5641
|
default: variantValue
|
|
@@ -4529,7 +5649,7 @@ const createThemeValues = (themeContext, fallbackValues, componentName, variant)
|
|
|
4529
5649
|
};
|
|
4530
5650
|
}
|
|
4531
5651
|
|
|
4532
|
-
const mergedSinglePropValue = (_themeValues$componen4 = themeValues
|
|
5652
|
+
const mergedSinglePropValue = (_themeValues$componen4 = themeValues == null ? void 0 : (_themeValues$componen5 = themeValues[componentName]) == null ? void 0 : _themeValues$componen5[propName]) != null ? _themeValues$componen4 : propValue;
|
|
4533
5653
|
return { ...acc,
|
|
4534
5654
|
[propName]: {
|
|
4535
5655
|
default: mergedSinglePropValue
|
|
@@ -4556,7 +5676,7 @@ const themeComponent = (component, componentThemeId, fallbackValues, defaultVari
|
|
|
4556
5676
|
var _themeContext$metadat;
|
|
4557
5677
|
|
|
4558
5678
|
const themeContext = useContext(ThemeContext);
|
|
4559
|
-
const metadata = (_themeContext$metadat = themeContext
|
|
5679
|
+
const metadata = (_themeContext$metadat = themeContext == null ? void 0 : themeContext.metadata) != null ? _themeContext$metadat : {};
|
|
4560
5680
|
const themeValues = themeContext ? createThemeValues(themeContext, fallbackValues, componentThemeId, variant) : fallbackValues;
|
|
4561
5681
|
return component({ ...props,
|
|
4562
5682
|
themeValues,
|
|
@@ -4814,12 +5934,6 @@ const TextSpan = styled.span.withConfig({
|
|
|
4814
5934
|
extraStyles
|
|
4815
5935
|
}) => extraStyles);
|
|
4816
5936
|
|
|
4817
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
4818
|
-
|
|
4819
|
-
function createCommonjsModule(fn, module) {
|
|
4820
|
-
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
4821
|
-
}
|
|
4822
|
-
|
|
4823
5937
|
var numeral = createCommonjsModule(function (module) {
|
|
4824
5938
|
/*! @preserve
|
|
4825
5939
|
* numeral.js
|
|
@@ -5979,7 +7093,7 @@ const BoxWrapper = styled(({
|
|
|
5979
7093
|
}) => padding, ({
|
|
5980
7094
|
borderSize,
|
|
5981
7095
|
borderColor
|
|
5982
|
-
}) =>
|
|
7096
|
+
}) => borderSize + " solid " + borderColor, ({
|
|
5983
7097
|
boxShadow
|
|
5984
7098
|
}) => boxShadow, ({
|
|
5985
7099
|
background
|
|
@@ -5987,7 +7101,7 @@ const BoxWrapper = styled(({
|
|
|
5987
7101
|
minHeight
|
|
5988
7102
|
}) => minHeight ? minHeight : "auto", ({
|
|
5989
7103
|
width
|
|
5990
|
-
}) => width && "width: "
|
|
7104
|
+
}) => width && "width: " + width + ";", ({
|
|
5991
7105
|
minWidth
|
|
5992
7106
|
}) => minWidth ? minWidth : "auto", ({
|
|
5993
7107
|
maxWidth
|
|
@@ -6005,15 +7119,15 @@ const BoxWrapper = styled(({
|
|
|
6005
7119
|
}) => textAlign, ({
|
|
6006
7120
|
hoverStyles,
|
|
6007
7121
|
as
|
|
6008
|
-
}) => css(["", " ", ""], hoverStyles, as === "button" ? "> * > span {\n "
|
|
7122
|
+
}) => css(["", " ", ""], hoverStyles, as === "button" ? "> * > span {\n " + hoverStyles + "\n border: none;\n outline: none;\n box-shadow: none;\n }" : ""), ({
|
|
6009
7123
|
as
|
|
6010
7124
|
}) => css(["outline:3px solid ", ";outline-offset:2px;", ""], ROYAL_BLUE, as === "button" && "\n > * > span {\n border: none;\n outline: none;\n box-shadow: none;\n }"), ({
|
|
6011
7125
|
activeStyles,
|
|
6012
7126
|
as
|
|
6013
|
-
}) => css(["", " ", ""], activeStyles, as === "button" ? " > * > span {\n "
|
|
7127
|
+
}) => css(["", " ", ""], activeStyles, as === "button" ? " > * > span {\n " + activeStyles + "\n border: none;\n outline: none;\n box-shadow: none;\n }" : ""), ({
|
|
6014
7128
|
disabledStyles,
|
|
6015
7129
|
as
|
|
6016
|
-
}) => css(["", " ", ""], disabledStyles, as === "button" ? " > * > span {\n "
|
|
7130
|
+
}) => css(["", " ", ""], disabledStyles, as === "button" ? " > * > span {\n " + disabledStyles + "\n border: none;\n outline: none;\n box-shadow: none;\n }" : ""), ({
|
|
6017
7131
|
color
|
|
6018
7132
|
}) => color, ({
|
|
6019
7133
|
hiddenStyles
|
|
@@ -6210,7 +7324,7 @@ const GridWrapper = styled.div.withConfig({
|
|
|
6210
7324
|
aboveMin,
|
|
6211
7325
|
minColWidth,
|
|
6212
7326
|
maxColWidth
|
|
6213
|
-
}) => aboveMin ? "repeat(auto-fill, minmax("
|
|
7327
|
+
}) => aboveMin ? "repeat(auto-fill, minmax(" + minColWidth + ", " + maxColWidth + "))" : "100%", ({
|
|
6214
7328
|
minColWidth
|
|
6215
7329
|
}) => minColWidth, ({
|
|
6216
7330
|
minColWidth
|
|
@@ -6237,8 +7351,8 @@ const Grid = ({
|
|
|
6237
7351
|
ref: ref,
|
|
6238
7352
|
columnGap: columnGap,
|
|
6239
7353
|
aboveMin: aboveMin,
|
|
6240
|
-
minColWidth: typeof minColWidth === "number" ?
|
|
6241
|
-
maxColWidth: typeof maxColWidth === "number" ?
|
|
7354
|
+
minColWidth: typeof minColWidth === "number" ? minColWidth + "rem" : minColWidth,
|
|
7355
|
+
maxColWidth: typeof maxColWidth === "number" ? maxColWidth + "rem" : maxColWidth
|
|
6242
7356
|
}, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment, null)));
|
|
6243
7357
|
};
|
|
6244
7358
|
|
|
@@ -6265,13 +7379,13 @@ const SidebarInnerWrapper = styled( // eslint-disable-next-line no-unused-vars
|
|
|
6265
7379
|
childGap
|
|
6266
7380
|
}) => childGap, ({
|
|
6267
7381
|
width
|
|
6268
|
-
}) => width ? "flex-basis: "
|
|
7382
|
+
}) => width ? "flex-basis: " + width : "", ({
|
|
6269
7383
|
minHeight
|
|
6270
7384
|
}) => minHeight ? "margin-top: 0; margin-bottom: 0;" : "", ({
|
|
6271
7385
|
$sidebarOnRight,
|
|
6272
7386
|
contentMinWidth,
|
|
6273
7387
|
childGap
|
|
6274
|
-
}) => $sidebarOnRight ? "> :first-child {\n flex-basis: 0;\n flex-grow: 999;\n min-width: calc("
|
|
7388
|
+
}) => $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 }", ({
|
|
6275
7389
|
fullHeight
|
|
6276
7390
|
}) => fullHeight ? "min-height: 100%;" : "");
|
|
6277
7391
|
|
|
@@ -6321,10 +7435,10 @@ const StackWrapper = styled.div.withConfig({
|
|
|
6321
7435
|
}) => fullHeight ? "100%" : "auto", ({
|
|
6322
7436
|
direction,
|
|
6323
7437
|
childGap
|
|
6324
|
-
}) => direction === "row" ? "margin-left: "
|
|
7438
|
+
}) => direction === "row" ? "margin-left: " + childGap + ";" : "margin-top: " + childGap + ";", ({
|
|
6325
7439
|
bottomItem,
|
|
6326
7440
|
direction
|
|
6327
|
-
}) => bottomItem ? "\n > :nth-child("
|
|
7441
|
+
}) => bottomItem ? "\n > :nth-child(" + bottomItem + ") {\n " + (direction === "row" ? "margin-left: auto;" : "margin-top: auto;") + "\n }\n " : "");
|
|
6328
7442
|
|
|
6329
7443
|
/*
|
|
6330
7444
|
Component to impose margin-top between a list of child elements
|
|
@@ -6414,7 +7528,7 @@ const FrameOuterContainer = styled.div.withConfig({
|
|
|
6414
7528
|
})(["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;}"], ({
|
|
6415
7529
|
numerator,
|
|
6416
7530
|
denominator
|
|
6417
|
-
}) => "calc(("
|
|
7531
|
+
}) => "calc((" + numerator + " / " + denominator + ") * 100%)");
|
|
6418
7532
|
|
|
6419
7533
|
/*
|
|
6420
7534
|
The Frame component is used for cropping content to a specific aspect ratio.
|
|
@@ -6450,22 +7564,22 @@ const SwitcherInnerContainer = styled.div.withConfig({
|
|
|
6450
7564
|
padding
|
|
6451
7565
|
}) => padding, ({
|
|
6452
7566
|
childGap
|
|
6453
|
-
}) => "calc(("
|
|
7567
|
+
}) => "calc((" + childGap + " / 2) * -1)", ({
|
|
6454
7568
|
constrainMobile
|
|
6455
7569
|
}) => constrainMobile && "max-width: 100%; margin-left: 0; margin-right: 0;", ({
|
|
6456
7570
|
maxChildrenOnly,
|
|
6457
7571
|
breakpoint,
|
|
6458
7572
|
childGap
|
|
6459
|
-
}) => !maxChildrenOnly ? "flex-basis: calc(("
|
|
7573
|
+
}) => !maxChildrenOnly ? "flex-basis: calc((" + breakpoint + " - (100% - " + childGap + ")) * 999);" : "", ({
|
|
6460
7574
|
childGap
|
|
6461
|
-
}) => "margin: calc("
|
|
7575
|
+
}) => "margin: calc(" + childGap + " / 2);", ({
|
|
6462
7576
|
constrainMobile
|
|
6463
7577
|
}) => constrainMobile && "margin-left: 0; margin-right: 0;", ({
|
|
6464
7578
|
largeChild,
|
|
6465
7579
|
largeChildSize
|
|
6466
|
-
}) => largeChild && largeChildSize ? "> :nth-child("
|
|
7580
|
+
}) => largeChild && largeChildSize ? "> :nth-child(" + largeChild + ") {\n flex-grow: " + largeChildSize + ";\n }" : "", ({
|
|
6467
7581
|
maxChildren
|
|
6468
|
-
}) => maxChildren ? "> :nth-last-child("
|
|
7582
|
+
}) => maxChildren ? "> :nth-last-child(" + (maxChildren + 1) + "), > :nth-last-child(" + (maxChildren + 1) + ") ~ * {\n flex-basis: 100%;\n }" : "", ({
|
|
6469
7583
|
extraStyles
|
|
6470
7584
|
}) => css(["", ""], extraStyles));
|
|
6471
7585
|
|
|
@@ -6542,7 +7656,7 @@ const ImposterWrapper = styled.div.withConfig({
|
|
|
6542
7656
|
breakout,
|
|
6543
7657
|
verticalMargin,
|
|
6544
7658
|
horizontalMargin
|
|
6545
|
-
}) => breakout ? "" : "\n overflow: auto;\n max-width: calc(100% - ("
|
|
7659
|
+
}) => breakout ? "" : "\n overflow: auto;\n max-width: calc(100% - (" + horizontalMargin + " * 2));\n max-height: calc(100% - (" + verticalMargin + " * 2));\n ", ({
|
|
6546
7660
|
extraStyles
|
|
6547
7661
|
}) => extraStyles);
|
|
6548
7662
|
|
|
@@ -12128,8 +13242,8 @@ const ButtonWithAction = ({
|
|
|
12128
13242
|
const {
|
|
12129
13243
|
isMobile
|
|
12130
13244
|
} = themeContext;
|
|
12131
|
-
const hoverStyles = "\n outline: none;\n background-color: "
|
|
12132
|
-
const activeStyles = "\n outline: none;\n background-color: "
|
|
13245
|
+
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 ";
|
|
13246
|
+
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 ";
|
|
12133
13247
|
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 ";
|
|
12134
13248
|
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
12135
13249
|
variant: variant,
|
|
@@ -12145,7 +13259,7 @@ const ButtonWithAction = ({
|
|
|
12145
13259
|
onClick: isLoading ? undefined : action,
|
|
12146
13260
|
borderRadius: "2px",
|
|
12147
13261
|
theme: themeContext,
|
|
12148
|
-
extraStyles: "margin: 0.5rem; "
|
|
13262
|
+
extraStyles: "margin: 0.5rem; " + extraStyles,
|
|
12149
13263
|
dataQa: dataQa,
|
|
12150
13264
|
tabIndex: tabIndex
|
|
12151
13265
|
}, rest), contentOverride ? children : /*#__PURE__*/React.createElement(Center, {
|
|
@@ -12161,24 +13275,24 @@ const ButtonWithAction = ({
|
|
|
12161
13275
|
};
|
|
12162
13276
|
|
|
12163
13277
|
const primaryColor = {
|
|
12164
|
-
info: ""
|
|
12165
|
-
success: ""
|
|
12166
|
-
error: ""
|
|
13278
|
+
info: "" + WHITE,
|
|
13279
|
+
success: "" + WHITE,
|
|
13280
|
+
error: "" + WHITE
|
|
12167
13281
|
};
|
|
12168
13282
|
const accentColor = {
|
|
12169
|
-
info: ""
|
|
12170
|
-
success: ""
|
|
12171
|
-
error: ""
|
|
13283
|
+
info: "" + BRIGHT_GREY,
|
|
13284
|
+
success: "" + BRIGHT_GREY,
|
|
13285
|
+
error: "" + BRIGHT_GREY
|
|
12172
13286
|
};
|
|
12173
13287
|
const subIconColor = {
|
|
12174
|
-
info: ""
|
|
12175
|
-
success: ""
|
|
12176
|
-
error: ""
|
|
13288
|
+
info: "" + MATISSE_BLUE,
|
|
13289
|
+
success: "" + SEA_GREEN,
|
|
13290
|
+
error: "" + BLUSH_RED
|
|
12177
13291
|
};
|
|
12178
13292
|
const singleIconColor = {
|
|
12179
|
-
primary: ""
|
|
12180
|
-
secondary: ""
|
|
12181
|
-
darkMode: ""
|
|
13293
|
+
primary: "" + MATISSE_BLUE,
|
|
13294
|
+
secondary: "" + BRIGHT_GREY,
|
|
13295
|
+
darkMode: "" + WHITE
|
|
12182
13296
|
};
|
|
12183
13297
|
const fallbackValues$2 = {
|
|
12184
13298
|
primaryColor,
|
|
@@ -12677,16 +13791,16 @@ const ChevronIcon = ({
|
|
|
12677
13791
|
}, /*#__PURE__*/React.createElement("mask", {
|
|
12678
13792
|
id: "icon-chevron-mask-2"
|
|
12679
13793
|
}, /*#__PURE__*/React.createElement("use", {
|
|
12680
|
-
fill: iconFill
|
|
13794
|
+
fill: iconFill != null ? iconFill : themeValues.singleIconColor,
|
|
12681
13795
|
xlinkHref: "#icon-chevron-path-1"
|
|
12682
13796
|
})), /*#__PURE__*/React.createElement("use", {
|
|
12683
|
-
fill: iconFill
|
|
13797
|
+
fill: iconFill != null ? iconFill : themeValues.singleIconColor,
|
|
12684
13798
|
id: "icon-chevron-Fill-2",
|
|
12685
13799
|
xlinkHref: "#icon-chevron-path-1"
|
|
12686
13800
|
}), /*#__PURE__*/React.createElement("g", {
|
|
12687
13801
|
id: "Colors/Blue-Dark",
|
|
12688
13802
|
mask: "url(#icon-chevron-mask-2)",
|
|
12689
|
-
fill: iconFill
|
|
13803
|
+
fill: iconFill != null ? iconFill : themeValues.singleIconColor
|
|
12690
13804
|
}, /*#__PURE__*/React.createElement("rect", {
|
|
12691
13805
|
id: "icon-chevron-rect",
|
|
12692
13806
|
width: "24",
|
|
@@ -14867,9 +15981,9 @@ const AddObligation = ({
|
|
|
14867
15981
|
extraStyles,
|
|
14868
15982
|
textExtraStyles
|
|
14869
15983
|
}) => {
|
|
14870
|
-
const hoverStyles = "\n &:hover {\n .fill { fill: "
|
|
14871
|
-
const activeStyles = "\n &:active {\n .fill { fill: "
|
|
14872
|
-
const defaultStyles = "\n min-height: 0;\n .fill { fill: "
|
|
15984
|
+
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 }";
|
|
15985
|
+
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 }";
|
|
15986
|
+
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 ";
|
|
14873
15987
|
return /*#__PURE__*/React.createElement(Box, {
|
|
14874
15988
|
className: "button",
|
|
14875
15989
|
padding: "0",
|
|
@@ -14891,8 +16005,8 @@ const AddObligation = ({
|
|
|
14891
16005
|
action: action,
|
|
14892
16006
|
text: text,
|
|
14893
16007
|
variant: "smallGhost",
|
|
14894
|
-
extraStyles: "min-height: 0; "
|
|
14895
|
-
textExtraStyles: "padding: 0 0 0 0.75rem; font-size: 0.875rem; font-weight "
|
|
16008
|
+
extraStyles: "min-height: 0; " + extraStyles,
|
|
16009
|
+
textExtraStyles: "padding: 0 0 0 0.75rem; font-size: 0.875rem; font-weight " + FONT_WEIGHT_SEMIBOLD + "; " + textExtraStyles,
|
|
14896
16010
|
tabIndex: "-1"
|
|
14897
16011
|
})))));
|
|
14898
16012
|
};
|
|
@@ -15222,40 +16336,40 @@ const AlertIcons = {
|
|
|
15222
16336
|
};
|
|
15223
16337
|
|
|
15224
16338
|
const background = {
|
|
15225
|
-
info: ""
|
|
15226
|
-
warn: ""
|
|
15227
|
-
error: ""
|
|
15228
|
-
success: ""
|
|
16339
|
+
info: "" + INFO_BLUE,
|
|
16340
|
+
warn: "" + APRICOT_ORANGE,
|
|
16341
|
+
error: "" + BLUSH_RED,
|
|
16342
|
+
success: "" + HINT_GREEN
|
|
15229
16343
|
};
|
|
15230
16344
|
const border$1 = {
|
|
15231
|
-
info: ""
|
|
15232
|
-
warn: ""
|
|
15233
|
-
error: ""
|
|
15234
|
-
success: ""
|
|
16345
|
+
info: "" + MATISSE_BLUE,
|
|
16346
|
+
warn: "" + ZEST_ORANGE,
|
|
16347
|
+
error: "" + RAZZMATAZZ_RED,
|
|
16348
|
+
success: "" + EMERALD_GREEN
|
|
15235
16349
|
};
|
|
15236
16350
|
const iconBackground = {
|
|
15237
|
-
info: ""
|
|
15238
|
-
warn: ""
|
|
15239
|
-
error: ""
|
|
15240
|
-
success: ""
|
|
16351
|
+
info: "" + ONAHAU_BLUE,
|
|
16352
|
+
warn: "" + MUSTARD_YELLOW,
|
|
16353
|
+
error: "" + COSMOS_RED,
|
|
16354
|
+
success: "" + ICE_GREEN
|
|
15241
16355
|
};
|
|
15242
16356
|
const iconFill = {
|
|
15243
|
-
info: ""
|
|
15244
|
-
warn: ""
|
|
15245
|
-
error: ""
|
|
15246
|
-
success: ""
|
|
16357
|
+
info: "" + CONGRESS_BLUE,
|
|
16358
|
+
warn: "" + CARROT_ORANGE,
|
|
16359
|
+
error: "" + THUNDERBIRD_RED,
|
|
16360
|
+
success: "" + HAZE_GREEN
|
|
15247
16361
|
};
|
|
15248
16362
|
const text = {
|
|
15249
|
-
info: ""
|
|
15250
|
-
warn: ""
|
|
15251
|
-
error: ""
|
|
15252
|
-
success: ""
|
|
16363
|
+
info: "" + ZODIAC_BLUE,
|
|
16364
|
+
warn: "" + ZODIAC_BLUE,
|
|
16365
|
+
error: "" + ZODIAC_BLUE,
|
|
16366
|
+
success: "" + ZODIAC_BLUE
|
|
15253
16367
|
};
|
|
15254
16368
|
const link = {
|
|
15255
|
-
info: ""
|
|
15256
|
-
warn: ""
|
|
15257
|
-
error: ""
|
|
15258
|
-
success: ""
|
|
16369
|
+
info: "" + SCIENCE_BLUE,
|
|
16370
|
+
warn: "" + SCIENCE_BLUE,
|
|
16371
|
+
error: "" + SCIENCE_BLUE,
|
|
16372
|
+
success: "" + SCIENCE_BLUE
|
|
15259
16373
|
};
|
|
15260
16374
|
const fallbackValues$4 = {
|
|
15261
16375
|
background,
|
|
@@ -15301,7 +16415,7 @@ const Alert = ({
|
|
|
15301
16415
|
width: "24px",
|
|
15302
16416
|
childGap: "0rem"
|
|
15303
16417
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
15304
|
-
padding: maxContentWidth ?
|
|
16418
|
+
padding: maxContentWidth ? padding + " 1rem" : "1rem"
|
|
15305
16419
|
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
15306
16420
|
justify: "flex-start",
|
|
15307
16421
|
align: "center"
|
|
@@ -16265,14 +17379,14 @@ const BoxWithShadow = ({
|
|
|
16265
17379
|
...props
|
|
16266
17380
|
}) => {
|
|
16267
17381
|
const shadowRegistry = {
|
|
16268
|
-
baseStandard: "0px 3px 7px 2px "
|
|
16269
|
-
baseHover: "0px 1px 7px 0px "
|
|
16270
|
-
baseClick: "0px 4px 7px 0px "
|
|
16271
|
-
insetStandard: "0px 1px 4px 2px "
|
|
16272
|
-
insetHover: "0px 1px 4px 0px "
|
|
16273
|
-
insetClick: "0px 4px 4px 0px "
|
|
16274
|
-
linkShadowFocus: "0px 0px 5px 2px "
|
|
16275
|
-
overlayShadow: "0px 1px 8px -1px "
|
|
17382
|
+
baseStandard: "0px 3px 7px 2px " + rgba$1(BLACK, 0.1) + ", 0px 1px 2px 1px " + rgba$1(BLACK, 0.1) + ";",
|
|
17383
|
+
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) + ";",
|
|
17384
|
+
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) + ";",
|
|
17385
|
+
insetStandard: "0px 1px 4px 2px " + rgba$1(BLACK, 0.1) + ", 0px 2px 1px 0px " + rgba$1(BLACK, 0.15) + ";",
|
|
17386
|
+
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) + ";",
|
|
17387
|
+
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) + ";",
|
|
17388
|
+
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) + ";",
|
|
17389
|
+
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) + ";"
|
|
16276
17390
|
};
|
|
16277
17391
|
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
16278
17392
|
boxShadow: shadowRegistry[variant]
|
|
@@ -16287,9 +17401,9 @@ var BoxWithShadow$1 = themeComponent(BoxWithShadow, "BoxWithShadow", fallbackVal
|
|
|
16287
17401
|
for colors/values that should be used here instead
|
|
16288
17402
|
*/
|
|
16289
17403
|
|
|
16290
|
-
const color$4 = ""
|
|
16291
|
-
const activeColor$2 = ""
|
|
16292
|
-
const activeBreadcrumbColor = ""
|
|
17404
|
+
const color$4 = "" + MATISSE_BLUE;
|
|
17405
|
+
const activeColor$2 = "" + STORM_GREY;
|
|
17406
|
+
const activeBreadcrumbColor = "" + STORM_GREY;
|
|
16293
17407
|
const fontSize$3 = "0.875rem";
|
|
16294
17408
|
const lineHeight$1 = "1.25rem";
|
|
16295
17409
|
const fontWeight$1 = "400";
|
|
@@ -16471,7 +17585,7 @@ const Breadcrumbs = ({
|
|
|
16471
17585
|
linkDestination,
|
|
16472
17586
|
isActive
|
|
16473
17587
|
}, index) => /*#__PURE__*/React.createElement(Fragment, {
|
|
16474
|
-
key: "breadcrumb-"
|
|
17588
|
+
key: "breadcrumb-" + linkText
|
|
16475
17589
|
}, /*#__PURE__*/React.createElement(InternalLink, {
|
|
16476
17590
|
"aria-current": index === breadcrumbsList.length - 1 ? "location" : "",
|
|
16477
17591
|
to: linkDestination,
|
|
@@ -16481,7 +17595,7 @@ const Breadcrumbs = ({
|
|
|
16481
17595
|
lineheight: themeValues.lineHeight,
|
|
16482
17596
|
fontWeight: themeValues.fontWeight,
|
|
16483
17597
|
margin: themeValues.margin,
|
|
16484
|
-
extraStyles: "\n text-transform: uppercase;\n "
|
|
17598
|
+
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 }"
|
|
16485
17599
|
}, linkText), index < breadcrumbsList.length - 1 ? /*#__PURE__*/React.createElement(IconChevron, null) : /*#__PURE__*/React.createElement(Fragment, null)))));
|
|
16486
17600
|
};
|
|
16487
17601
|
|
|
@@ -17014,13 +18128,13 @@ function _has(prop, obj) {
|
|
|
17014
18128
|
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
17015
18129
|
}
|
|
17016
18130
|
|
|
17017
|
-
var toString = Object.prototype.toString;
|
|
18131
|
+
var toString$1 = Object.prototype.toString;
|
|
17018
18132
|
|
|
17019
18133
|
var _isArguments =
|
|
17020
18134
|
/*#__PURE__*/
|
|
17021
18135
|
function () {
|
|
17022
|
-
return toString.call(arguments) === '[object Arguments]' ? function _isArguments(x) {
|
|
17023
|
-
return toString.call(x) === '[object Arguments]';
|
|
18136
|
+
return toString$1.call(arguments) === '[object Arguments]' ? function _isArguments(x) {
|
|
18137
|
+
return toString$1.call(x) === '[object Arguments]';
|
|
17024
18138
|
} : function _isArguments(x) {
|
|
17025
18139
|
return _has('callee', x);
|
|
17026
18140
|
};
|
|
@@ -17073,7 +18187,7 @@ var contains = function contains(list, item) {
|
|
|
17073
18187
|
*/
|
|
17074
18188
|
|
|
17075
18189
|
|
|
17076
|
-
var keys = typeof Object.keys === 'function' && !hasArgsEnumBug ?
|
|
18190
|
+
var keys$1 = typeof Object.keys === 'function' && !hasArgsEnumBug ?
|
|
17077
18191
|
/*#__PURE__*/
|
|
17078
18192
|
_curry1(function keys(obj) {
|
|
17079
18193
|
return Object(obj) !== obj ? [] : Object.keys(obj);
|
|
@@ -17498,9 +18612,9 @@ function _equals(a, b, stackA, stackB) {
|
|
|
17498
18612
|
return false;
|
|
17499
18613
|
}
|
|
17500
18614
|
|
|
17501
|
-
var keysA = keys(a);
|
|
18615
|
+
var keysA = keys$1(a);
|
|
17502
18616
|
|
|
17503
|
-
if (keysA.length !== keys(b).length) {
|
|
18617
|
+
if (keysA.length !== keys$1(b).length) {
|
|
17504
18618
|
return false;
|
|
17505
18619
|
}
|
|
17506
18620
|
|
|
@@ -17732,7 +18846,7 @@ _dispatchable(['filter'], _xfilter, function (pred, filterable) {
|
|
|
17732
18846
|
}
|
|
17733
18847
|
|
|
17734
18848
|
return acc;
|
|
17735
|
-
}, {}, keys(filterable)) : // else
|
|
18849
|
+
}, {}, keys$1(filterable)) : // else
|
|
17736
18850
|
_filter(pred, filterable);
|
|
17737
18851
|
}));
|
|
17738
18852
|
|
|
@@ -17787,7 +18901,7 @@ function _toString(x, seen) {
|
|
|
17787
18901
|
case '[object Array]':
|
|
17788
18902
|
return '[' + _map(recur, x).concat(mapPairs(x, reject(function (k) {
|
|
17789
18903
|
return /^\d+$/.test(k);
|
|
17790
|
-
}, keys(x)))).join(', ') + ']';
|
|
18904
|
+
}, keys$1(x)))).join(', ') + ']';
|
|
17791
18905
|
|
|
17792
18906
|
case '[object Boolean]':
|
|
17793
18907
|
return typeof x === 'object' ? 'new Boolean(' + recur(x.valueOf()) + ')' : x.toString();
|
|
@@ -17816,7 +18930,7 @@ function _toString(x, seen) {
|
|
|
17816
18930
|
}
|
|
17817
18931
|
}
|
|
17818
18932
|
|
|
17819
|
-
return '{' + mapPairs(x, keys(x)).join(', ') + '}';
|
|
18933
|
+
return '{' + mapPairs(x, keys$1(x)).join(', ') + '}';
|
|
17820
18934
|
}
|
|
17821
18935
|
}
|
|
17822
18936
|
|
|
@@ -17857,7 +18971,7 @@ function _toString(x, seen) {
|
|
|
17857
18971
|
* R.toString(new Date('2001-02-03T04:05:06Z')); //=> 'new Date("2001-02-03T04:05:06.000Z")'
|
|
17858
18972
|
*/
|
|
17859
18973
|
|
|
17860
|
-
var toString$
|
|
18974
|
+
var toString$2 =
|
|
17861
18975
|
/*#__PURE__*/
|
|
17862
18976
|
_curry1(function toString(val) {
|
|
17863
18977
|
return _toString(val, []);
|
|
@@ -18054,7 +19168,7 @@ var test =
|
|
|
18054
19168
|
/*#__PURE__*/
|
|
18055
19169
|
_curry2(function test(pattern, str) {
|
|
18056
19170
|
if (!_isRegExp(pattern)) {
|
|
18057
|
-
throw new TypeError('‘test’ requires a value of type RegExp as its first argument; received ' + toString$
|
|
19171
|
+
throw new TypeError('‘test’ requires a value of type RegExp as its first argument; received ' + toString$2(pattern));
|
|
18058
19172
|
}
|
|
18059
19173
|
|
|
18060
19174
|
return _cloneRegExp(pattern).test(str);
|
|
@@ -18098,7 +19212,7 @@ const ButtonWithLink = ({
|
|
|
18098
19212
|
url: url,
|
|
18099
19213
|
disabled: disabled,
|
|
18100
19214
|
newTab: newTab,
|
|
18101
|
-
extraStyles:
|
|
19215
|
+
extraStyles: linkExtraStyles + " text-decoration: none; &:hover {\n text-decoration: none; }"
|
|
18102
19216
|
}, /*#__PURE__*/React.createElement(ButtonWithAction, _extends({}, otherProps, {
|
|
18103
19217
|
extraStyles: extraStyles
|
|
18104
19218
|
})));
|
|
@@ -18343,7 +19457,7 @@ const cardRegistry = {
|
|
|
18343
19457
|
};
|
|
18344
19458
|
|
|
18345
19459
|
const backgroundColor$2 = {
|
|
18346
|
-
default: ""
|
|
19460
|
+
default: "" + TRANSPARENT
|
|
18347
19461
|
};
|
|
18348
19462
|
const textFontSize = {
|
|
18349
19463
|
default: "1.1rem"
|
|
@@ -18355,31 +19469,31 @@ const textLineHeight = {
|
|
|
18355
19469
|
default: "2rem"
|
|
18356
19470
|
};
|
|
18357
19471
|
const textColor = {
|
|
18358
|
-
default: ""
|
|
19472
|
+
default: "" + CHARADE_GREY
|
|
18359
19473
|
};
|
|
18360
19474
|
const disabledCheckColor = {
|
|
18361
|
-
default:
|
|
19475
|
+
default: WHITE + ";"
|
|
18362
19476
|
};
|
|
18363
19477
|
const checkColor = {
|
|
18364
|
-
default:
|
|
19478
|
+
default: WHITE + ";"
|
|
18365
19479
|
};
|
|
18366
19480
|
const errorStyles = {
|
|
18367
|
-
default: "border: 1px solid "
|
|
19481
|
+
default: "border: 1px solid " + RED + ";"
|
|
18368
19482
|
};
|
|
18369
19483
|
const focusedStyles = {
|
|
18370
|
-
default: "box-shadow: 0 0 5px 0 "
|
|
19484
|
+
default: "box-shadow: 0 0 5px 0 " + MATISSE_BLUE + ";"
|
|
18371
19485
|
};
|
|
18372
19486
|
const disabledCheckedStyles = {
|
|
18373
19487
|
default: "\n background: #6d717e;\n border: 1px solid #6d717e;\n"
|
|
18374
19488
|
};
|
|
18375
19489
|
const disabledStyles = {
|
|
18376
|
-
default: "\n background: "
|
|
19490
|
+
default: "\n background: " + SEASHELL_WHITE + ";\n border: 1px solid " + GHOST_GREY + ";\n"
|
|
18377
19491
|
};
|
|
18378
19492
|
const checkedStyles = {
|
|
18379
|
-
default: "\n background: "
|
|
19493
|
+
default: "\n background: " + MATISSE_BLUE + "; \n border: 1px solid " + MATISSE_BLUE + ";\n"
|
|
18380
19494
|
};
|
|
18381
19495
|
const defaultStyles = {
|
|
18382
|
-
default: "\n background: "
|
|
19496
|
+
default: "\n background: " + WHITE + "; \n border: 1px solid " + GHOST_GREY + ";\n"
|
|
18383
19497
|
};
|
|
18384
19498
|
const fallbackValues$c = {
|
|
18385
19499
|
backgroundColor: backgroundColor$2,
|
|
@@ -18452,7 +19566,7 @@ const Checkbox = ({
|
|
|
18452
19566
|
const [focused, setFocused] = useState(false);
|
|
18453
19567
|
|
|
18454
19568
|
const handleClick = (e, func) => {
|
|
18455
|
-
if ((e
|
|
19569
|
+
if ((e == null ? void 0 : e.keyCode) === 13) {
|
|
18456
19570
|
func();
|
|
18457
19571
|
}
|
|
18458
19572
|
};
|
|
@@ -18465,11 +19579,11 @@ const Checkbox = ({
|
|
|
18465
19579
|
onKeyDown: e => handleClick(e, onChange),
|
|
18466
19580
|
hiddenStyles: hidden,
|
|
18467
19581
|
background: themeValues.backgroundColor,
|
|
18468
|
-
extraStyles: "outline: none; "
|
|
19582
|
+
extraStyles: "outline: none; " + extraStyles
|
|
18469
19583
|
}, /*#__PURE__*/React.createElement(CheckboxLabelContainer, null, /*#__PURE__*/React.createElement(CheckboxContainer, {
|
|
18470
19584
|
"data-qa": "Checkbox"
|
|
18471
19585
|
}, /*#__PURE__*/React.createElement(HiddenCheckbox, {
|
|
18472
|
-
id: "checkbox-"
|
|
19586
|
+
id: "checkbox-" + name,
|
|
18473
19587
|
disabled: disabled,
|
|
18474
19588
|
name: name,
|
|
18475
19589
|
"aria-label": name,
|
|
@@ -18498,35 +19612,35 @@ const Checkbox = ({
|
|
|
18498
19612
|
variant: "p",
|
|
18499
19613
|
weight: themeValues.textFontWeight,
|
|
18500
19614
|
color: themeValues.textColor,
|
|
18501
|
-
extraStyles: textExtraStyles ?
|
|
19615
|
+
extraStyles: textExtraStyles ? textExtraStyles + " " + (disabled && "color: #6e727e; background-color: #f7f7f7;") + " " : "margin-left: 1rem " + (disabled && "color: #6e727e; background-color: #f7f7f7;")
|
|
18502
19616
|
}, title)));
|
|
18503
19617
|
};
|
|
18504
19618
|
|
|
18505
19619
|
var Checkbox$1 = themeComponent(Checkbox, "Checkbox", fallbackValues$c, "default");
|
|
18506
19620
|
|
|
18507
19621
|
const listBackgroundColor = {
|
|
18508
|
-
default: ""
|
|
18509
|
-
disabled: ""
|
|
19622
|
+
default: "" + ATHENS_GREY,
|
|
19623
|
+
disabled: "" + WHITE
|
|
18510
19624
|
};
|
|
18511
19625
|
const listItemColor = {
|
|
18512
|
-
default: ""
|
|
18513
|
-
disabled: ""
|
|
19626
|
+
default: "" + MINESHAFT_GREY,
|
|
19627
|
+
disabled: "" + STORM_GREY
|
|
18514
19628
|
};
|
|
18515
19629
|
const listItemBackgroundColor = {
|
|
18516
|
-
default: ""
|
|
18517
|
-
disabled: ""
|
|
19630
|
+
default: "" + WHITE,
|
|
19631
|
+
disabled: "" + ATHENS_GREY
|
|
18518
19632
|
};
|
|
18519
19633
|
const listItemBorderColor = {
|
|
18520
|
-
default: ""
|
|
18521
|
-
disabled: ""
|
|
19634
|
+
default: "" + GHOST_GREY,
|
|
19635
|
+
disabled: "" + GHOST_GREY
|
|
18522
19636
|
};
|
|
18523
19637
|
const radioButtonActive = {
|
|
18524
|
-
default: ""
|
|
18525
|
-
disabled: ""
|
|
19638
|
+
default: "" + BOSTON_BLUE,
|
|
19639
|
+
disabled: "" + GHOST_GREY
|
|
18526
19640
|
};
|
|
18527
19641
|
const radioButtonInactive = {
|
|
18528
|
-
default: ""
|
|
18529
|
-
disabled: ""
|
|
19642
|
+
default: "" + GHOST_GREY,
|
|
19643
|
+
disabled: "" + GHOST_GREY
|
|
18530
19644
|
};
|
|
18531
19645
|
const fallbackValues$d = {
|
|
18532
19646
|
listBackgroundColor,
|
|
@@ -18620,11 +19734,11 @@ const CheckboxListItem = ({
|
|
|
18620
19734
|
justify: "flex-start",
|
|
18621
19735
|
align: "center"
|
|
18622
19736
|
}, /*#__PURE__*/React.createElement(HiddenCheckboxInput, {
|
|
18623
|
-
id: "checkbox-"
|
|
19737
|
+
id: "checkbox-" + name + "-" + index
|
|
18624
19738
|
}), /*#__PURE__*/React.createElement(CheckboxLabel, {
|
|
18625
19739
|
name: name,
|
|
18626
19740
|
"aria-label": name,
|
|
18627
|
-
htmlFor: "checkbox-"
|
|
19741
|
+
htmlFor: "checkbox-" + name + "-" + index,
|
|
18628
19742
|
onClick: disabled ? noop : onSelect,
|
|
18629
19743
|
onKeyDown: disabled ? noop : onSelect,
|
|
18630
19744
|
tabIndex: 0
|
|
@@ -18674,7 +19788,7 @@ const CheckboxList = ({
|
|
|
18674
19788
|
color: themeValues.listItemColor,
|
|
18675
19789
|
background: themeValues.listItemBackgroundColor,
|
|
18676
19790
|
borderColor: themeValues.listItemBorderColor,
|
|
18677
|
-
key: "checkbox-item-"
|
|
19791
|
+
key: "checkbox-item-" + item.name,
|
|
18678
19792
|
text: item.text,
|
|
18679
19793
|
render: item.render,
|
|
18680
19794
|
isSelected: item.name === selectedName,
|
|
@@ -18690,6 +19804,484 @@ const CheckboxList = ({
|
|
|
18690
19804
|
|
|
18691
19805
|
var CheckboxList$1 = themeComponent(CheckboxList, "CheckboxList", fallbackValues$d, "default");
|
|
18692
19806
|
|
|
19807
|
+
var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
|
|
19808
|
+
var test$1 = {};
|
|
19809
|
+
|
|
19810
|
+
test$1[TO_STRING_TAG$2] = 'z';
|
|
19811
|
+
|
|
19812
|
+
var toStringTagSupport = String(test$1) === '[object z]';
|
|
19813
|
+
|
|
19814
|
+
var TO_STRING_TAG$3 = wellKnownSymbol('toStringTag');
|
|
19815
|
+
// ES3 wrong here
|
|
19816
|
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
19817
|
+
|
|
19818
|
+
// fallback for IE11 Script Access Denied error
|
|
19819
|
+
var tryGet = function (it, key) {
|
|
19820
|
+
try {
|
|
19821
|
+
return it[key];
|
|
19822
|
+
} catch (error) { /* empty */ }
|
|
19823
|
+
};
|
|
19824
|
+
|
|
19825
|
+
// getting tag from ES6+ `Object.prototype.toString`
|
|
19826
|
+
var classof = toStringTagSupport ? classofRaw : function (it) {
|
|
19827
|
+
var O, tag, result;
|
|
19828
|
+
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
19829
|
+
// @@toStringTag case
|
|
19830
|
+
: typeof (tag = tryGet(O = Object(it), TO_STRING_TAG$3)) == 'string' ? tag
|
|
19831
|
+
// builtinTag case
|
|
19832
|
+
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
19833
|
+
// ES3 arguments fallback
|
|
19834
|
+
: (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
|
19835
|
+
};
|
|
19836
|
+
|
|
19837
|
+
var toString_1 = function (argument) {
|
|
19838
|
+
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
19839
|
+
return String(argument);
|
|
19840
|
+
};
|
|
19841
|
+
|
|
19842
|
+
// `RegExp.prototype.flags` getter implementation
|
|
19843
|
+
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
19844
|
+
var regexpFlags = function () {
|
|
19845
|
+
var that = anObject(this);
|
|
19846
|
+
var result = '';
|
|
19847
|
+
if (that.global) result += 'g';
|
|
19848
|
+
if (that.ignoreCase) result += 'i';
|
|
19849
|
+
if (that.multiline) result += 'm';
|
|
19850
|
+
if (that.dotAll) result += 's';
|
|
19851
|
+
if (that.unicode) result += 'u';
|
|
19852
|
+
if (that.sticky) result += 'y';
|
|
19853
|
+
return result;
|
|
19854
|
+
};
|
|
19855
|
+
|
|
19856
|
+
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
19857
|
+
var $RegExp = global_1.RegExp;
|
|
19858
|
+
|
|
19859
|
+
var UNSUPPORTED_Y = fails(function () {
|
|
19860
|
+
var re = $RegExp('a', 'y');
|
|
19861
|
+
re.lastIndex = 2;
|
|
19862
|
+
return re.exec('abcd') != null;
|
|
19863
|
+
});
|
|
19864
|
+
|
|
19865
|
+
var BROKEN_CARET = fails(function () {
|
|
19866
|
+
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
19867
|
+
var re = $RegExp('^r', 'gy');
|
|
19868
|
+
re.lastIndex = 2;
|
|
19869
|
+
return re.exec('str') != null;
|
|
19870
|
+
});
|
|
19871
|
+
|
|
19872
|
+
var regexpStickyHelpers = {
|
|
19873
|
+
UNSUPPORTED_Y: UNSUPPORTED_Y,
|
|
19874
|
+
BROKEN_CARET: BROKEN_CARET
|
|
19875
|
+
};
|
|
19876
|
+
|
|
19877
|
+
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
19878
|
+
var $RegExp$1 = global_1.RegExp;
|
|
19879
|
+
|
|
19880
|
+
var regexpUnsupportedDotAll = fails(function () {
|
|
19881
|
+
var re = $RegExp$1('.', 's');
|
|
19882
|
+
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
|
19883
|
+
});
|
|
19884
|
+
|
|
19885
|
+
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
19886
|
+
var $RegExp$2 = global_1.RegExp;
|
|
19887
|
+
|
|
19888
|
+
var regexpUnsupportedNcg = fails(function () {
|
|
19889
|
+
var re = $RegExp$2('(?<a>b)', 'g');
|
|
19890
|
+
return re.exec('b').groups.a !== 'b' ||
|
|
19891
|
+
'b'.replace(re, '$<a>c') !== 'bc';
|
|
19892
|
+
});
|
|
19893
|
+
|
|
19894
|
+
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
19895
|
+
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
19896
|
+
|
|
19897
|
+
|
|
19898
|
+
|
|
19899
|
+
|
|
19900
|
+
|
|
19901
|
+
var getInternalState$1 = internalState.get;
|
|
19902
|
+
|
|
19903
|
+
|
|
19904
|
+
|
|
19905
|
+
var nativeExec = RegExp.prototype.exec;
|
|
19906
|
+
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
19907
|
+
|
|
19908
|
+
var patchedExec = nativeExec;
|
|
19909
|
+
|
|
19910
|
+
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
19911
|
+
var re1 = /a/;
|
|
19912
|
+
var re2 = /b*/g;
|
|
19913
|
+
nativeExec.call(re1, 'a');
|
|
19914
|
+
nativeExec.call(re2, 'a');
|
|
19915
|
+
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
19916
|
+
})();
|
|
19917
|
+
|
|
19918
|
+
var UNSUPPORTED_Y$1 = regexpStickyHelpers.UNSUPPORTED_Y || regexpStickyHelpers.BROKEN_CARET;
|
|
19919
|
+
|
|
19920
|
+
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
|
19921
|
+
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
|
19922
|
+
|
|
19923
|
+
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1 || regexpUnsupportedDotAll || regexpUnsupportedNcg;
|
|
19924
|
+
|
|
19925
|
+
if (PATCH) {
|
|
19926
|
+
// eslint-disable-next-line max-statements -- TODO
|
|
19927
|
+
patchedExec = function exec(string) {
|
|
19928
|
+
var re = this;
|
|
19929
|
+
var state = getInternalState$1(re);
|
|
19930
|
+
var str = toString_1(string);
|
|
19931
|
+
var raw = state.raw;
|
|
19932
|
+
var result, reCopy, lastIndex, match, i, object, group;
|
|
19933
|
+
|
|
19934
|
+
if (raw) {
|
|
19935
|
+
raw.lastIndex = re.lastIndex;
|
|
19936
|
+
result = patchedExec.call(raw, str);
|
|
19937
|
+
re.lastIndex = raw.lastIndex;
|
|
19938
|
+
return result;
|
|
19939
|
+
}
|
|
19940
|
+
|
|
19941
|
+
var groups = state.groups;
|
|
19942
|
+
var sticky = UNSUPPORTED_Y$1 && re.sticky;
|
|
19943
|
+
var flags = regexpFlags.call(re);
|
|
19944
|
+
var source = re.source;
|
|
19945
|
+
var charsAdded = 0;
|
|
19946
|
+
var strCopy = str;
|
|
19947
|
+
|
|
19948
|
+
if (sticky) {
|
|
19949
|
+
flags = flags.replace('y', '');
|
|
19950
|
+
if (flags.indexOf('g') === -1) {
|
|
19951
|
+
flags += 'g';
|
|
19952
|
+
}
|
|
19953
|
+
|
|
19954
|
+
strCopy = str.slice(re.lastIndex);
|
|
19955
|
+
// Support anchored sticky behavior.
|
|
19956
|
+
if (re.lastIndex > 0 && (!re.multiline || re.multiline && str.charAt(re.lastIndex - 1) !== '\n')) {
|
|
19957
|
+
source = '(?: ' + source + ')';
|
|
19958
|
+
strCopy = ' ' + strCopy;
|
|
19959
|
+
charsAdded++;
|
|
19960
|
+
}
|
|
19961
|
+
// ^(? + rx + ) is needed, in combination with some str slicing, to
|
|
19962
|
+
// simulate the 'y' flag.
|
|
19963
|
+
reCopy = new RegExp('^(?:' + source + ')', flags);
|
|
19964
|
+
}
|
|
19965
|
+
|
|
19966
|
+
if (NPCG_INCLUDED) {
|
|
19967
|
+
reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
|
|
19968
|
+
}
|
|
19969
|
+
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
19970
|
+
|
|
19971
|
+
match = nativeExec.call(sticky ? reCopy : re, strCopy);
|
|
19972
|
+
|
|
19973
|
+
if (sticky) {
|
|
19974
|
+
if (match) {
|
|
19975
|
+
match.input = match.input.slice(charsAdded);
|
|
19976
|
+
match[0] = match[0].slice(charsAdded);
|
|
19977
|
+
match.index = re.lastIndex;
|
|
19978
|
+
re.lastIndex += match[0].length;
|
|
19979
|
+
} else re.lastIndex = 0;
|
|
19980
|
+
} else if (UPDATES_LAST_INDEX_WRONG && match) {
|
|
19981
|
+
re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
|
|
19982
|
+
}
|
|
19983
|
+
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
19984
|
+
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
19985
|
+
// for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
|
|
19986
|
+
nativeReplace.call(match[0], reCopy, function () {
|
|
19987
|
+
for (i = 1; i < arguments.length - 2; i++) {
|
|
19988
|
+
if (arguments[i] === undefined) match[i] = undefined;
|
|
19989
|
+
}
|
|
19990
|
+
});
|
|
19991
|
+
}
|
|
19992
|
+
|
|
19993
|
+
if (match && groups) {
|
|
19994
|
+
match.groups = object = objectCreate(null);
|
|
19995
|
+
for (i = 0; i < groups.length; i++) {
|
|
19996
|
+
group = groups[i];
|
|
19997
|
+
object[group[0]] = match[group[1]];
|
|
19998
|
+
}
|
|
19999
|
+
}
|
|
20000
|
+
|
|
20001
|
+
return match;
|
|
20002
|
+
};
|
|
20003
|
+
}
|
|
20004
|
+
|
|
20005
|
+
var regexpExec = patchedExec;
|
|
20006
|
+
|
|
20007
|
+
// `RegExp.prototype.exec` method
|
|
20008
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
20009
|
+
_export({ target: 'RegExp', proto: true, forced: /./.exec !== regexpExec }, {
|
|
20010
|
+
exec: regexpExec
|
|
20011
|
+
});
|
|
20012
|
+
|
|
20013
|
+
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
20014
|
+
|
|
20015
|
+
|
|
20016
|
+
|
|
20017
|
+
|
|
20018
|
+
|
|
20019
|
+
|
|
20020
|
+
|
|
20021
|
+
var SPECIES = wellKnownSymbol('species');
|
|
20022
|
+
var RegExpPrototype = RegExp.prototype;
|
|
20023
|
+
|
|
20024
|
+
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
20025
|
+
var SYMBOL = wellKnownSymbol(KEY);
|
|
20026
|
+
|
|
20027
|
+
var DELEGATES_TO_SYMBOL = !fails(function () {
|
|
20028
|
+
// String methods call symbol-named RegEp methods
|
|
20029
|
+
var O = {};
|
|
20030
|
+
O[SYMBOL] = function () { return 7; };
|
|
20031
|
+
return ''[KEY](O) != 7;
|
|
20032
|
+
});
|
|
20033
|
+
|
|
20034
|
+
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
|
|
20035
|
+
// Symbol-named RegExp methods call .exec
|
|
20036
|
+
var execCalled = false;
|
|
20037
|
+
var re = /a/;
|
|
20038
|
+
|
|
20039
|
+
if (KEY === 'split') {
|
|
20040
|
+
// We can't use real regex here since it causes deoptimization
|
|
20041
|
+
// and serious performance degradation in V8
|
|
20042
|
+
// https://github.com/zloirock/core-js/issues/306
|
|
20043
|
+
re = {};
|
|
20044
|
+
// RegExp[@@split] doesn't call the regex's exec method, but first creates
|
|
20045
|
+
// a new one. We need to return the patched regex when creating the new one.
|
|
20046
|
+
re.constructor = {};
|
|
20047
|
+
re.constructor[SPECIES] = function () { return re; };
|
|
20048
|
+
re.flags = '';
|
|
20049
|
+
re[SYMBOL] = /./[SYMBOL];
|
|
20050
|
+
}
|
|
20051
|
+
|
|
20052
|
+
re.exec = function () { execCalled = true; return null; };
|
|
20053
|
+
|
|
20054
|
+
re[SYMBOL]('');
|
|
20055
|
+
return !execCalled;
|
|
20056
|
+
});
|
|
20057
|
+
|
|
20058
|
+
if (
|
|
20059
|
+
!DELEGATES_TO_SYMBOL ||
|
|
20060
|
+
!DELEGATES_TO_EXEC ||
|
|
20061
|
+
FORCED
|
|
20062
|
+
) {
|
|
20063
|
+
var nativeRegExpMethod = /./[SYMBOL];
|
|
20064
|
+
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
|
20065
|
+
var $exec = regexp.exec;
|
|
20066
|
+
if ($exec === regexpExec || $exec === RegExpPrototype.exec) {
|
|
20067
|
+
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
|
20068
|
+
// The native String method already delegates to @@method (this
|
|
20069
|
+
// polyfilled function), leasing to infinite recursion.
|
|
20070
|
+
// We avoid it by directly calling the native @@method method.
|
|
20071
|
+
return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
|
|
20072
|
+
}
|
|
20073
|
+
return { done: true, value: nativeMethod.call(str, regexp, arg2) };
|
|
20074
|
+
}
|
|
20075
|
+
return { done: false };
|
|
20076
|
+
});
|
|
20077
|
+
|
|
20078
|
+
redefine(String.prototype, KEY, methods[0]);
|
|
20079
|
+
redefine(RegExpPrototype, SYMBOL, methods[1]);
|
|
20080
|
+
}
|
|
20081
|
+
|
|
20082
|
+
if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
|
|
20083
|
+
};
|
|
20084
|
+
|
|
20085
|
+
var createMethod$1 = function (CONVERT_TO_STRING) {
|
|
20086
|
+
return function ($this, pos) {
|
|
20087
|
+
var S = toString_1(requireObjectCoercible($this));
|
|
20088
|
+
var position = toIntegerOrInfinity(pos);
|
|
20089
|
+
var size = S.length;
|
|
20090
|
+
var first, second;
|
|
20091
|
+
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
|
20092
|
+
first = S.charCodeAt(position);
|
|
20093
|
+
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
|
20094
|
+
|| (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
|
|
20095
|
+
? CONVERT_TO_STRING ? S.charAt(position) : first
|
|
20096
|
+
: CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
|
|
20097
|
+
};
|
|
20098
|
+
};
|
|
20099
|
+
|
|
20100
|
+
var stringMultibyte = {
|
|
20101
|
+
// `String.prototype.codePointAt` method
|
|
20102
|
+
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
|
|
20103
|
+
codeAt: createMethod$1(false),
|
|
20104
|
+
// `String.prototype.at` method
|
|
20105
|
+
// https://github.com/mathiasbynens/String.prototype.at
|
|
20106
|
+
charAt: createMethod$1(true)
|
|
20107
|
+
};
|
|
20108
|
+
|
|
20109
|
+
var charAt = stringMultibyte.charAt;
|
|
20110
|
+
|
|
20111
|
+
// `AdvanceStringIndex` abstract operation
|
|
20112
|
+
// https://tc39.es/ecma262/#sec-advancestringindex
|
|
20113
|
+
var advanceStringIndex = function (S, index, unicode) {
|
|
20114
|
+
return index + (unicode ? charAt(S, index).length : 1);
|
|
20115
|
+
};
|
|
20116
|
+
|
|
20117
|
+
var floor$1 = Math.floor;
|
|
20118
|
+
var replace = ''.replace;
|
|
20119
|
+
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
|
|
20120
|
+
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
|
|
20121
|
+
|
|
20122
|
+
// `GetSubstitution` abstract operation
|
|
20123
|
+
// https://tc39.es/ecma262/#sec-getsubstitution
|
|
20124
|
+
var getSubstitution = function (matched, str, position, captures, namedCaptures, replacement) {
|
|
20125
|
+
var tailPos = position + matched.length;
|
|
20126
|
+
var m = captures.length;
|
|
20127
|
+
var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
|
|
20128
|
+
if (namedCaptures !== undefined) {
|
|
20129
|
+
namedCaptures = toObject(namedCaptures);
|
|
20130
|
+
symbols = SUBSTITUTION_SYMBOLS;
|
|
20131
|
+
}
|
|
20132
|
+
return replace.call(replacement, symbols, function (match, ch) {
|
|
20133
|
+
var capture;
|
|
20134
|
+
switch (ch.charAt(0)) {
|
|
20135
|
+
case '$': return '$';
|
|
20136
|
+
case '&': return matched;
|
|
20137
|
+
case '`': return str.slice(0, position);
|
|
20138
|
+
case "'": return str.slice(tailPos);
|
|
20139
|
+
case '<':
|
|
20140
|
+
capture = namedCaptures[ch.slice(1, -1)];
|
|
20141
|
+
break;
|
|
20142
|
+
default: // \d\d?
|
|
20143
|
+
var n = +ch;
|
|
20144
|
+
if (n === 0) return match;
|
|
20145
|
+
if (n > m) {
|
|
20146
|
+
var f = floor$1(n / 10);
|
|
20147
|
+
if (f === 0) return match;
|
|
20148
|
+
if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
|
|
20149
|
+
return match;
|
|
20150
|
+
}
|
|
20151
|
+
capture = captures[n - 1];
|
|
20152
|
+
}
|
|
20153
|
+
return capture === undefined ? '' : capture;
|
|
20154
|
+
});
|
|
20155
|
+
};
|
|
20156
|
+
|
|
20157
|
+
// `RegExpExec` abstract operation
|
|
20158
|
+
// https://tc39.es/ecma262/#sec-regexpexec
|
|
20159
|
+
var regexpExecAbstract = function (R, S) {
|
|
20160
|
+
var exec = R.exec;
|
|
20161
|
+
if (isCallable(exec)) {
|
|
20162
|
+
var result = exec.call(R, S);
|
|
20163
|
+
if (result !== null) anObject(result);
|
|
20164
|
+
return result;
|
|
20165
|
+
}
|
|
20166
|
+
if (classofRaw(R) === 'RegExp') return regexpExec.call(R, S);
|
|
20167
|
+
throw TypeError('RegExp#exec called on incompatible receiver');
|
|
20168
|
+
};
|
|
20169
|
+
|
|
20170
|
+
var REPLACE = wellKnownSymbol('replace');
|
|
20171
|
+
var max$1 = Math.max;
|
|
20172
|
+
var min$2 = Math.min;
|
|
20173
|
+
|
|
20174
|
+
var maybeToString = function (it) {
|
|
20175
|
+
return it === undefined ? it : String(it);
|
|
20176
|
+
};
|
|
20177
|
+
|
|
20178
|
+
// IE <= 11 replaces $0 with the whole match, as if it was $&
|
|
20179
|
+
// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
|
|
20180
|
+
var REPLACE_KEEPS_$0 = (function () {
|
|
20181
|
+
// eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
|
|
20182
|
+
return 'a'.replace(/./, '$0') === '$0';
|
|
20183
|
+
})();
|
|
20184
|
+
|
|
20185
|
+
// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
|
|
20186
|
+
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
|
|
20187
|
+
if (/./[REPLACE]) {
|
|
20188
|
+
return /./[REPLACE]('a', '$0') === '';
|
|
20189
|
+
}
|
|
20190
|
+
return false;
|
|
20191
|
+
})();
|
|
20192
|
+
|
|
20193
|
+
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
|
|
20194
|
+
var re = /./;
|
|
20195
|
+
re.exec = function () {
|
|
20196
|
+
var result = [];
|
|
20197
|
+
result.groups = { a: '7' };
|
|
20198
|
+
return result;
|
|
20199
|
+
};
|
|
20200
|
+
// eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
|
|
20201
|
+
return ''.replace(re, '$<a>') !== '7';
|
|
20202
|
+
});
|
|
20203
|
+
|
|
20204
|
+
// @@replace logic
|
|
20205
|
+
fixRegexpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
|
|
20206
|
+
var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
|
|
20207
|
+
|
|
20208
|
+
return [
|
|
20209
|
+
// `String.prototype.replace` method
|
|
20210
|
+
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
|
20211
|
+
function replace(searchValue, replaceValue) {
|
|
20212
|
+
var O = requireObjectCoercible(this);
|
|
20213
|
+
var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE);
|
|
20214
|
+
return replacer
|
|
20215
|
+
? replacer.call(searchValue, O, replaceValue)
|
|
20216
|
+
: nativeReplace.call(toString_1(O), searchValue, replaceValue);
|
|
20217
|
+
},
|
|
20218
|
+
// `RegExp.prototype[@@replace]` method
|
|
20219
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
|
20220
|
+
function (string, replaceValue) {
|
|
20221
|
+
var rx = anObject(this);
|
|
20222
|
+
var S = toString_1(string);
|
|
20223
|
+
|
|
20224
|
+
if (
|
|
20225
|
+
typeof replaceValue === 'string' &&
|
|
20226
|
+
replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1 &&
|
|
20227
|
+
replaceValue.indexOf('$<') === -1
|
|
20228
|
+
) {
|
|
20229
|
+
var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
|
|
20230
|
+
if (res.done) return res.value;
|
|
20231
|
+
}
|
|
20232
|
+
|
|
20233
|
+
var functionalReplace = isCallable(replaceValue);
|
|
20234
|
+
if (!functionalReplace) replaceValue = toString_1(replaceValue);
|
|
20235
|
+
|
|
20236
|
+
var global = rx.global;
|
|
20237
|
+
if (global) {
|
|
20238
|
+
var fullUnicode = rx.unicode;
|
|
20239
|
+
rx.lastIndex = 0;
|
|
20240
|
+
}
|
|
20241
|
+
var results = [];
|
|
20242
|
+
while (true) {
|
|
20243
|
+
var result = regexpExecAbstract(rx, S);
|
|
20244
|
+
if (result === null) break;
|
|
20245
|
+
|
|
20246
|
+
results.push(result);
|
|
20247
|
+
if (!global) break;
|
|
20248
|
+
|
|
20249
|
+
var matchStr = toString_1(result[0]);
|
|
20250
|
+
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
|
20251
|
+
}
|
|
20252
|
+
|
|
20253
|
+
var accumulatedResult = '';
|
|
20254
|
+
var nextSourcePosition = 0;
|
|
20255
|
+
for (var i = 0; i < results.length; i++) {
|
|
20256
|
+
result = results[i];
|
|
20257
|
+
|
|
20258
|
+
var matched = toString_1(result[0]);
|
|
20259
|
+
var position = max$1(min$2(toIntegerOrInfinity(result.index), S.length), 0);
|
|
20260
|
+
var captures = [];
|
|
20261
|
+
// NOTE: This is equivalent to
|
|
20262
|
+
// captures = result.slice(1).map(maybeToString)
|
|
20263
|
+
// but for some reason `nativeSlice.call(result, 1, result.length)` (called in
|
|
20264
|
+
// the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
|
|
20265
|
+
// causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
|
|
20266
|
+
for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
|
|
20267
|
+
var namedCaptures = result.groups;
|
|
20268
|
+
if (functionalReplace) {
|
|
20269
|
+
var replacerArgs = [matched].concat(captures, position, S);
|
|
20270
|
+
if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
|
|
20271
|
+
var replacement = toString_1(replaceValue.apply(undefined, replacerArgs));
|
|
20272
|
+
} else {
|
|
20273
|
+
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
|
20274
|
+
}
|
|
20275
|
+
if (position >= nextSourcePosition) {
|
|
20276
|
+
accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
|
|
20277
|
+
nextSourcePosition = position + matched.length;
|
|
20278
|
+
}
|
|
20279
|
+
}
|
|
20280
|
+
return accumulatedResult + S.slice(nextSourcePosition);
|
|
20281
|
+
}
|
|
20282
|
+
];
|
|
20283
|
+
}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
|
|
20284
|
+
|
|
18693
20285
|
const DropdownIcon = () => /*#__PURE__*/React.createElement("svg", {
|
|
18694
20286
|
version: "1.2",
|
|
18695
20287
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -18711,8 +20303,8 @@ const DropdownIcon = () => /*#__PURE__*/React.createElement("svg", {
|
|
|
18711
20303
|
vectorEffect: "non-scaling-stroke"
|
|
18712
20304
|
})))));
|
|
18713
20305
|
|
|
18714
|
-
const selectedColor = ""
|
|
18715
|
-
const hoverColor$3 = ""
|
|
20306
|
+
const selectedColor = "" + MATISSE_BLUE;
|
|
20307
|
+
const hoverColor$3 = "" + HOVER_LIGHT_BLUE;
|
|
18716
20308
|
const fallbackValues$e = {
|
|
18717
20309
|
selectedColor,
|
|
18718
20310
|
hoverColor: hoverColor$3
|
|
@@ -18880,7 +20472,7 @@ const Dropdown = ({
|
|
|
18880
20472
|
onClick: onClick,
|
|
18881
20473
|
padding: "0",
|
|
18882
20474
|
width: "100%",
|
|
18883
|
-
hoverStyles: "background-color: "
|
|
20475
|
+
hoverStyles: "background-color: " + themeValues.hoverColor + ";",
|
|
18884
20476
|
"aria-expanded": isOpen,
|
|
18885
20477
|
extraStyles: disabled && "color: #6e727e;\n background-color: #f7f7f7;\n pointer-events: none;"
|
|
18886
20478
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
@@ -18888,13 +20480,13 @@ const Dropdown = ({
|
|
|
18888
20480
|
background: isOpen ? themeValues.hoverColor : WHITE,
|
|
18889
20481
|
width: "100%",
|
|
18890
20482
|
padding: "12px",
|
|
18891
|
-
hoverStyles: "background-color: "
|
|
20483
|
+
hoverStyles: "background-color: " + themeValues.hoverColor + ";",
|
|
18892
20484
|
borderSize: "1px",
|
|
18893
20485
|
borderColor: isError ? ERROR_COLOR : isOpen ? themeValues.selectedColor : GREY_CHATEAU,
|
|
18894
20486
|
borderRadius: "2px",
|
|
18895
20487
|
tabIndex: 0,
|
|
18896
20488
|
dataQa: placeholder,
|
|
18897
|
-
extraStyles: "height: 48px;\n "
|
|
20489
|
+
extraStyles: "height: 48px;\n " + (disabled && "color: #6e727e;\n background-color: #f7f7f7;\n pointer-events: none;") + "\n "
|
|
18898
20490
|
}, /*#__PURE__*/React.createElement(Stack, {
|
|
18899
20491
|
direction: "row",
|
|
18900
20492
|
bottomItem: 2
|
|
@@ -18906,7 +20498,7 @@ const Dropdown = ({
|
|
|
18906
20498
|
}) : /*#__PURE__*/React.createElement(Text$1, {
|
|
18907
20499
|
variant: "p",
|
|
18908
20500
|
extraStyles: disabled && "color: #6e727e;\n background-color: #f7f7f7;\n pointer-events: none;"
|
|
18909
|
-
}, value ? (_options$find = options.find(option => option.value === value))
|
|
20501
|
+
}, value ? (_options$find = options.find(option => option.value === value)) == null ? void 0 : _options$find.text : placeholder), /*#__PURE__*/React.createElement(IconWrapper, {
|
|
18910
20502
|
open: isOpen
|
|
18911
20503
|
}, /*#__PURE__*/React.createElement(DropdownIcon, null)))), isOpen ? /*#__PURE__*/React.createElement(DropdownContentWrapper, {
|
|
18912
20504
|
maxHeight: maxHeight,
|
|
@@ -18929,7 +20521,7 @@ const Dropdown = ({
|
|
|
18929
20521
|
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
18930
20522
|
variant: "p",
|
|
18931
20523
|
color: choice.value === value ? WHITE : disabledValues.includes(choice.value) ? STORM_GREY : MINESHAFT_GREY,
|
|
18932
|
-
extraStyles: "padding-left: 16px; \n cursor: "
|
|
20524
|
+
extraStyles: "padding-left: 16px; \n cursor: " + (disabledValues.includes(choice.value) ? "default" : "pointer") + "; \n white-space: nowrap; \n overflow: hidden; \n text-overflow: ellipsis;"
|
|
18933
20525
|
}, choice.text))))) : /*#__PURE__*/React.createElement(Fragment, null));
|
|
18934
20526
|
};
|
|
18935
20527
|
|
|
@@ -18956,30 +20548,30 @@ const SelectOption = styled.option.withConfig({
|
|
|
18956
20548
|
})([""]);
|
|
18957
20549
|
|
|
18958
20550
|
const linkColor$1 = {
|
|
18959
|
-
default: ""
|
|
18960
|
-
disabled: ""
|
|
20551
|
+
default: "" + MATISSE_BLUE,
|
|
20552
|
+
disabled: "" + MATISSE_BLUE
|
|
18961
20553
|
};
|
|
18962
20554
|
const formBackgroundColor = {
|
|
18963
|
-
default: ""
|
|
18964
|
-
disabled: ""
|
|
18965
|
-
checkout: ""
|
|
18966
|
-
collapsible: ""
|
|
20555
|
+
default: "" + WHITE,
|
|
20556
|
+
disabled: "" + WHITE,
|
|
20557
|
+
checkout: "" + ATHENS_GREY,
|
|
20558
|
+
collapsible: "" + ATHENS_GREY
|
|
18967
20559
|
};
|
|
18968
20560
|
const inputBackgroundColor = {
|
|
18969
|
-
default: ""
|
|
18970
|
-
disabled: ""
|
|
20561
|
+
default: "" + WHITE,
|
|
20562
|
+
disabled: "" + SEASHELL_WHITE
|
|
18971
20563
|
};
|
|
18972
20564
|
const color$5 = {
|
|
18973
|
-
default: ""
|
|
18974
|
-
disabled: ""
|
|
20565
|
+
default: "" + MINESHAFT_GREY,
|
|
20566
|
+
disabled: "" + DUSTY_GREY
|
|
18975
20567
|
};
|
|
18976
20568
|
const labelColor = {
|
|
18977
|
-
default: ""
|
|
18978
|
-
disabled: ""
|
|
20569
|
+
default: "" + CHARADE_GREY,
|
|
20570
|
+
disabled: "" + CHARADE_GREY
|
|
18979
20571
|
};
|
|
18980
20572
|
const borderColor = {
|
|
18981
|
-
default: ""
|
|
18982
|
-
disabled: ""
|
|
20573
|
+
default: "" + GREY_CHATEAU,
|
|
20574
|
+
disabled: "" + GREY_CHATEAU
|
|
18983
20575
|
};
|
|
18984
20576
|
const lineHeight$2 = {
|
|
18985
20577
|
default: "1rem",
|
|
@@ -18994,8 +20586,8 @@ const errorFontSize = {
|
|
|
18994
20586
|
disabled: "0.75rem"
|
|
18995
20587
|
};
|
|
18996
20588
|
const fontWeight$2 = {
|
|
18997
|
-
default: ""
|
|
18998
|
-
disabled: ""
|
|
20589
|
+
default: "" + FONT_WEIGHT_REGULAR,
|
|
20590
|
+
disabled: "" + FONT_WEIGHT_REGULAR
|
|
18999
20591
|
};
|
|
19000
20592
|
const hoverFocusStyles = {
|
|
19001
20593
|
default: "color: #0E506D; outline: none; text-decoration: underline; ",
|
|
@@ -19080,7 +20672,7 @@ const FormSelect = ({
|
|
|
19080
20672
|
weight: themeValues.fontWeight,
|
|
19081
20673
|
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }"
|
|
19082
20674
|
}, errorMessages[field.errors[0]]) : /*#__PURE__*/React.createElement(Text$1, {
|
|
19083
|
-
extraStyles: "height: "
|
|
20675
|
+
extraStyles: "height: " + themeValues.lineHeight + ";"
|
|
19084
20676
|
})));
|
|
19085
20677
|
};
|
|
19086
20678
|
|
|
@@ -19956,7 +21548,7 @@ const Detail = ({
|
|
|
19956
21548
|
var Detail$1 = themeComponent(Detail, "Detail", fallbacks, "regular");
|
|
19957
21549
|
|
|
19958
21550
|
const backgroundColor$3 = WHITE;
|
|
19959
|
-
const boxShadow = "0px 2px 14px 0px "
|
|
21551
|
+
const boxShadow = "0px 2px 14px 0px " + ATHENS_GREY + ", 0px 3px 8px 0px " + GHOST_GREY;
|
|
19960
21552
|
const fallbackValues$h = {
|
|
19961
21553
|
backgroundColor: backgroundColor$3,
|
|
19962
21554
|
boxShadow
|
|
@@ -20303,30 +21895,30 @@ var FormattedInput = function FormattedInput(_ref) {
|
|
|
20303
21895
|
};
|
|
20304
21896
|
|
|
20305
21897
|
const linkColor$2 = {
|
|
20306
|
-
default: ""
|
|
20307
|
-
disabled: ""
|
|
21898
|
+
default: "" + MATISSE_BLUE,
|
|
21899
|
+
disabled: "" + MATISSE_BLUE
|
|
20308
21900
|
};
|
|
20309
21901
|
const formBackgroundColor$1 = {
|
|
20310
|
-
default: ""
|
|
20311
|
-
disabled: ""
|
|
20312
|
-
checkout: ""
|
|
20313
|
-
collapsible: ""
|
|
21902
|
+
default: "" + WHITE,
|
|
21903
|
+
disabled: "" + WHITE,
|
|
21904
|
+
checkout: "" + ATHENS_GREY,
|
|
21905
|
+
collapsible: "" + ATHENS_GREY
|
|
20314
21906
|
};
|
|
20315
21907
|
const inputBackgroundColor$1 = {
|
|
20316
|
-
default: ""
|
|
20317
|
-
disabled: ""
|
|
21908
|
+
default: "" + WHITE,
|
|
21909
|
+
disabled: "" + SEASHELL_WHITE
|
|
20318
21910
|
};
|
|
20319
21911
|
const color$6 = {
|
|
20320
|
-
default: ""
|
|
20321
|
-
disabled: ""
|
|
21912
|
+
default: "" + MINESHAFT_GREY,
|
|
21913
|
+
disabled: "" + DUSTY_GREY
|
|
20322
21914
|
};
|
|
20323
21915
|
const labelColor$1 = {
|
|
20324
|
-
default: ""
|
|
20325
|
-
disabled: ""
|
|
21916
|
+
default: "" + CHARADE_GREY,
|
|
21917
|
+
disabled: "" + CHARADE_GREY
|
|
20326
21918
|
};
|
|
20327
21919
|
const borderColor$1 = {
|
|
20328
|
-
default: ""
|
|
20329
|
-
disabled: ""
|
|
21920
|
+
default: "" + GREY_CHATEAU,
|
|
21921
|
+
disabled: "" + GREY_CHATEAU
|
|
20330
21922
|
};
|
|
20331
21923
|
const lineHeight$3 = {
|
|
20332
21924
|
default: "1rem",
|
|
@@ -20341,15 +21933,15 @@ const errorFontSize$1 = {
|
|
|
20341
21933
|
disabled: "0.75rem"
|
|
20342
21934
|
};
|
|
20343
21935
|
const fontWeight$3 = {
|
|
20344
|
-
default: ""
|
|
20345
|
-
disabled: ""
|
|
21936
|
+
default: "" + FONT_WEIGHT_REGULAR,
|
|
21937
|
+
disabled: "" + FONT_WEIGHT_REGULAR
|
|
20346
21938
|
};
|
|
20347
21939
|
const hoverFocusStyles$1 = {
|
|
20348
21940
|
default: "color: #0E506D; outline: none; text-decoration: underline; ",
|
|
20349
21941
|
disabled: "color: #6D717E;"
|
|
20350
21942
|
};
|
|
20351
21943
|
const formFooterPanel = {
|
|
20352
|
-
default: ""
|
|
21944
|
+
default: "" + INFO_BLUE
|
|
20353
21945
|
};
|
|
20354
21946
|
const fallbackValues$i = {
|
|
20355
21947
|
linkColor: linkColor$2,
|
|
@@ -20382,7 +21974,7 @@ const InputField = styled.input.withConfig({
|
|
|
20382
21974
|
}) => themeValues.color && themeValues.color, ({
|
|
20383
21975
|
background,
|
|
20384
21976
|
themeValues
|
|
20385
|
-
}) => background && "background: "
|
|
21977
|
+
}) => background && "background: " + themeValues.inputBackgroundColor + " url(" + background + ") no-repeat right 0.5rem center;", ROYAL_BLUE, ({
|
|
20386
21978
|
disabled
|
|
20387
21979
|
}) => disabled && css(["color:#6e727e;background-color:#f7f7f7;"]), ({
|
|
20388
21980
|
extraStyles
|
|
@@ -20515,7 +22107,7 @@ const FormInput = ({
|
|
|
20515
22107
|
weight: themeValues.fontWeight,
|
|
20516
22108
|
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }"
|
|
20517
22109
|
}, errorMessages[field.errors[0]]) : /*#__PURE__*/React.createElement(Text$1, {
|
|
20518
|
-
extraStyles: "height: "
|
|
22110
|
+
extraStyles: "height: " + themeValues.lineHeight + ";"
|
|
20519
22111
|
}), !isMobile && decorator && /*#__PURE__*/React.createElement(Box, {
|
|
20520
22112
|
padding: "0 0 0 auto"
|
|
20521
22113
|
}, decorator)));
|
|
@@ -20601,8 +22193,8 @@ const padding$1 = {
|
|
|
20601
22193
|
radio: "0.625rem 0"
|
|
20602
22194
|
};
|
|
20603
22195
|
const color$7 = {
|
|
20604
|
-
default: ""
|
|
20605
|
-
radio: ""
|
|
22196
|
+
default: "" + CHARADE_GREY,
|
|
22197
|
+
radio: "" + MINESHAFT_GREY
|
|
20606
22198
|
};
|
|
20607
22199
|
const fallbackValues$j = {
|
|
20608
22200
|
fontSize: fontSize$8,
|
|
@@ -20626,29 +22218,29 @@ const FormattedAddress = ({
|
|
|
20626
22218
|
}, name && /*#__PURE__*/React.createElement(Text$1, {
|
|
20627
22219
|
variant: "p",
|
|
20628
22220
|
color: themeValues.color,
|
|
20629
|
-
dataQa:
|
|
22221
|
+
dataQa: qaPrefix + "-name"
|
|
20630
22222
|
}, name), /*#__PURE__*/React.createElement(Box, {
|
|
20631
22223
|
padding: "0"
|
|
20632
22224
|
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
20633
22225
|
variant: "p",
|
|
20634
22226
|
color: themeValues.color,
|
|
20635
|
-
dataQa:
|
|
22227
|
+
dataQa: qaPrefix + "-1"
|
|
20636
22228
|
}, street1), street2 && /*#__PURE__*/React.createElement(Text$1, {
|
|
20637
22229
|
variant: "p",
|
|
20638
|
-
dataQa:
|
|
22230
|
+
dataQa: qaPrefix + "-2"
|
|
20639
22231
|
}, ", ", street2)), /*#__PURE__*/React.createElement(Box, {
|
|
20640
22232
|
padding: "0"
|
|
20641
22233
|
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
20642
22234
|
variant: "p",
|
|
20643
22235
|
color: themeValues.color,
|
|
20644
|
-
dataQa:
|
|
20645
|
-
}, city, ", ", stateProvince, " "
|
|
22236
|
+
dataQa: qaPrefix + "-3"
|
|
22237
|
+
}, city, ", ", stateProvince, " " + zip, country ? " " + country : "")));
|
|
20646
22238
|
};
|
|
20647
22239
|
|
|
20648
22240
|
var FormattedAddress$1 = themeComponent(FormattedAddress, "FormattedAddress", fallbackValues$j, "default");
|
|
20649
22241
|
|
|
20650
|
-
const textColor$1 = ""
|
|
20651
|
-
const autopayTextColor = ""
|
|
22242
|
+
const textColor$1 = "" + CHARADE_GREY;
|
|
22243
|
+
const autopayTextColor = "" + REGENT_GREY;
|
|
20652
22244
|
const fallbackValues$k = {
|
|
20653
22245
|
textColor: textColor$1,
|
|
20654
22246
|
autopayTextColor
|
|
@@ -20708,7 +22300,7 @@ const FormattedCreditCard = ({
|
|
|
20708
22300
|
color: themeValues.textColor,
|
|
20709
22301
|
textAlign: "left",
|
|
20710
22302
|
extraStyles: "display: inline-block;"
|
|
20711
|
-
}, "Card ending in "
|
|
22303
|
+
}, "Card ending in " + lastFour), expireDate && /*#__PURE__*/React.createElement(Fragment, null, renderCardStatus())), autoPay && /*#__PURE__*/React.createElement(Text$1, {
|
|
20712
22304
|
variant: "p",
|
|
20713
22305
|
color: themeValues.autopayTextColor,
|
|
20714
22306
|
extraStyles: "font-style: italic;"
|
|
@@ -20875,7 +22467,7 @@ const Jumbo = ({
|
|
|
20875
22467
|
return /*#__PURE__*/React.createElement(Box, {
|
|
20876
22468
|
padding: "0 20px",
|
|
20877
22469
|
minHeight: "65px",
|
|
20878
|
-
id: "heroImage-"
|
|
22470
|
+
id: "heroImage-" + slug,
|
|
20879
22471
|
className: "themeJumboBackground"
|
|
20880
22472
|
}, /*#__PURE__*/React.createElement(Center, {
|
|
20881
22473
|
maxWidth: "76.5rem"
|
|
@@ -20942,12 +22534,12 @@ const LabeledAmount = ({
|
|
|
20942
22534
|
variant: variant,
|
|
20943
22535
|
as: as,
|
|
20944
22536
|
weight: themeValues.fontWeight,
|
|
20945
|
-
extraStyles:
|
|
22537
|
+
extraStyles: extraStyles + "; text-align: start; flex: 3;"
|
|
20946
22538
|
}, label, ":"), /*#__PURE__*/React.createElement(LabeledAmountText, {
|
|
20947
22539
|
variant: variant,
|
|
20948
22540
|
as: as,
|
|
20949
22541
|
weight: themeValues.fontWeight,
|
|
20950
|
-
extraStyles:
|
|
22542
|
+
extraStyles: extraStyles + "; text-align: end; flex: 1;"
|
|
20951
22543
|
}, amount));
|
|
20952
22544
|
};
|
|
20953
22545
|
|
|
@@ -21056,7 +22648,7 @@ const NavFooter = ({
|
|
|
21056
22648
|
background: backgroundColor,
|
|
21057
22649
|
minHeight: footerMinHeight,
|
|
21058
22650
|
minWidth: "100%",
|
|
21059
|
-
extraStyles: isMobile ? "overflow: hidden;" : "height: "
|
|
22651
|
+
extraStyles: isMobile ? "overflow: hidden;" : "height: " + footerMinHeight + "; > * { height: 100%; };"
|
|
21060
22652
|
}, rest), /*#__PURE__*/React.createElement(Center, {
|
|
21061
22653
|
maxWidth: footerWidth || "76.5rem"
|
|
21062
22654
|
}, /*#__PURE__*/React.createElement(Cover, {
|
|
@@ -21091,7 +22683,7 @@ const NavHeader = ({
|
|
|
21091
22683
|
}) => /*#__PURE__*/React.createElement(Box, _extends({
|
|
21092
22684
|
padding: "0 16px 4px",
|
|
21093
22685
|
background: backgroundColor,
|
|
21094
|
-
extraStyles: isMobile ? "height: 72px; > * { height: 100%; }; z-index: 2;" : "height: "
|
|
22686
|
+
extraStyles: isMobile ? "height: 72px; > * { height: 100%; }; z-index: 2;" : "height: " + headerHeight + "; > * { height: 100%; }; z-index: 2;",
|
|
21095
22687
|
minWidth: "100%"
|
|
21096
22688
|
}, rest), /*#__PURE__*/React.createElement(Center, {
|
|
21097
22689
|
maxWidth: headerWidth || "76.5rem"
|
|
@@ -21130,7 +22722,7 @@ const NUM_LESS_THAN_ERROR = "num_less_than_error";
|
|
|
21130
22722
|
const MATCHES_FIELD_ERROR = "matches_field_error";
|
|
21131
22723
|
const VALID_SELECT_OPTION_ERROR = "valid_select_option_error"; // Array<String>, Array<String> -> Object -> String
|
|
21132
22724
|
|
|
21133
|
-
const genErrorMessage = (strings, ...argKeys) => inputState => strings.reduce((accum, current, index) => ""
|
|
22725
|
+
const genErrorMessage = (strings, ...argKeys) => inputState => strings.reduce((accum, current, index) => "" + accum + current + (argKeys[index] ? pathOr("", [argKeys[index]], inputState) : ""), []);
|
|
21134
22726
|
/*
|
|
21135
22727
|
What's going on here? This looks weird, you may ask...
|
|
21136
22728
|
DEFAULT_ERROR_MESSAGES is a map between the error constants (which are returned by validators)
|
|
@@ -21143,22 +22735,22 @@ with interpolation.
|
|
|
21143
22735
|
|
|
21144
22736
|
|
|
21145
22737
|
const DEFAULT_ERROR_MESSAGES = {
|
|
21146
|
-
[MIN_LENGTH_ERROR]: genErrorMessage(_templateObject || (_templateObject =
|
|
21147
|
-
[MAX_LENGTH_ERROR]: genErrorMessage(_templateObject2 || (_templateObject2 =
|
|
21148
|
-
[EXACT_LENGTH_ERROR]: genErrorMessage(_templateObject3 || (_templateObject3 =
|
|
21149
|
-
[MULTIPLE_LENGTHS_ERROR]: genErrorMessage(_templateObject4 || (_templateObject4 =
|
|
21150
|
-
[EMAIL_ERROR]: genErrorMessage(_templateObject5 || (_templateObject5 =
|
|
21151
|
-
[HAS_NUMBER_ERROR]: genErrorMessage(_templateObject6 || (_templateObject6 =
|
|
21152
|
-
[HAS_UPPERCASE_LETTER_ERROR]: genErrorMessage(_templateObject7 || (_templateObject7 =
|
|
21153
|
-
[HAS_LOWERCASE_LETTER_ERROR]: genErrorMessage(_templateObject8 || (_templateObject8 =
|
|
21154
|
-
[HAS_SPECIAL_CHARACTER_ERROR]: genErrorMessage(_templateObject9 || (_templateObject9 =
|
|
21155
|
-
[ONLY_NUMBERS_ERROR]: genErrorMessage(_templateObject10 || (_templateObject10 =
|
|
21156
|
-
[ONLY_LETTERS_ERROR]: genErrorMessage(_templateObject11 || (_templateObject11 =
|
|
21157
|
-
[REQUIRED_FIELD_ERROR]: genErrorMessage(_templateObject12 || (_templateObject12 =
|
|
21158
|
-
[NUM_GREATER_THAN_ERROR]: genErrorMessage(_templateObject13 || (_templateObject13 =
|
|
21159
|
-
[NUM_LESS_THAN_ERROR]: genErrorMessage(_templateObject14 || (_templateObject14 =
|
|
21160
|
-
[MATCHES_FIELD_ERROR]: genErrorMessage(_templateObject15 || (_templateObject15 =
|
|
21161
|
-
[VALID_SELECT_OPTION_ERROR]: genErrorMessage(_templateObject16 || (_templateObject16 =
|
|
22738
|
+
[MIN_LENGTH_ERROR]: genErrorMessage(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["", " is too short"])), "fieldLabel"),
|
|
22739
|
+
[MAX_LENGTH_ERROR]: genErrorMessage(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["", " is too long"])), "fieldLabel"),
|
|
22740
|
+
[EXACT_LENGTH_ERROR]: genErrorMessage(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["", " is not the right length"])), "fieldLabel"),
|
|
22741
|
+
[MULTIPLE_LENGTHS_ERROR]: genErrorMessage(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["", " is not a valid length"])), "fieldLabel"),
|
|
22742
|
+
[EMAIL_ERROR]: genErrorMessage(_templateObject5 || (_templateObject5 = _taggedTemplateLiteralLoose(["", " is not a valid email address"])), "fieldLabel"),
|
|
22743
|
+
[HAS_NUMBER_ERROR]: genErrorMessage(_templateObject6 || (_templateObject6 = _taggedTemplateLiteralLoose(["", " needs a number"])), "fieldLabel"),
|
|
22744
|
+
[HAS_UPPERCASE_LETTER_ERROR]: genErrorMessage(_templateObject7 || (_templateObject7 = _taggedTemplateLiteralLoose(["", " needs an uppercase letter"])), "fieldLabel"),
|
|
22745
|
+
[HAS_LOWERCASE_LETTER_ERROR]: genErrorMessage(_templateObject8 || (_templateObject8 = _taggedTemplateLiteralLoose(["", " needs a lowercase letter"])), "fieldLabel"),
|
|
22746
|
+
[HAS_SPECIAL_CHARACTER_ERROR]: genErrorMessage(_templateObject9 || (_templateObject9 = _taggedTemplateLiteralLoose(["", " needs a special character"])), "fieldLabel"),
|
|
22747
|
+
[ONLY_NUMBERS_ERROR]: genErrorMessage(_templateObject10 || (_templateObject10 = _taggedTemplateLiteralLoose(["", " must be only numbers"])), "fieldLabel"),
|
|
22748
|
+
[ONLY_LETTERS_ERROR]: genErrorMessage(_templateObject11 || (_templateObject11 = _taggedTemplateLiteralLoose(["", " must be only letters"])), "fieldLabel"),
|
|
22749
|
+
[REQUIRED_FIELD_ERROR]: genErrorMessage(_templateObject12 || (_templateObject12 = _taggedTemplateLiteralLoose(["", " is required"])), "fieldLabel"),
|
|
22750
|
+
[NUM_GREATER_THAN_ERROR]: genErrorMessage(_templateObject13 || (_templateObject13 = _taggedTemplateLiteralLoose(["", " is too high"])), "fieldLabel"),
|
|
22751
|
+
[NUM_LESS_THAN_ERROR]: genErrorMessage(_templateObject14 || (_templateObject14 = _taggedTemplateLiteralLoose(["", " is too low"])), "fieldLabel"),
|
|
22752
|
+
[MATCHES_FIELD_ERROR]: genErrorMessage(_templateObject15 || (_templateObject15 = _taggedTemplateLiteralLoose(["", " must match ", ""])), "fieldLabel", "matchField"),
|
|
22753
|
+
[VALID_SELECT_OPTION_ERROR]: genErrorMessage(_templateObject16 || (_templateObject16 = _taggedTemplateLiteralLoose(["", " is not a valid option"])), "fieldLabel")
|
|
21162
22754
|
}; // Constants to represent an input's state
|
|
21163
22755
|
// Neutral - has not been validated
|
|
21164
22756
|
// Invalid - has been validated and has an error
|
|
@@ -21275,8 +22867,8 @@ const PasswordRequirements = ({
|
|
|
21275
22867
|
};
|
|
21276
22868
|
|
|
21277
22869
|
const color$9 = {
|
|
21278
|
-
default: ""
|
|
21279
|
-
large: ""
|
|
22870
|
+
default: "" + CHARADE_GREY,
|
|
22871
|
+
large: "" + BRIGHT_GREY
|
|
21280
22872
|
};
|
|
21281
22873
|
const height$1 = {
|
|
21282
22874
|
default: "3rem",
|
|
@@ -21329,8 +22921,8 @@ const Placeholder = ({
|
|
|
21329
22921
|
border: "none",
|
|
21330
22922
|
minHeight: themeValues.height,
|
|
21331
22923
|
hiddenStyles: !visible,
|
|
21332
|
-
extraStyles: "\n background: linear-gradient(\n to right,\n "
|
|
21333
|
-
hoverStyles: "background-color: "
|
|
22924
|
+
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;",
|
|
22925
|
+
hoverStyles: "background-color: " + (variant === "large" ? GRECIAN_GREY : curriedTint(0.9, themeValues.color)) + ";"
|
|
21334
22926
|
}, /*#__PURE__*/React.createElement(Center, {
|
|
21335
22927
|
maxWidth: "300px"
|
|
21336
22928
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
@@ -21346,7 +22938,7 @@ const Placeholder = ({
|
|
|
21346
22938
|
childGap: "0"
|
|
21347
22939
|
}, variant === "large" && /*#__PURE__*/React.createElement("div", null), /*#__PURE__*/React.createElement(Box, {
|
|
21348
22940
|
padding: "0",
|
|
21349
|
-
extraStyles: ".fill { \n fill: "
|
|
22941
|
+
extraStyles: ".fill { \n fill: " + (variant === "large" ? CHARADE_GREY : themeValues.color) + "; \n } .stroke { \n stroke: " + (variant === "large" ? CHARADE_GREY : themeValues.color) + "; \n }"
|
|
21350
22942
|
}, variant === "large" ? /*#__PURE__*/React.createElement(Center, {
|
|
21351
22943
|
intrinsic: true
|
|
21352
22944
|
}, largeIcon === "accounts" ? /*#__PURE__*/React.createElement(AccountsAddIcon$1, null) : /*#__PURE__*/React.createElement(PropertiesAddIcon$1, null), /*#__PURE__*/React.createElement(Text$1, {
|
|
@@ -21372,7 +22964,7 @@ const Placeholder = ({
|
|
|
21372
22964
|
var Placeholder$1 = themeComponent(Placeholder, "Placeholder", fallbackValues$p, "default");
|
|
21373
22965
|
|
|
21374
22966
|
const backgroundColor$4 = {
|
|
21375
|
-
default: ""
|
|
22967
|
+
default: "" + WHITE
|
|
21376
22968
|
};
|
|
21377
22969
|
const fallbackValues$q = {
|
|
21378
22970
|
backgroundColor: backgroundColor$4
|
|
@@ -21391,15 +22983,15 @@ const ProcessingFee = ({
|
|
|
21391
22983
|
hiddenStyles: hide
|
|
21392
22984
|
}, /*#__PURE__*/React.createElement(Alert$1, {
|
|
21393
22985
|
heading: "Processing Fee",
|
|
21394
|
-
text: "There is a processing fee of "
|
|
22986
|
+
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.",
|
|
21395
22987
|
variant: "info",
|
|
21396
22988
|
showQuitLink: false
|
|
21397
22989
|
}));
|
|
21398
22990
|
|
|
21399
22991
|
var ProcessingFee$1 = themeComponent(ProcessingFee, "ProcessingFee", fallbackValues$q, "default");
|
|
21400
22992
|
|
|
21401
|
-
const activeColor$4 = ""
|
|
21402
|
-
const inactiveColor = ""
|
|
22993
|
+
const activeColor$4 = "" + MATISSE_BLUE;
|
|
22994
|
+
const inactiveColor = "" + GREY_CHATEAU;
|
|
21403
22995
|
const fallbackValues$r = {
|
|
21404
22996
|
activeColor: activeColor$4,
|
|
21405
22997
|
inactiveColor
|
|
@@ -21423,11 +23015,11 @@ const RadioButton$1 = ({
|
|
|
21423
23015
|
const buttonBorder = {
|
|
21424
23016
|
onFocused: {
|
|
21425
23017
|
borderColor: themeValues.activeColor,
|
|
21426
|
-
boxShadow: "0px 0px 4px 0px "
|
|
23018
|
+
boxShadow: "0px 0px 4px 0px " + themeValues.activeColor
|
|
21427
23019
|
},
|
|
21428
23020
|
offFocused: {
|
|
21429
23021
|
borderColor: themeValues.activeColor,
|
|
21430
|
-
boxShadow: "0px 0px 4px 0px "
|
|
23022
|
+
boxShadow: "0px 0px 4px 0px " + themeValues.activeColor
|
|
21431
23023
|
},
|
|
21432
23024
|
on: {
|
|
21433
23025
|
borderColor: themeValues.activeColor,
|
|
@@ -21466,7 +23058,7 @@ const RadioButton$1 = ({
|
|
|
21466
23058
|
initial: "off",
|
|
21467
23059
|
animate: radioOn ? radioFocused ? "onFocused" : "on" : radioFocused ? "offFocused" : "off"
|
|
21468
23060
|
}, /*#__PURE__*/React.createElement(HiddenRadioButton, {
|
|
21469
|
-
id: "#radio-"
|
|
23061
|
+
id: "#radio-" + name,
|
|
21470
23062
|
"aria-label": name,
|
|
21471
23063
|
disabled: disabled,
|
|
21472
23064
|
onClick: toggleRadio,
|
|
@@ -21515,7 +23107,7 @@ const SearchableSelect = ({
|
|
|
21515
23107
|
const filteredItems = items.filter(item => {
|
|
21516
23108
|
var _item$name, _fields$searchTerm, _fields$searchTerm$ra;
|
|
21517
23109
|
|
|
21518
|
-
return item
|
|
23110
|
+
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());
|
|
21519
23111
|
});
|
|
21520
23112
|
setItemList(filteredItems);
|
|
21521
23113
|
}, [fields.searchTerm.rawValue]);
|
|
@@ -21548,7 +23140,7 @@ const SearchableSelect = ({
|
|
|
21548
23140
|
key: value.name,
|
|
21549
23141
|
title: value.name,
|
|
21550
23142
|
name: value.name,
|
|
21551
|
-
checked: (_selectedItems$find = selectedItems
|
|
23143
|
+
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,
|
|
21552
23144
|
onChange: () => handleSelect(value),
|
|
21553
23145
|
textExtraStyles: "margin: 0;",
|
|
21554
23146
|
disabled: disabled,
|
|
@@ -21560,7 +23152,7 @@ const SearchableSelect = ({
|
|
|
21560
23152
|
var SearchableSelect$1 = themeComponent(SearchableSelect, "SearchableSelect", fallbackValues$s, "default");
|
|
21561
23153
|
|
|
21562
23154
|
const borderColor$2 = {
|
|
21563
|
-
default: ""
|
|
23155
|
+
default: "" + GREY_CHATEAU
|
|
21564
23156
|
};
|
|
21565
23157
|
const borderSize = {
|
|
21566
23158
|
default: "1px"
|
|
@@ -21578,7 +23170,7 @@ const SolidDivider = ({
|
|
|
21578
23170
|
minHeight: "1px",
|
|
21579
23171
|
borderColor: themeValues.borderColor,
|
|
21580
23172
|
borderSize: themeValues.borderSize,
|
|
21581
|
-
borderWidthOverride: "0px 0px "
|
|
23173
|
+
borderWidthOverride: "0px 0px " + themeValues.borderSize + " 0px"
|
|
21582
23174
|
});
|
|
21583
23175
|
|
|
21584
23176
|
var SolidDivider$1 = themeComponent(SolidDivider, "SolidDivider", fallbackValues$t, "default");
|
|
@@ -32155,13 +33747,13 @@ const FormStateDropdown = ({
|
|
|
32155
33747
|
});
|
|
32156
33748
|
};
|
|
32157
33749
|
|
|
32158
|
-
const onBackground = ""
|
|
32159
|
-
const disabledBackground = ""
|
|
32160
|
-
const white = ""
|
|
32161
|
-
const offBackground = ""
|
|
33750
|
+
const onBackground = "" + MATISSE_BLUE;
|
|
33751
|
+
const disabledBackground = "" + IRON_GREY;
|
|
33752
|
+
const white = "" + WHITE;
|
|
33753
|
+
const offBackground = "" + REGENT_GREY;
|
|
32162
33754
|
const labelStyles = "\n display: flex;\n justify-content: flex-start;\n align-items: center;\n";
|
|
32163
|
-
const rightLabelStyles = "\n "
|
|
32164
|
-
const leftLabelStyles = "\n "
|
|
33755
|
+
const rightLabelStyles = "\n " + labelStyles + "\n flex-direction: row;\n";
|
|
33756
|
+
const leftLabelStyles = "\n " + labelStyles + "\n flex-direction: row-reverse;\n";
|
|
32165
33757
|
const fallbackValues$u = {
|
|
32166
33758
|
onBackground,
|
|
32167
33759
|
disabledBackground,
|
|
@@ -32308,11 +33900,11 @@ const ToggleSwitch = ({
|
|
|
32308
33900
|
checked: isOn,
|
|
32309
33901
|
onChange: disabled ? noop : onToggle,
|
|
32310
33902
|
disabled: disabled,
|
|
32311
|
-
id: "#toggle-"
|
|
33903
|
+
id: "#toggle-" + name,
|
|
32312
33904
|
isMobile: isMobile
|
|
32313
33905
|
}), /*#__PURE__*/React.createElement(VisibleSwitch, {
|
|
32314
33906
|
name: name,
|
|
32315
|
-
htmlFor: "#toggle-"
|
|
33907
|
+
htmlFor: "#toggle-" + name,
|
|
32316
33908
|
onClick: disabled ? noop : onToggle,
|
|
32317
33909
|
onKeyDown: disabled ? noop : handleKeyDown,
|
|
32318
33910
|
pose: disabled ? "disabled" : isOn ? "on" : "off",
|
|
@@ -32329,10 +33921,10 @@ const ToggleSwitch = ({
|
|
|
32329
33921
|
|
|
32330
33922
|
var ToggleSwitch$1 = themeComponent(ToggleSwitch, "ToggleSwitch", fallbackValues$u);
|
|
32331
33923
|
|
|
32332
|
-
const background$1 = ""
|
|
32333
|
-
const white$1 = ""
|
|
33924
|
+
const background$1 = "" + ATHENS_GREY;
|
|
33925
|
+
const white$1 = "" + WHITE;
|
|
32334
33926
|
const black = "#000";
|
|
32335
|
-
const focusBorder = ""
|
|
33927
|
+
const focusBorder = "" + MATISSE_BLUE;
|
|
32336
33928
|
const themeValues = {
|
|
32337
33929
|
background: background$1,
|
|
32338
33930
|
white: white$1,
|
|
@@ -32864,20 +34456,20 @@ function isPlainObject(value) {
|
|
|
32864
34456
|
}
|
|
32865
34457
|
var assign = Object.assign || function assign(target, value) {
|
|
32866
34458
|
for (var key in value) {
|
|
32867
|
-
if (has(value, key)) {
|
|
34459
|
+
if (has$1(value, key)) {
|
|
32868
34460
|
target[key] = value[key];
|
|
32869
34461
|
}
|
|
32870
34462
|
}
|
|
32871
34463
|
|
|
32872
34464
|
return target;
|
|
32873
34465
|
};
|
|
32874
|
-
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;
|
|
34466
|
+
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;
|
|
32875
34467
|
function shallowCopy(base, invokeGetters) {
|
|
32876
34468
|
if ( invokeGetters === void 0 ) invokeGetters = false;
|
|
32877
34469
|
|
|
32878
34470
|
if (Array.isArray(base)) { return base.slice(); }
|
|
32879
34471
|
var clone = Object.create(Object.getPrototypeOf(base));
|
|
32880
|
-
ownKeys(base).forEach(function (key) {
|
|
34472
|
+
ownKeys$1(base).forEach(function (key) {
|
|
32881
34473
|
if (key === DRAFT_STATE) {
|
|
32882
34474
|
return; // Never copy over draft state.
|
|
32883
34475
|
}
|
|
@@ -32909,14 +34501,14 @@ function each(value, cb) {
|
|
|
32909
34501
|
if (Array.isArray(value)) {
|
|
32910
34502
|
for (var i = 0; i < value.length; i++) { cb(i, value[i], value); }
|
|
32911
34503
|
} else {
|
|
32912
|
-
ownKeys(value).forEach(function (key) { return cb(key, value[key], value); });
|
|
34504
|
+
ownKeys$1(value).forEach(function (key) { return cb(key, value[key], value); });
|
|
32913
34505
|
}
|
|
32914
34506
|
}
|
|
32915
34507
|
function isEnumerable(base, prop) {
|
|
32916
34508
|
var desc = Object.getOwnPropertyDescriptor(base, prop);
|
|
32917
34509
|
return !!desc && desc.enumerable;
|
|
32918
34510
|
}
|
|
32919
|
-
function has(thing, prop) {
|
|
34511
|
+
function has$1(thing, prop) {
|
|
32920
34512
|
return Object.prototype.hasOwnProperty.call(thing, prop);
|
|
32921
34513
|
}
|
|
32922
34514
|
function is(x, y) {
|
|
@@ -32980,7 +34572,7 @@ function revoke(draft) {
|
|
|
32980
34572
|
|
|
32981
34573
|
// but share them all instead
|
|
32982
34574
|
|
|
32983
|
-
var descriptors = {};
|
|
34575
|
+
var descriptors$1 = {};
|
|
32984
34576
|
function willFinalize(scope, result, isReplaced) {
|
|
32985
34577
|
scope.drafts.forEach(function (draft) {
|
|
32986
34578
|
draft[DRAFT_STATE].finalizing = true;
|
|
@@ -33048,7 +34640,7 @@ function peek(draft, prop) {
|
|
|
33048
34640
|
return draft[prop];
|
|
33049
34641
|
}
|
|
33050
34642
|
|
|
33051
|
-
function get(state, prop) {
|
|
34643
|
+
function get$1(state, prop) {
|
|
33052
34644
|
assertUnrevoked(state);
|
|
33053
34645
|
var value = peek(source(state), prop);
|
|
33054
34646
|
if (state.finalizing) { return value; } // Create a draft if the value is unmodified.
|
|
@@ -33099,17 +34691,17 @@ function clonePotentialDraft(base) {
|
|
|
33099
34691
|
}
|
|
33100
34692
|
|
|
33101
34693
|
function proxyProperty(draft, prop, enumerable) {
|
|
33102
|
-
var desc = descriptors[prop];
|
|
34694
|
+
var desc = descriptors$1[prop];
|
|
33103
34695
|
|
|
33104
34696
|
if (desc) {
|
|
33105
34697
|
desc.enumerable = enumerable;
|
|
33106
34698
|
} else {
|
|
33107
|
-
descriptors[prop] = desc = {
|
|
34699
|
+
descriptors$1[prop] = desc = {
|
|
33108
34700
|
configurable: true,
|
|
33109
34701
|
enumerable: enumerable,
|
|
33110
34702
|
|
|
33111
|
-
get: function get$1() {
|
|
33112
|
-
return get(this[DRAFT_STATE], prop);
|
|
34703
|
+
get: function get$1$1() {
|
|
34704
|
+
return get$1(this[DRAFT_STATE], prop);
|
|
33113
34705
|
},
|
|
33114
34706
|
|
|
33115
34707
|
set: function set$1$1(value) {
|
|
@@ -33155,7 +34747,7 @@ function markChangesRecursively(object) {
|
|
|
33155
34747
|
// Look for added keys.
|
|
33156
34748
|
Object.keys(draft).forEach(function (key) {
|
|
33157
34749
|
// The `undefined` check is a fast path for pre-existing keys.
|
|
33158
|
-
if (base[key] === undefined && !has(base, key)) {
|
|
34750
|
+
if (base[key] === undefined && !has$1(base, key)) {
|
|
33159
34751
|
assigned[key] = true;
|
|
33160
34752
|
markChanged(state);
|
|
33161
34753
|
} else if (!assigned[key]) {
|
|
@@ -33166,7 +34758,7 @@ function markChangesRecursively(object) {
|
|
|
33166
34758
|
|
|
33167
34759
|
Object.keys(base).forEach(function (key) {
|
|
33168
34760
|
// The `undefined` check is a fast path for pre-existing keys.
|
|
33169
|
-
if (draft[key] === undefined && !has(draft, key)) {
|
|
34761
|
+
if (draft[key] === undefined && !has$1(draft, key)) {
|
|
33170
34762
|
assigned[key] = false;
|
|
33171
34763
|
markChanged(state);
|
|
33172
34764
|
}
|
|
@@ -33199,7 +34791,7 @@ function hasObjectChanges(state) {
|
|
|
33199
34791
|
var key = keys[i];
|
|
33200
34792
|
var baseValue = base[key]; // The `undefined` check is a fast path for pre-existing keys.
|
|
33201
34793
|
|
|
33202
|
-
if (baseValue === undefined && !has(base, key)) {
|
|
34794
|
+
if (baseValue === undefined && !has$1(base, key)) {
|
|
33203
34795
|
return true;
|
|
33204
34796
|
} // Once a base key is deleted, future changes go undetected, because its
|
|
33205
34797
|
// descriptor is erased. This branch detects any missed changes.
|
|
@@ -33284,7 +34876,7 @@ function createProxy$1(base, parent) {
|
|
|
33284
34876
|
return proxy;
|
|
33285
34877
|
}
|
|
33286
34878
|
var objectTraps = {
|
|
33287
|
-
get: get$1,
|
|
34879
|
+
get: get$1$1,
|
|
33288
34880
|
|
|
33289
34881
|
has: function has(target, prop) {
|
|
33290
34882
|
return prop in source$1(target);
|
|
@@ -33296,7 +34888,7 @@ var objectTraps = {
|
|
|
33296
34888
|
|
|
33297
34889
|
set: set$1$1,
|
|
33298
34890
|
deleteProperty: deleteProperty,
|
|
33299
|
-
getOwnPropertyDescriptor: getOwnPropertyDescriptor,
|
|
34891
|
+
getOwnPropertyDescriptor: getOwnPropertyDescriptor$2,
|
|
33300
34892
|
|
|
33301
34893
|
defineProperty: function defineProperty() {
|
|
33302
34894
|
throw new Error("Object.defineProperty() cannot be used on an Immer draft"); // prettier-ignore
|
|
@@ -33347,11 +34939,11 @@ function peek$1(draft, prop) {
|
|
|
33347
34939
|
return desc && desc.value;
|
|
33348
34940
|
}
|
|
33349
34941
|
|
|
33350
|
-
function get$1(state, prop) {
|
|
34942
|
+
function get$1$1(state, prop) {
|
|
33351
34943
|
if (prop === DRAFT_STATE) { return state; }
|
|
33352
34944
|
var drafts = state.drafts; // Check for existing draft in unmodified state.
|
|
33353
34945
|
|
|
33354
|
-
if (!state.modified && has(drafts, prop)) {
|
|
34946
|
+
if (!state.modified && has$1(drafts, prop)) {
|
|
33355
34947
|
return drafts[prop];
|
|
33356
34948
|
}
|
|
33357
34949
|
|
|
@@ -33404,7 +34996,7 @@ function deleteProperty(state, prop) {
|
|
|
33404
34996
|
// the same guarantee in ES5 mode.
|
|
33405
34997
|
|
|
33406
34998
|
|
|
33407
|
-
function getOwnPropertyDescriptor(state, prop) {
|
|
34999
|
+
function getOwnPropertyDescriptor$2(state, prop) {
|
|
33408
35000
|
var owner = source$1(state);
|
|
33409
35001
|
var desc = Reflect.getOwnPropertyDescriptor(owner, prop);
|
|
33410
35002
|
|
|
@@ -33823,7 +35415,7 @@ Immer.prototype.finalize = function finalize (draft, path, scope) {
|
|
|
33823
35415
|
var base = state.base;
|
|
33824
35416
|
var copy = state.copy;
|
|
33825
35417
|
each(base, function (prop) {
|
|
33826
|
-
if (!has(copy, prop)) { this$1$1.onDelete(state, prop); }
|
|
35418
|
+
if (!has$1(copy, prop)) { this$1$1.onDelete(state, prop); }
|
|
33827
35419
|
});
|
|
33828
35420
|
}
|
|
33829
35421
|
}
|
|
@@ -34002,7 +35594,7 @@ const createInitialState = formConfig => {
|
|
|
34002
35594
|
};
|
|
34003
35595
|
|
|
34004
35596
|
const SET = "field/SET";
|
|
34005
|
-
const set = fieldName => value => ({
|
|
35597
|
+
const set$2 = fieldName => value => ({
|
|
34006
35598
|
type: SET,
|
|
34007
35599
|
payload: { fieldName, value }
|
|
34008
35600
|
});
|
|
@@ -34082,7 +35674,7 @@ const createMapDispatchToProps = formConfig => {
|
|
|
34082
35674
|
const keys = Object.keys(formConfig);
|
|
34083
35675
|
for (let fieldName of keys) {
|
|
34084
35676
|
dispatchObj.fields[fieldName] = {
|
|
34085
|
-
set: value => dispatch(set(fieldName)(value)),
|
|
35677
|
+
set: value => dispatch(set$2(fieldName)(value)),
|
|
34086
35678
|
addValidator: validator => dispatch(addValidator(fieldName)(validator))
|
|
34087
35679
|
};
|
|
34088
35680
|
}
|
|
@@ -34385,6 +35977,72 @@ ChangePasswordForm.reducer = reducer$1;
|
|
|
34385
35977
|
ChangePasswordForm.mapStateToProps = mapStateToProps$2;
|
|
34386
35978
|
ChangePasswordForm.mapDispatchToProps = mapDispatchToProps$1;
|
|
34387
35979
|
|
|
35980
|
+
var MATCH = wellKnownSymbol('match');
|
|
35981
|
+
|
|
35982
|
+
// `IsRegExp` abstract operation
|
|
35983
|
+
// https://tc39.es/ecma262/#sec-isregexp
|
|
35984
|
+
var isRegexp = function (it) {
|
|
35985
|
+
var isRegExp;
|
|
35986
|
+
return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classofRaw(it) == 'RegExp');
|
|
35987
|
+
};
|
|
35988
|
+
|
|
35989
|
+
var REPLACE$1 = wellKnownSymbol('replace');
|
|
35990
|
+
var RegExpPrototype$1 = RegExp.prototype;
|
|
35991
|
+
var max$2 = Math.max;
|
|
35992
|
+
|
|
35993
|
+
var stringIndexOf = function (string, searchValue, fromIndex) {
|
|
35994
|
+
if (fromIndex > string.length) return -1;
|
|
35995
|
+
if (searchValue === '') return fromIndex;
|
|
35996
|
+
return string.indexOf(searchValue, fromIndex);
|
|
35997
|
+
};
|
|
35998
|
+
|
|
35999
|
+
// `String.prototype.replaceAll` method
|
|
36000
|
+
// https://tc39.es/ecma262/#sec-string.prototype.replaceall
|
|
36001
|
+
_export({ target: 'String', proto: true }, {
|
|
36002
|
+
replaceAll: function replaceAll(searchValue, replaceValue) {
|
|
36003
|
+
var O = requireObjectCoercible(this);
|
|
36004
|
+
var IS_REG_EXP, flags, replacer, string, searchString, functionalReplace, searchLength, advanceBy, replacement;
|
|
36005
|
+
var position = 0;
|
|
36006
|
+
var endOfLastMatch = 0;
|
|
36007
|
+
var result = '';
|
|
36008
|
+
if (searchValue != null) {
|
|
36009
|
+
IS_REG_EXP = isRegexp(searchValue);
|
|
36010
|
+
if (IS_REG_EXP) {
|
|
36011
|
+
flags = toString_1(requireObjectCoercible('flags' in RegExpPrototype$1
|
|
36012
|
+
? searchValue.flags
|
|
36013
|
+
: regexpFlags.call(searchValue)
|
|
36014
|
+
));
|
|
36015
|
+
if (!~flags.indexOf('g')) throw TypeError('`.replaceAll` does not allow non-global regexes');
|
|
36016
|
+
}
|
|
36017
|
+
replacer = getMethod(searchValue, REPLACE$1);
|
|
36018
|
+
if (replacer) {
|
|
36019
|
+
return replacer.call(searchValue, O, replaceValue);
|
|
36020
|
+
}
|
|
36021
|
+
}
|
|
36022
|
+
string = toString_1(O);
|
|
36023
|
+
searchString = toString_1(searchValue);
|
|
36024
|
+
functionalReplace = isCallable(replaceValue);
|
|
36025
|
+
if (!functionalReplace) replaceValue = toString_1(replaceValue);
|
|
36026
|
+
searchLength = searchString.length;
|
|
36027
|
+
advanceBy = max$2(1, searchLength);
|
|
36028
|
+
position = stringIndexOf(string, searchString, 0);
|
|
36029
|
+
while (position !== -1) {
|
|
36030
|
+
if (functionalReplace) {
|
|
36031
|
+
replacement = toString_1(replaceValue(searchString, position, string));
|
|
36032
|
+
} else {
|
|
36033
|
+
replacement = getSubstitution(searchString, string, position, [], undefined, replaceValue);
|
|
36034
|
+
}
|
|
36035
|
+
result += string.slice(endOfLastMatch, position) + replacement;
|
|
36036
|
+
endOfLastMatch = position + searchLength;
|
|
36037
|
+
position = stringIndexOf(string, searchString, position + advanceBy);
|
|
36038
|
+
}
|
|
36039
|
+
if (endOfLastMatch < string.length) {
|
|
36040
|
+
result += string.slice(endOfLastMatch);
|
|
36041
|
+
}
|
|
36042
|
+
return result;
|
|
36043
|
+
}
|
|
36044
|
+
});
|
|
36045
|
+
|
|
34388
36046
|
const titleColor = "#292A33";
|
|
34389
36047
|
const headingBackgroundColor = "transparent";
|
|
34390
36048
|
const bodyBackgroundColor = "transparent";
|
|
@@ -34422,7 +36080,7 @@ const CollapsibleSection = ({
|
|
|
34422
36080
|
|
|
34423
36081
|
const numChildren = typeof children === "Array" ? children.length : 1;
|
|
34424
36082
|
const label = name !== "" ? name : !customTitle ? title : "collapsible section";
|
|
34425
|
-
const id =
|
|
36083
|
+
const id = (label == null ? void 0 : (_label$replaceAll = label.replaceAll(" ", "-")) == null ? void 0 : _label$replaceAll.toLowerCase()) + "-" + index;
|
|
34426
36084
|
const wrapper = {
|
|
34427
36085
|
open: {
|
|
34428
36086
|
height: openHeight,
|
|
@@ -34476,7 +36134,7 @@ const CollapsibleSection = ({
|
|
|
34476
36134
|
role: "button",
|
|
34477
36135
|
"aria-expanded": isOpen.toString(),
|
|
34478
36136
|
"aria-controls": id,
|
|
34479
|
-
id:
|
|
36137
|
+
id: id + "-button"
|
|
34480
36138
|
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
34481
36139
|
justify: "space-between",
|
|
34482
36140
|
align: "center"
|
|
@@ -34502,9 +36160,9 @@ const CollapsibleSection = ({
|
|
|
34502
36160
|
exit: "closed",
|
|
34503
36161
|
variants: wrapper,
|
|
34504
36162
|
extraStyles: "transform-origin: 100% 0; overflow-y: hidden;",
|
|
34505
|
-
id:
|
|
36163
|
+
id: id + "-content",
|
|
34506
36164
|
role: "region",
|
|
34507
|
-
"aria-labelledby":
|
|
36165
|
+
"aria-labelledby": id + "-button"
|
|
34508
36166
|
}, children))));
|
|
34509
36167
|
};
|
|
34510
36168
|
|
|
@@ -34602,7 +36260,7 @@ const EditableList = ({
|
|
|
34602
36260
|
as = "p",
|
|
34603
36261
|
qaPrefix
|
|
34604
36262
|
}) => {
|
|
34605
|
-
const addText = "Add a"
|
|
36263
|
+
const addText = "Add a" + (itemName[0].match(/[aieouAIEOU]/) ? "n" : "") + " " + itemName;
|
|
34606
36264
|
return /*#__PURE__*/React.createElement(Box, {
|
|
34607
36265
|
padding: "0rem 0rem 1.5rem 0rem",
|
|
34608
36266
|
as: "section",
|
|
@@ -34624,9 +36282,9 @@ const EditableList = ({
|
|
|
34624
36282
|
var _item$expirationStatu;
|
|
34625
36283
|
|
|
34626
36284
|
const [modalOpen, toggleModal] = useState(false);
|
|
34627
|
-
const expiredItem = (_item$expirationStatu = item
|
|
36285
|
+
const expiredItem = (_item$expirationStatu = item == null ? void 0 : item.expirationStatus) != null ? _item$expirationStatu : ACTIVE$1;
|
|
34628
36286
|
return /*#__PURE__*/React.createElement(EditableListItem, {
|
|
34629
|
-
listItemSize: !!item.id && autoPayMethods
|
|
36287
|
+
listItemSize: !!item.id && autoPayMethods != null && autoPayMethods.some(methodID => methodID === item.id) ? "big" : listItemSize,
|
|
34630
36288
|
key: item.id || item,
|
|
34631
36289
|
disabled: expiredItem === EXPIRED$1
|
|
34632
36290
|
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
@@ -34636,13 +36294,13 @@ const EditableList = ({
|
|
|
34636
36294
|
variant: "p",
|
|
34637
36295
|
color: STORM_GREY,
|
|
34638
36296
|
extraStyles: "font-style: italic;",
|
|
34639
|
-
key: "Default "
|
|
36297
|
+
key: "Default " + itemName
|
|
34640
36298
|
}, "Default ", itemName), canRemove && /*#__PURE__*/React.createElement(Box, {
|
|
34641
36299
|
padding: "0 0.5rem",
|
|
34642
36300
|
border: "2px solid transparent",
|
|
34643
|
-
extraStyles: ":not(:first-child) { border-left: 2px solid "
|
|
36301
|
+
extraStyles: ":not(:first-child) { border-left: 2px solid " + BOSTON_BLUE + ";}",
|
|
34644
36302
|
dataQa: qaPrefix + " Remove",
|
|
34645
|
-
key: "Remove "
|
|
36303
|
+
key: "Remove " + item.id
|
|
34646
36304
|
}, useModal ? /*#__PURE__*/React.createElement(Modal, _extends({
|
|
34647
36305
|
item: { ...item
|
|
34648
36306
|
}
|
|
@@ -34654,19 +36312,19 @@ const EditableList = ({
|
|
|
34654
36312
|
text: "Remove",
|
|
34655
36313
|
action: () => removeItem(item.id),
|
|
34656
36314
|
extraStyles: "min-width: 0;",
|
|
34657
|
-
"aria-label": "Remove "
|
|
36315
|
+
"aria-label": "Remove " + itemName
|
|
34658
36316
|
})), canEdit && /*#__PURE__*/React.createElement(Box, {
|
|
34659
36317
|
padding: "0 0.5rem",
|
|
34660
36318
|
border: "2px solid transparent",
|
|
34661
|
-
extraStyles: ":not(:first-child) { border-left: 2px solid "
|
|
36319
|
+
extraStyles: ":not(:first-child) { border-left: 2px solid " + BOSTON_BLUE + ";}",
|
|
34662
36320
|
dataQa: qaPrefix + " Edit",
|
|
34663
|
-
key: "Edit "
|
|
36321
|
+
key: "Edit " + item.id
|
|
34664
36322
|
}, /*#__PURE__*/React.createElement(ButtonWithAction, {
|
|
34665
36323
|
variant: "smallGhost",
|
|
34666
36324
|
text: "Edit",
|
|
34667
36325
|
action: () => editItem(item.id),
|
|
34668
36326
|
extraStyles: "min-width: 0;",
|
|
34669
|
-
"aria-label": "Edit "
|
|
36327
|
+
"aria-label": "Edit " + itemName
|
|
34670
36328
|
}))));
|
|
34671
36329
|
})), canAdd && (!maxItems || items.length < maxItems) && /*#__PURE__*/React.createElement(Box, {
|
|
34672
36330
|
padding: items.length === 0 ? "0" : "1rem 0 0"
|
|
@@ -34774,7 +36432,7 @@ const TableListItem = ({
|
|
|
34774
36432
|
borderTopItem
|
|
34775
36433
|
}) => /*#__PURE__*/React.createElement(Box, {
|
|
34776
36434
|
padding: "0px",
|
|
34777
|
-
extraStyles: "&:last-child {\n > * {\n border-bottom: none;\n }\n }\n "
|
|
36435
|
+
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 "
|
|
34778
36436
|
}, /*#__PURE__*/React.createElement(ItemWrapper, null, /*#__PURE__*/React.createElement(EditableTableListItem, {
|
|
34779
36437
|
isMobile: isMobile
|
|
34780
36438
|
}, /*#__PURE__*/React.createElement(TableItemKey, {
|
|
@@ -36896,7 +38554,7 @@ var tabbable_1 = tabbable;
|
|
|
36896
38554
|
|
|
36897
38555
|
var immutable = extend;
|
|
36898
38556
|
|
|
36899
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
38557
|
+
var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
36900
38558
|
|
|
36901
38559
|
function extend() {
|
|
36902
38560
|
var target = {};
|
|
@@ -36905,7 +38563,7 @@ function extend() {
|
|
|
36905
38563
|
var source = arguments[i];
|
|
36906
38564
|
|
|
36907
38565
|
for (var key in source) {
|
|
36908
|
-
if (hasOwnProperty.call(source, key)) {
|
|
38566
|
+
if (hasOwnProperty$1.call(source, key)) {
|
|
36909
38567
|
target[key] = source[key];
|
|
36910
38568
|
}
|
|
36911
38569
|
}
|
|
@@ -37915,7 +39573,7 @@ const Modal$1 = ({
|
|
|
37915
39573
|
borderWidthOverride: noBorder && "0 0 2px 0",
|
|
37916
39574
|
borderColor: !noBorder && SILVER_GREY,
|
|
37917
39575
|
padding: !noBorder && "0 0 1.5rem 0",
|
|
37918
|
-
extraStyles: maxHeight ? "max-height: "
|
|
39576
|
+
extraStyles: maxHeight ? "max-height: " + maxHeight + "; overflow: auto;" : ""
|
|
37919
39577
|
}, defaultWrapper ? /*#__PURE__*/React.createElement(Paragraph$1, {
|
|
37920
39578
|
variant: "p"
|
|
37921
39579
|
}, modalBodyText) : /*#__PURE__*/React.createElement(Box, {
|
|
@@ -38074,12 +39732,12 @@ const Module = ({
|
|
|
38074
39732
|
return /*#__PURE__*/React.createElement(Fragment, null, heading && /*#__PURE__*/React.createElement(Title$1, {
|
|
38075
39733
|
weight: themeValues.fontWeight,
|
|
38076
39734
|
color: themeValues.fontColor,
|
|
38077
|
-
margin:
|
|
39735
|
+
margin: spacing + " 0 " + themeValues.titleSpacing + " 0",
|
|
38078
39736
|
textAlign: themeValues.textAlign,
|
|
38079
39737
|
as: computedElemType,
|
|
38080
|
-
extraStyles: "font-size: "
|
|
39738
|
+
extraStyles: "font-size: " + computedFontSize + ";"
|
|
38081
39739
|
}, heading), /*#__PURE__*/React.createElement(Box, {
|
|
38082
|
-
padding: "0 0 "
|
|
39740
|
+
padding: "0 0 " + spacingBottom
|
|
38083
39741
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
38084
39742
|
padding: padding,
|
|
38085
39743
|
background: themeValues.backgroundColor,
|
|
@@ -38115,7 +39773,7 @@ const NavMenuDesktop = ({
|
|
|
38115
39773
|
onBlur,
|
|
38116
39774
|
themeValues
|
|
38117
39775
|
}) => {
|
|
38118
|
-
const menuCarat = "&:after { bottom: 100%; right: 10px; border: solid transparent; content: \" \"; height: 0; width: 0; position: absolute; pointer-events: none; border-color: "
|
|
39776
|
+
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; }";
|
|
38119
39777
|
return /*#__PURE__*/React.createElement(Imposter, {
|
|
38120
39778
|
id: id,
|
|
38121
39779
|
breakout: true,
|
|
@@ -38125,10 +39783,10 @@ const NavMenuDesktop = ({
|
|
|
38125
39783
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
38126
39784
|
minWidth: "240px",
|
|
38127
39785
|
padding: "1rem 0.5rem",
|
|
38128
|
-
extraStyles: "position: relative; "
|
|
39786
|
+
extraStyles: "position: relative; " + menuCarat,
|
|
38129
39787
|
background: themeValues.backgroundColor,
|
|
38130
39788
|
borderRadius: "5px",
|
|
38131
|
-
boxShadow: "0px 1px 8px -1px rgba(0, 0, 0, 0.3), 0px 1px 4px 0px "
|
|
39789
|
+
boxShadow: "0px 1px 8px -1px rgba(0, 0, 0, 0.3), 0px 1px 4px 0px " + themeValues.shadowColor + ", 0px 7px 32px 0px " + themeValues.shadowColor,
|
|
38132
39790
|
onMouseEnter: onMouseEnter,
|
|
38133
39791
|
onMouseLeave: onMouseLeave,
|
|
38134
39792
|
onFocus: onFocus,
|
|
@@ -38205,8 +39863,8 @@ const IconsModule = ({
|
|
|
38205
39863
|
if (typeof icon === "object") {
|
|
38206
39864
|
var _configIconMap$iconID;
|
|
38207
39865
|
|
|
38208
|
-
const iconID = customAttributes
|
|
38209
|
-
const iconMapValue = (_configIconMap$iconID = configIconMap
|
|
39866
|
+
const iconID = customAttributes == null ? void 0 : customAttributes[iconValue];
|
|
39867
|
+
const iconMapValue = (_configIconMap$iconID = configIconMap == null ? void 0 : configIconMap[iconID]) != null ? _configIconMap$iconID : iconDefault;
|
|
38210
39868
|
Icon = iconsMap[iconMapValue];
|
|
38211
39869
|
} else {
|
|
38212
39870
|
Icon = iconsMap[icon];
|
|
@@ -38270,24 +39928,24 @@ const AutopayModal = ({
|
|
|
38270
39928
|
}) => {
|
|
38271
39929
|
const planType = isPaymentPlan ? "Payment Plan" : "Autopay";
|
|
38272
39930
|
const modalExtraProps = {
|
|
38273
|
-
modalHeaderText: autoPayActive ? "Deactivate "
|
|
38274
|
-
modalBodyText: autoPayActive ? "Are you sure you want to deactivate "
|
|
38275
|
-
continueButtonText: autoPayActive ? "Disable "
|
|
39931
|
+
modalHeaderText: autoPayActive ? "Deactivate " + planType : "Set Up " + planType,
|
|
39932
|
+
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?",
|
|
39933
|
+
continueButtonText: autoPayActive ? "Disable " + planType : "Add to Profile",
|
|
38276
39934
|
useDangerButton: autoPayActive,
|
|
38277
39935
|
continueAction: autoPayActive ? () => {
|
|
38278
39936
|
deactivatePaymentSchedule(isPaymentPlan ? paymentPlanSchedule : autoPaySchedule, isPaymentPlan);
|
|
38279
39937
|
toggleModal(false);
|
|
38280
39938
|
} : navigateToSettings
|
|
38281
39939
|
};
|
|
38282
|
-
const hoverStyles = "\n &:hover {\n .autopayIcon { fill: "
|
|
38283
|
-
const activeStyles = "\n &:active {\n .autopayIcon { fill: "
|
|
38284
|
-
const defaultStyles = "\n .autopayIcon { fill: "
|
|
39940
|
+
const hoverStyles = "\n &:hover {\n .autopayIcon { fill: " + themeValues.hoverColor + "; text-decoration: underline; cursor: pointer; }\n }";
|
|
39941
|
+
const activeStyles = "\n &:active {\n .autopayIcon { fill: " + themeValues.activeColor + "; text-decoration: underline; }\n }";
|
|
39942
|
+
const defaultStyles = "\n .autopayIcon { fill: " + themeValues.color + "; text-decoration: underline; }\n ";
|
|
38285
39943
|
return /*#__PURE__*/React.createElement(Modal$1, _extends({
|
|
38286
39944
|
showModal: () => toggleModal(true),
|
|
38287
39945
|
hideModal: () => toggleModal(false),
|
|
38288
39946
|
modalOpen: modalOpen
|
|
38289
39947
|
}, modalExtraProps), buttonLinkType ? /*#__PURE__*/React.createElement(ButtonWithAction, {
|
|
38290
|
-
text: autoPayActive ? "Manage "
|
|
39948
|
+
text: autoPayActive ? "Manage " + planType : "Set Up " + planType,
|
|
38291
39949
|
variant: "tertiary",
|
|
38292
39950
|
action: () => {
|
|
38293
39951
|
toggleModal(true);
|
|
@@ -38315,12 +39973,12 @@ const AutopayModal = ({
|
|
|
38315
39973
|
e.key === "Enter" && toggleModal(true);
|
|
38316
39974
|
},
|
|
38317
39975
|
tabIndex: "0",
|
|
38318
|
-
dataQa:
|
|
39976
|
+
dataQa: planType + " On",
|
|
38319
39977
|
color: SEA_GREEN,
|
|
38320
39978
|
weight: themeValues.fontWeight,
|
|
38321
39979
|
hoverStyles: themeValues.modalLinkHoverFocus,
|
|
38322
39980
|
extraStyles: "padding-left: 0.25rem;"
|
|
38323
|
-
},
|
|
39981
|
+
}, planType + " " + nextAutopayDate))));
|
|
38324
39982
|
};
|
|
38325
39983
|
|
|
38326
39984
|
const AutopayModalModule = themeComponent(AutopayModal, "AutopayModal", fallbackValues$z);
|
|
@@ -38388,7 +40046,7 @@ const PaymentDetailsActions = ({
|
|
|
38388
40046
|
setDetailedObligation,
|
|
38389
40047
|
navigateToDetailedObligation
|
|
38390
40048
|
} = actions;
|
|
38391
|
-
const detailsSlug = config.type === "ACCOUNT" ? "/profile/accounts/details/"
|
|
40049
|
+
const detailsSlug = config.type === "ACCOUNT" ? "/profile/accounts/details/" + obligationSlug : "/profile/properties/details/" + obligationSlug;
|
|
38392
40050
|
|
|
38393
40051
|
const handleClick = obligations => {
|
|
38394
40052
|
setIsLoading(true);
|
|
@@ -38406,7 +40064,7 @@ const PaymentDetailsActions = ({
|
|
|
38406
40064
|
borderSize: "1px",
|
|
38407
40065
|
borderColor: GHOST_GREY,
|
|
38408
40066
|
borderWidthOverride: "1px 0 0 0",
|
|
38409
|
-
key:
|
|
40067
|
+
key: obligations[0].id + "-actions"
|
|
38410
40068
|
}, isMobile && /*#__PURE__*/React.createElement(Box, {
|
|
38411
40069
|
padding: "16px 24px",
|
|
38412
40070
|
borderSize: "1px",
|
|
@@ -38446,7 +40104,7 @@ const PaymentDetailsActions = ({
|
|
|
38446
40104
|
extraStyles: isMobile && "flex-grow: 1;"
|
|
38447
40105
|
}, autoPayAvailable && !autoPayEnabled ? /*#__PURE__*/React.createElement(ButtonWithAction, {
|
|
38448
40106
|
variant: "tertiary",
|
|
38449
|
-
text: "Set Up "
|
|
40107
|
+
text: "Set Up " + planType,
|
|
38450
40108
|
action: () => {
|
|
38451
40109
|
setDetailedObligation(obligations, config);
|
|
38452
40110
|
handleAutopayAction();
|
|
@@ -38510,13 +40168,13 @@ const Obligation = ({
|
|
|
38510
40168
|
return /*#__PURE__*/React.createElement(Box, {
|
|
38511
40169
|
padding: "0",
|
|
38512
40170
|
borderRadius: "4px",
|
|
38513
|
-
boxShadow: "0px 0px 5px 0px "
|
|
40171
|
+
boxShadow: "0px 0px 5px 0px " + GHOST_GREY
|
|
38514
40172
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
38515
40173
|
background: WHITE
|
|
38516
40174
|
}, /*#__PURE__*/React.createElement(Stack, {
|
|
38517
40175
|
childGap: "14px"
|
|
38518
40176
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
38519
|
-
key:
|
|
40177
|
+
key: obligations[0].id + "-top",
|
|
38520
40178
|
padding: "0 8px",
|
|
38521
40179
|
minWidth: "100%"
|
|
38522
40180
|
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
@@ -38597,8 +40255,8 @@ const PartialAmountForm = ({
|
|
|
38597
40255
|
|
|
38598
40256
|
const amountErrors = {
|
|
38599
40257
|
[required.error]: "Amount is required",
|
|
38600
|
-
[numberGreaterThanOrEqualTo.error]: "There is a minimum payment of "
|
|
38601
|
-
[numberLessThanOrEqualTo.error]: "There is a maximum payment of "
|
|
40258
|
+
[numberGreaterThanOrEqualTo.error]: "There is a minimum payment of " + displayCurrency(minimum),
|
|
40259
|
+
[numberLessThanOrEqualTo.error]: "There is a maximum payment of " + displayCurrency(maximum)
|
|
38602
40260
|
};
|
|
38603
40261
|
const lineItemsNew = Array.isArray(lineItems) ? lineItems : [];
|
|
38604
40262
|
return /*#__PURE__*/React.createElement(FormContainer$1, {
|
|
@@ -38678,7 +40336,7 @@ const PrevNextButton = ({
|
|
|
38678
40336
|
action: action,
|
|
38679
40337
|
contentOverride: true,
|
|
38680
40338
|
dataQa: type,
|
|
38681
|
-
extraStyles: "\n min-width: 40px;\n min-height: 100%;\n max-height: 40px;\n padding: 6px;\n border-radius: 3px;\n background-color: "
|
|
40339
|
+
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 "
|
|
38682
40340
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
38683
40341
|
padding: "0",
|
|
38684
40342
|
extraStyles: type === "prev" && "transform: scaleX(-1)"
|
|
@@ -38749,7 +40407,7 @@ const Pagination = ({
|
|
|
38749
40407
|
numberColor: numberColor
|
|
38750
40408
|
}), getPagesPanel(currentPage, pageCount).map((item, index) => item.isButton ? /*#__PURE__*/React.createElement(Box, {
|
|
38751
40409
|
padding: "0",
|
|
38752
|
-
border: item.active && "1px solid "
|
|
40410
|
+
border: item.active && "1px solid " + (numberColor != null ? numberColor : MATISSE_BLUE),
|
|
38753
40411
|
borderRadius: item.active && "3px",
|
|
38754
40412
|
extraStyles: "max-height: 40px;"
|
|
38755
40413
|
}, /*#__PURE__*/React.createElement(ButtonWithAction, {
|
|
@@ -38761,7 +40419,7 @@ const Pagination = ({
|
|
|
38761
40419
|
pageNumber: item.index
|
|
38762
40420
|
}) : noop,
|
|
38763
40421
|
textExtraStyles: "font-size: 17px; font-weight: 900;",
|
|
38764
|
-
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: "
|
|
40422
|
+
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 ",
|
|
38765
40423
|
dataQa: index
|
|
38766
40424
|
}, item.index)) : /*#__PURE__*/React.createElement(Box, {
|
|
38767
40425
|
padding: "0 10px"
|
|
@@ -38771,7 +40429,7 @@ const Pagination = ({
|
|
|
38771
40429
|
key: index,
|
|
38772
40430
|
variant: "pXL",
|
|
38773
40431
|
weight: "900",
|
|
38774
|
-
color: numberColor
|
|
40432
|
+
color: numberColor != null ? numberColor : MATISSE_BLUE
|
|
38775
40433
|
}, "...")))), currentPage < pageCount && /*#__PURE__*/React.createElement(PrevNextButton, {
|
|
38776
40434
|
type: "next",
|
|
38777
40435
|
action: pageNext,
|
|
@@ -38876,7 +40534,7 @@ const PaymentDetailsContent = ({
|
|
|
38876
40534
|
variant: themeValues.labeledAmountTotal,
|
|
38877
40535
|
label: "Total",
|
|
38878
40536
|
amount: displayCurrency(total),
|
|
38879
|
-
extraStyles: variant === "small" && "font-weight: "
|
|
40537
|
+
extraStyles: variant === "small" && "font-weight: " + FONT_WEIGHT_BOLD + ";"
|
|
38880
40538
|
}));
|
|
38881
40539
|
|
|
38882
40540
|
const Collapsible = ({
|
|
@@ -39278,7 +40936,7 @@ const PaymentFormCard = ({
|
|
|
39278
40936
|
const creditCardNumberErrors = {
|
|
39279
40937
|
[required.error]: "Credit card number is required",
|
|
39280
40938
|
[hasLength.error]: "Credit card number is invalid",
|
|
39281
|
-
[matchesRegex.error]:
|
|
40939
|
+
[matchesRegex.error]: displayCardBrand(fields.creditCardNumber.rawValue) + " is not accepted"
|
|
39282
40940
|
};
|
|
39283
40941
|
const expirationDateErrors = {
|
|
39284
40942
|
[required.error]: "Expiration date is required",
|
|
@@ -39465,10 +41123,10 @@ PhoneForm.reducer = reducer$9;
|
|
|
39465
41123
|
PhoneForm.mapStateToProps = mapStateToProps$a;
|
|
39466
41124
|
PhoneForm.mapDispatchToProps = mapDispatchToProps$9;
|
|
39467
41125
|
|
|
39468
|
-
const headingBackgroundColor$1 = ""
|
|
39469
|
-
const headingDisabledColor = ""
|
|
41126
|
+
const headingBackgroundColor$1 = "" + WHITE;
|
|
41127
|
+
const headingDisabledColor = "" + ATHENS_GREY;
|
|
39470
41128
|
const bodyBackgroundColor$1 = "#eeeeee";
|
|
39471
|
-
const borderColor$3 = ""
|
|
41129
|
+
const borderColor$3 = "" + GREY_CHATEAU;
|
|
39472
41130
|
const focusStyles = "outline: none;";
|
|
39473
41131
|
const fallbackValues$C = {
|
|
39474
41132
|
headingBackgroundColor: headingBackgroundColor$1,
|
|
@@ -39516,7 +41174,7 @@ const RadioSection = ({
|
|
|
39516
41174
|
openHeight = "auto"
|
|
39517
41175
|
}) => {
|
|
39518
41176
|
const handleKeyDown = (id, e) => {
|
|
39519
|
-
if ((e
|
|
41177
|
+
if ((e == null ? void 0 : e.keyCode) === 13) {
|
|
39520
41178
|
toggleOpenSection(id);
|
|
39521
41179
|
}
|
|
39522
41180
|
};
|
|
@@ -39572,7 +41230,7 @@ const RadioSection = ({
|
|
|
39572
41230
|
}
|
|
39573
41231
|
}
|
|
39574
41232
|
};
|
|
39575
|
-
const borderStyles = "\n border-width: 0 0 1px 0;\n border-color: "
|
|
41233
|
+
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 ";
|
|
39576
41234
|
const RightIcon = styled.img.withConfig({
|
|
39577
41235
|
displayName: "RadioSection__RightIcon",
|
|
39578
41236
|
componentId: "sc-uema02-0"
|
|
@@ -39586,7 +41244,7 @@ const RadioSection = ({
|
|
|
39586
41244
|
const [focused, setFocused] = useState(null);
|
|
39587
41245
|
return /*#__PURE__*/React.createElement(Box, {
|
|
39588
41246
|
padding: "1px",
|
|
39589
|
-
border: "1px solid "
|
|
41247
|
+
border: "1px solid " + themeValues.borderColor,
|
|
39590
41248
|
borderRadius: "4px"
|
|
39591
41249
|
}, /*#__PURE__*/React.createElement(Stack, {
|
|
39592
41250
|
childGap: "0"
|
|
@@ -39598,7 +41256,7 @@ const RadioSection = ({
|
|
|
39598
41256
|
hoverStyles: themeValues.focusStyles,
|
|
39599
41257
|
animate: openSection === section.id ? "open" : "closed",
|
|
39600
41258
|
initial: initiallyOpen ? "open" : "closed",
|
|
39601
|
-
key: "item-"
|
|
41259
|
+
key: "item-" + section.id,
|
|
39602
41260
|
extraStyles: borderStyles
|
|
39603
41261
|
}, /*#__PURE__*/React.createElement(Stack, {
|
|
39604
41262
|
childGap: "0"
|
|
@@ -39607,7 +41265,7 @@ const RadioSection = ({
|
|
|
39607
41265
|
background: section.disabled ? themeValues.headingDisabledColor : themeValues.headingBackgroundColor,
|
|
39608
41266
|
onClick: isMobile && supportsTouch || section.disabled ? noop : () => toggleOpenSection(section.id),
|
|
39609
41267
|
onTouchEnd: isMobile && supportsTouch || !section.disabled ? () => toggleOpenSection(section.id) : noop,
|
|
39610
|
-
key: "header-"
|
|
41268
|
+
key: "header-" + section.id,
|
|
39611
41269
|
borderSize: "0px",
|
|
39612
41270
|
borderColor: themeValues.borderColor,
|
|
39613
41271
|
borderWidthOverride: openSection === section.id && !!section.content ? "0px 0px 1px 0px" : "",
|
|
@@ -39648,7 +41306,7 @@ const RadioSection = ({
|
|
|
39648
41306
|
}))), section.shouldDisplayCardExpiration && /*#__PURE__*/React.createElement(Fragment, null, renderCardStatus(section)))), /*#__PURE__*/React.createElement(AnimatePresence, {
|
|
39649
41307
|
initial: false
|
|
39650
41308
|
}, openSection === section.id && /*#__PURE__*/React.createElement(Motion, {
|
|
39651
|
-
key: "content-"
|
|
41309
|
+
key: "content-" + section.id,
|
|
39652
41310
|
padding: "0",
|
|
39653
41311
|
background: themeValues.bodyBackgroundColor,
|
|
39654
41312
|
layoutTransition: true,
|
|
@@ -39968,7 +41626,7 @@ const Tab = ({
|
|
|
39968
41626
|
margin: "0 0 -1px 0",
|
|
39969
41627
|
padding: "0.5rem 0.75rem",
|
|
39970
41628
|
background: activeTab === label ? WHITE : GRECIAN_GREY,
|
|
39971
|
-
extraStyles: "cursor: pointer; flex-grow: 1; text-align: center; "
|
|
41629
|
+
extraStyles: "cursor: pointer; flex-grow: 1; text-align: center; " + (activeTab === label ? "list-style: none;" : "")
|
|
39972
41630
|
}, /*#__PURE__*/React.createElement(Text$1, null, label));
|
|
39973
41631
|
};
|
|
39974
41632
|
|
|
@@ -40048,15 +41706,15 @@ const TabSidebar = ({
|
|
|
40048
41706
|
icon
|
|
40049
41707
|
}, index) => /*#__PURE__*/React.createElement(InternalLink, {
|
|
40050
41708
|
to: route,
|
|
40051
|
-
key:
|
|
40052
|
-
extraStyles: "&:hover {\n text-decoration: none; \n "
|
|
41709
|
+
key: route + "-" + index,
|
|
41710
|
+
extraStyles: "&:hover {\n text-decoration: none; \n " + (active ? "> * {\n background-color: " + themeValues.activeTabHover + ";\n }" : "> * { \n background-color: rgba(8, 27, 43, 0.05);\n }") + "}"
|
|
40053
41711
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
40054
41712
|
padding: isMobile ? "6px 4px" : "18px 16px",
|
|
40055
41713
|
background: active ? themeValues.activeTabBackground : "transparent",
|
|
40056
41714
|
borderSize: active ? "3px" : "1px",
|
|
40057
41715
|
borderColor: active ? themeValues.activeTabAccent : TRANSPARENT,
|
|
40058
41716
|
borderWidthOverride: "0 0 3px 0",
|
|
40059
|
-
boxShadow: active ? "0px 2px 4px 0px "
|
|
41717
|
+
boxShadow: active ? "0px 2px 4px 0px " + GHOST_GREY + ", 0px 2px 9px 1px " + GHOST_GREY : "0px 2px 4px 0px " + TRANSPARENT + ", 0px 2px 9px 1px " + TRANSPARENT,
|
|
40060
41718
|
minWidth: "100%",
|
|
40061
41719
|
borderRadius: "4px 4px 0 0"
|
|
40062
41720
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
@@ -40070,7 +41728,7 @@ const TabSidebar = ({
|
|
|
40070
41728
|
variant: isMobile ? "pXXS" : "pS",
|
|
40071
41729
|
weight: active ? FONT_WEIGHT_BOLD : FONT_WEIGHT_REGULAR,
|
|
40072
41730
|
color: active ? themeValues.activeTabAccent : BRIGHT_GREY,
|
|
40073
|
-
extraStyles: "text-transform: uppercase; "
|
|
41731
|
+
extraStyles: "text-transform: uppercase; " + (isMobile ? "width: 100%; padding-top: 4px;" : "padding-left: 8px;")
|
|
40074
41732
|
}, text))))))));
|
|
40075
41733
|
|
|
40076
41734
|
var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$E);
|
|
@@ -40131,7 +41789,7 @@ const TermsAndConditionsModal = ({
|
|
|
40131
41789
|
modalHeaderText: title,
|
|
40132
41790
|
modalBodyText: /*#__PURE__*/React.createElement(Box, {
|
|
40133
41791
|
background: themeValues.backgroundColor,
|
|
40134
|
-
border: "1px solid "
|
|
41792
|
+
border: "1px solid " + themeValues.border,
|
|
40135
41793
|
borderRadius: "3px",
|
|
40136
41794
|
extraStyles: "overflow: scroll; max-height: 20rem;"
|
|
40137
41795
|
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
@@ -40282,7 +41940,7 @@ const WorkflowTile = ({
|
|
|
40282
41940
|
slug
|
|
40283
41941
|
}) => /*#__PURE__*/React.createElement(Box, {
|
|
40284
41942
|
background: WHITE,
|
|
40285
|
-
boxShadow: "0px 0px 5px 0px "
|
|
41943
|
+
boxShadow: "0px 0px 5px 0px " + GHOST_GREY,
|
|
40286
41944
|
padding: 0
|
|
40287
41945
|
}, /*#__PURE__*/React.createElement(Stack, {
|
|
40288
41946
|
childGap: 0,
|
|
@@ -40312,7 +41970,7 @@ const WorkflowTile = ({
|
|
|
40312
41970
|
borderRadius: "0px",
|
|
40313
41971
|
text: workflowActionName,
|
|
40314
41972
|
minWidth: "100%",
|
|
40315
|
-
url: "/service/"
|
|
41973
|
+
url: "/service/" + slug,
|
|
40316
41974
|
extraStyles: "width: 100%;",
|
|
40317
41975
|
linkExtraStyles: "justify-content: center;"
|
|
40318
41976
|
}))));
|