@thecb/components 9.3.4-beta.0 → 9.3.5-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +328 -263
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +328 -263
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/checkbox/Checkbox.js +2 -1
- package/src/components/atoms/dropdown/Dropdown.js +3 -3
- package/src/components/atoms/labeled-amount/LabeledAmount.js +7 -32
- package/src/components/atoms/labeled-amount/LabeledAmount.stories.js +13 -0
- package/src/components/atoms/labeled-amount/LabeledAmount.theme.js +5 -1
- package/src/components/atoms/labeled-amount/LabeledAmountV1.js +37 -0
- package/src/components/atoms/labeled-amount/LabeledAmountV2.js +25 -0
- package/src/components/atoms/layouts/Motion.js +7 -10
- package/src/components/atoms/line-item/LineItem.js +21 -35
- package/src/components/atoms/line-item/LineItem.theme.js +2 -2
- package/src/components/atoms/toggle-switch/ToggleSwitch.js +2 -1
- package/src/components/molecules/account-and-routing-modal/AccountAndRoutingModal.js +3 -0
- package/src/components/molecules/collapsible-section/CollapsibleSection.js +2 -1
- package/src/components/molecules/modal/Modal.js +19 -4
- package/src/components/molecules/obligation/modules/AutopayModalModule.js +3 -13
- package/src/components/molecules/payment-details/PaymentDetails.js +14 -13
- package/src/components/molecules/payment-details/PaymentDetails.stories.js +36 -0
- package/src/components/molecules/payment-details/PaymentDetails.theme.js +2 -2
- package/src/components/molecules/payment-form-ach/PaymentFormACH.js +1 -0
- package/src/components/molecules/payment-form-card/PaymentFormCard.js +1 -0
- package/src/components/molecules/popover/Popover.js +2 -1
- package/src/components/molecules/radio-section/RadioSection.js +57 -15
- package/src/components/molecules/radio-section/radio-button/RadioButton.js +1 -1
- package/src/components/molecules/terms-and-conditions/TermsAndConditions.stories.js +19 -2
- package/src/components/molecules/terms-and-conditions/TermsAndConditionsControlV1.js +3 -1
- package/src/components/molecules/terms-and-conditions/TermsAndConditionsControlV2.js +3 -1
- package/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.js +5 -1
- package/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.stories.js +8 -3
- package/src/constants/keyboard.js +7 -0
- package/src/util/general.js +10 -0
- package/src/.DS_Store +0 -0
package/dist/index.cjs.js
CHANGED
|
@@ -6371,6 +6371,15 @@ var titleCaseString = function titleCaseString(string) {
|
|
|
6371
6371
|
var kebabCaseString = function kebabCaseString(string) {
|
|
6372
6372
|
return string === null || string === void 0 ? void 0 : string.replaceAll(" ", "-").toLowerCase();
|
|
6373
6373
|
};
|
|
6374
|
+
var wrapIndex = function wrapIndex(index, length) {
|
|
6375
|
+
if (index <= -1) {
|
|
6376
|
+
return length - 1;
|
|
6377
|
+
} else if (index >= length) {
|
|
6378
|
+
return 0;
|
|
6379
|
+
} else {
|
|
6380
|
+
return index;
|
|
6381
|
+
}
|
|
6382
|
+
};
|
|
6374
6383
|
|
|
6375
6384
|
var general = /*#__PURE__*/Object.freeze({
|
|
6376
6385
|
__proto__: null,
|
|
@@ -6391,7 +6400,8 @@ var general = /*#__PURE__*/Object.freeze({
|
|
|
6391
6400
|
throttle: throttle,
|
|
6392
6401
|
titleCaseWord: titleCaseWord,
|
|
6393
6402
|
titleCaseString: titleCaseString,
|
|
6394
|
-
kebabCaseString: kebabCaseString
|
|
6403
|
+
kebabCaseString: kebabCaseString,
|
|
6404
|
+
wrapIndex: wrapIndex
|
|
6395
6405
|
});
|
|
6396
6406
|
|
|
6397
6407
|
var _excluded$1 = ["themeValues", "weight", "color", "textWrap", "extraStyles", "hoverStyles", "onClick", "onKeyPress", "as", "dataQa", "children", "variant"];
|
|
@@ -12511,7 +12521,7 @@ var _excluded$f = ["position", "padding", "children"];
|
|
|
12511
12521
|
This should be sufficient for most scenarios, but if you need to, you have the ability to make Motion act like all of the other primitives using the props provided.
|
|
12512
12522
|
*/
|
|
12513
12523
|
|
|
12514
|
-
var Motion = function
|
|
12524
|
+
var Motion = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
12515
12525
|
var _ref$position = _ref.position,
|
|
12516
12526
|
position = _ref$position === void 0 ? "relative" : _ref$position,
|
|
12517
12527
|
_ref$padding = _ref.padding,
|
|
@@ -12521,9 +12531,10 @@ var Motion = function Motion(_ref) {
|
|
|
12521
12531
|
|
|
12522
12532
|
return /*#__PURE__*/React__default.createElement(MotionWrapper, _extends({
|
|
12523
12533
|
position: position,
|
|
12524
|
-
padding: padding
|
|
12534
|
+
padding: padding,
|
|
12535
|
+
ref: ref
|
|
12525
12536
|
}, rest), safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null)));
|
|
12526
|
-
};
|
|
12537
|
+
});
|
|
12527
12538
|
|
|
12528
12539
|
var ReelStyled = styled__default.div.withConfig({
|
|
12529
12540
|
displayName: "Reelstyled__ReelStyled",
|
|
@@ -22115,6 +22126,14 @@ var fallbackValues$d = {
|
|
|
22115
22126
|
disabledCheckedStyles: disabledCheckedStyles
|
|
22116
22127
|
};
|
|
22117
22128
|
|
|
22129
|
+
var ARROW_LEFT = 37;
|
|
22130
|
+
var ARROW_UP = 38;
|
|
22131
|
+
var ARROW_RIGHT = 39;
|
|
22132
|
+
var ARROW_DOWN = 40;
|
|
22133
|
+
var ENTER = 13;
|
|
22134
|
+
var ESCAPE = 27;
|
|
22135
|
+
var SPACEBAR = 32;
|
|
22136
|
+
|
|
22118
22137
|
var CheckboxContainer = styled__default.div.withConfig({
|
|
22119
22138
|
displayName: "Checkbox__CheckboxContainer",
|
|
22120
22139
|
componentId: "sc-36kqbv-0"
|
|
@@ -22185,7 +22204,7 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
22185
22204
|
setFocused = _useState2[1];
|
|
22186
22205
|
|
|
22187
22206
|
var handleClick = function handleClick(e, func) {
|
|
22188
|
-
if (
|
|
22207
|
+
if (e.keyCode === ENTER) {
|
|
22189
22208
|
func();
|
|
22190
22209
|
}
|
|
22191
22210
|
};
|
|
@@ -22475,18 +22494,17 @@ var DropdownIcon = function DropdownIcon() {
|
|
|
22475
22494
|
};
|
|
22476
22495
|
|
|
22477
22496
|
var check = function (it) {
|
|
22478
|
-
return it && it.Math
|
|
22497
|
+
return it && it.Math == Math && it;
|
|
22479
22498
|
};
|
|
22480
22499
|
|
|
22481
22500
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
22482
22501
|
var global_1 =
|
|
22483
|
-
// eslint-disable-next-line es/no-global-this -- safe
|
|
22502
|
+
// eslint-disable-next-line es-x/no-global-this -- safe
|
|
22484
22503
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
22485
22504
|
check(typeof window == 'object' && window) ||
|
|
22486
22505
|
// eslint-disable-next-line no-restricted-globals -- safe
|
|
22487
22506
|
check(typeof self == 'object' && self) ||
|
|
22488
22507
|
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
22489
|
-
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
22490
22508
|
// eslint-disable-next-line no-new-func -- fallback
|
|
22491
22509
|
(function () { return this; })() || Function('return this')();
|
|
22492
22510
|
|
|
@@ -22500,12 +22518,12 @@ var fails = function (exec) {
|
|
|
22500
22518
|
|
|
22501
22519
|
// Detect IE8's incomplete defineProperty implementation
|
|
22502
22520
|
var descriptors = !fails(function () {
|
|
22503
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
22504
|
-
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1]
|
|
22521
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
22522
|
+
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
22505
22523
|
});
|
|
22506
22524
|
|
|
22507
22525
|
var functionBindNative = !fails(function () {
|
|
22508
|
-
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
22526
|
+
// eslint-disable-next-line es-x/no-function-prototype-bind -- safe
|
|
22509
22527
|
var test = (function () { /* empty */ }).bind();
|
|
22510
22528
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
22511
22529
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
@@ -22518,7 +22536,7 @@ var functionCall = functionBindNative ? call.bind(call) : function () {
|
|
|
22518
22536
|
};
|
|
22519
22537
|
|
|
22520
22538
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
22521
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22539
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
22522
22540
|
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
22523
22541
|
|
|
22524
22542
|
// Nashorn ~ JDK8 bug
|
|
@@ -22545,11 +22563,14 @@ var createPropertyDescriptor = function (bitmap, value) {
|
|
|
22545
22563
|
};
|
|
22546
22564
|
|
|
22547
22565
|
var FunctionPrototype = Function.prototype;
|
|
22566
|
+
var bind$1 = FunctionPrototype.bind;
|
|
22548
22567
|
var call$1 = FunctionPrototype.call;
|
|
22549
|
-
var
|
|
22568
|
+
var uncurryThis = functionBindNative && bind$1.bind(call$1, call$1);
|
|
22550
22569
|
|
|
22551
|
-
var functionUncurryThis = functionBindNative ?
|
|
22552
|
-
return
|
|
22570
|
+
var functionUncurryThis = functionBindNative ? function (fn) {
|
|
22571
|
+
return fn && uncurryThis(fn);
|
|
22572
|
+
} : function (fn) {
|
|
22573
|
+
return fn && function () {
|
|
22553
22574
|
return call$1.apply(fn, arguments);
|
|
22554
22575
|
};
|
|
22555
22576
|
};
|
|
@@ -22570,21 +22591,15 @@ var indexedObject = fails(function () {
|
|
|
22570
22591
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
22571
22592
|
return !$Object('z').propertyIsEnumerable(0);
|
|
22572
22593
|
}) ? function (it) {
|
|
22573
|
-
return classofRaw(it)
|
|
22594
|
+
return classofRaw(it) == 'String' ? split(it, '') : $Object(it);
|
|
22574
22595
|
} : $Object;
|
|
22575
22596
|
|
|
22576
|
-
// we can't use just `it == null` since of `document.all` special case
|
|
22577
|
-
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
22578
|
-
var isNullOrUndefined = function (it) {
|
|
22579
|
-
return it === null || it === undefined;
|
|
22580
|
-
};
|
|
22581
|
-
|
|
22582
22597
|
var $TypeError = TypeError;
|
|
22583
22598
|
|
|
22584
22599
|
// `RequireObjectCoercible` abstract operation
|
|
22585
22600
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
22586
22601
|
var requireObjectCoercible = function (it) {
|
|
22587
|
-
if (
|
|
22602
|
+
if (it == undefined) throw $TypeError("Can't call method on " + it);
|
|
22588
22603
|
return it;
|
|
22589
22604
|
};
|
|
22590
22605
|
|
|
@@ -22596,32 +22611,13 @@ var toIndexedObject = function (it) {
|
|
|
22596
22611
|
return indexedObject(requireObjectCoercible(it));
|
|
22597
22612
|
};
|
|
22598
22613
|
|
|
22599
|
-
var documentAll = typeof document == 'object' && document.all;
|
|
22600
|
-
|
|
22601
|
-
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
22602
|
-
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
22603
|
-
var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
|
|
22604
|
-
|
|
22605
|
-
var documentAll_1 = {
|
|
22606
|
-
all: documentAll,
|
|
22607
|
-
IS_HTMLDDA: IS_HTMLDDA
|
|
22608
|
-
};
|
|
22609
|
-
|
|
22610
|
-
var documentAll$1 = documentAll_1.all;
|
|
22611
|
-
|
|
22612
22614
|
// `IsCallable` abstract operation
|
|
22613
22615
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
22614
|
-
var isCallable =
|
|
22615
|
-
return typeof argument == 'function' || argument === documentAll$1;
|
|
22616
|
-
} : function (argument) {
|
|
22616
|
+
var isCallable = function (argument) {
|
|
22617
22617
|
return typeof argument == 'function';
|
|
22618
22618
|
};
|
|
22619
22619
|
|
|
22620
|
-
var
|
|
22621
|
-
|
|
22622
|
-
var isObject = documentAll_1.IS_HTMLDDA ? function (it) {
|
|
22623
|
-
return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll$2;
|
|
22624
|
-
} : function (it) {
|
|
22620
|
+
var isObject = function (it) {
|
|
22625
22621
|
return typeof it == 'object' ? it !== null : isCallable(it);
|
|
22626
22622
|
};
|
|
22627
22623
|
|
|
@@ -22635,7 +22631,7 @@ var getBuiltIn = function (namespace, method) {
|
|
|
22635
22631
|
|
|
22636
22632
|
var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
|
|
22637
22633
|
|
|
22638
|
-
var engineUserAgent =
|
|
22634
|
+
var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
|
|
22639
22635
|
|
|
22640
22636
|
var process$1 = global_1.process;
|
|
22641
22637
|
var Deno = global_1.Deno;
|
|
@@ -22662,29 +22658,24 @@ if (!version && engineUserAgent) {
|
|
|
22662
22658
|
|
|
22663
22659
|
var engineV8Version = version;
|
|
22664
22660
|
|
|
22665
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
|
22661
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
22666
22662
|
|
|
22667
22663
|
|
|
22668
22664
|
|
|
22669
|
-
|
|
22670
|
-
var
|
|
22671
|
-
|
|
22672
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
22673
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
22674
|
-
var symbol = Symbol('symbol detection');
|
|
22665
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
|
22666
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
22667
|
+
var symbol = Symbol();
|
|
22675
22668
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
22676
22669
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
22677
|
-
|
|
22678
|
-
// of course, fail.
|
|
22679
|
-
return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
22670
|
+
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
22680
22671
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
22681
22672
|
!Symbol.sham && engineV8Version && engineV8Version < 41;
|
|
22682
22673
|
});
|
|
22683
22674
|
|
|
22684
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
|
22675
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
22685
22676
|
|
|
22686
22677
|
|
|
22687
|
-
var useSymbolAsUid =
|
|
22678
|
+
var useSymbolAsUid = nativeSymbol
|
|
22688
22679
|
&& !Symbol.sham
|
|
22689
22680
|
&& typeof Symbol.iterator == 'symbol';
|
|
22690
22681
|
|
|
@@ -22697,11 +22688,11 @@ var isSymbol = useSymbolAsUid ? function (it) {
|
|
|
22697
22688
|
return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, $Object$1(it));
|
|
22698
22689
|
};
|
|
22699
22690
|
|
|
22700
|
-
var $String
|
|
22691
|
+
var $String = String;
|
|
22701
22692
|
|
|
22702
22693
|
var tryToString = function (argument) {
|
|
22703
22694
|
try {
|
|
22704
|
-
return $String
|
|
22695
|
+
return $String(argument);
|
|
22705
22696
|
} catch (error) {
|
|
22706
22697
|
return 'Object';
|
|
22707
22698
|
}
|
|
@@ -22712,14 +22703,14 @@ var $TypeError$1 = TypeError;
|
|
|
22712
22703
|
// `Assert: IsCallable(argument) is true`
|
|
22713
22704
|
var aCallable = function (argument) {
|
|
22714
22705
|
if (isCallable(argument)) return argument;
|
|
22715
|
-
throw
|
|
22706
|
+
throw $TypeError$1(tryToString(argument) + ' is not a function');
|
|
22716
22707
|
};
|
|
22717
22708
|
|
|
22718
22709
|
// `GetMethod` abstract operation
|
|
22719
22710
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
22720
22711
|
var getMethod = function (V, P) {
|
|
22721
22712
|
var func = V[P];
|
|
22722
|
-
return
|
|
22713
|
+
return func == null ? undefined : aCallable(func);
|
|
22723
22714
|
};
|
|
22724
22715
|
|
|
22725
22716
|
var $TypeError$2 = TypeError;
|
|
@@ -22731,10 +22722,10 @@ var ordinaryToPrimitive = function (input, pref) {
|
|
|
22731
22722
|
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
|
22732
22723
|
if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
|
|
22733
22724
|
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
|
22734
|
-
throw
|
|
22725
|
+
throw $TypeError$2("Can't convert object to primitive value");
|
|
22735
22726
|
};
|
|
22736
22727
|
|
|
22737
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
22728
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
22738
22729
|
var defineProperty = Object.defineProperty;
|
|
22739
22730
|
|
|
22740
22731
|
var defineGlobalProperty = function (key, value) {
|
|
@@ -22751,16 +22742,13 @@ var store = global_1[SHARED] || defineGlobalProperty(SHARED, {});
|
|
|
22751
22742
|
var sharedStore = store;
|
|
22752
22743
|
|
|
22753
22744
|
var shared = createCommonjsModule(function (module) {
|
|
22754
|
-
|
|
22755
|
-
|
|
22756
|
-
|
|
22757
22745
|
(module.exports = function (key, value) {
|
|
22758
22746
|
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
|
22759
22747
|
})('versions', []).push({
|
|
22760
|
-
version: '3.
|
|
22748
|
+
version: '3.24.1',
|
|
22761
22749
|
mode: 'global',
|
|
22762
|
-
copyright: '© 2014-
|
|
22763
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
22750
|
+
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
22751
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE',
|
|
22764
22752
|
source: 'https://github.com/zloirock/core-js'
|
|
22765
22753
|
});
|
|
22766
22754
|
});
|
|
@@ -22777,7 +22765,7 @@ var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
|
|
|
22777
22765
|
|
|
22778
22766
|
// `HasOwnProperty` abstract operation
|
|
22779
22767
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
22780
|
-
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
22768
|
+
// eslint-disable-next-line es-x/no-object-hasown -- safe
|
|
22781
22769
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
22782
22770
|
return hasOwnProperty(toObject(it), key);
|
|
22783
22771
|
};
|
|
@@ -22790,15 +22778,21 @@ var uid = function (key) {
|
|
|
22790
22778
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
|
|
22791
22779
|
};
|
|
22792
22780
|
|
|
22793
|
-
var Symbol$1 = global_1.Symbol;
|
|
22794
22781
|
var WellKnownSymbolsStore = shared('wks');
|
|
22795
|
-
var
|
|
22782
|
+
var Symbol$1 = global_1.Symbol;
|
|
22783
|
+
var symbolFor = Symbol$1 && Symbol$1['for'];
|
|
22784
|
+
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
|
22796
22785
|
|
|
22797
22786
|
var wellKnownSymbol = function (name) {
|
|
22798
|
-
if (!hasOwnProperty_1(WellKnownSymbolsStore, name)) {
|
|
22799
|
-
|
|
22800
|
-
|
|
22801
|
-
|
|
22787
|
+
if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
|
|
22788
|
+
var description = 'Symbol.' + name;
|
|
22789
|
+
if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
|
|
22790
|
+
WellKnownSymbolsStore[name] = Symbol$1[name];
|
|
22791
|
+
} else if (useSymbolAsUid && symbolFor) {
|
|
22792
|
+
WellKnownSymbolsStore[name] = symbolFor(description);
|
|
22793
|
+
} else {
|
|
22794
|
+
WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
|
|
22795
|
+
}
|
|
22802
22796
|
} return WellKnownSymbolsStore[name];
|
|
22803
22797
|
};
|
|
22804
22798
|
|
|
@@ -22815,7 +22809,7 @@ var toPrimitive = function (input, pref) {
|
|
|
22815
22809
|
if (pref === undefined) pref = 'default';
|
|
22816
22810
|
result = functionCall(exoticToPrim, input, pref);
|
|
22817
22811
|
if (!isObject(result) || isSymbol(result)) return result;
|
|
22818
|
-
throw
|
|
22812
|
+
throw $TypeError$3("Can't convert object to primitive value");
|
|
22819
22813
|
}
|
|
22820
22814
|
if (pref === undefined) pref = 'number';
|
|
22821
22815
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -22838,13 +22832,13 @@ var documentCreateElement = function (it) {
|
|
|
22838
22832
|
|
|
22839
22833
|
// Thanks to IE8 for its funny defineProperty
|
|
22840
22834
|
var ie8DomDefine = !descriptors && !fails(function () {
|
|
22841
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
22835
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
22842
22836
|
return Object.defineProperty(documentCreateElement('div'), 'a', {
|
|
22843
22837
|
get: function () { return 7; }
|
|
22844
|
-
}).a
|
|
22838
|
+
}).a != 7;
|
|
22845
22839
|
});
|
|
22846
22840
|
|
|
22847
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22841
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
22848
22842
|
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
22849
22843
|
|
|
22850
22844
|
// `Object.getOwnPropertyDescriptor` method
|
|
@@ -22865,26 +22859,26 @@ var objectGetOwnPropertyDescriptor = {
|
|
|
22865
22859
|
// V8 ~ Chrome 36-
|
|
22866
22860
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
22867
22861
|
var v8PrototypeDefineBug = descriptors && fails(function () {
|
|
22868
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
22862
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
22869
22863
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
22870
22864
|
value: 42,
|
|
22871
22865
|
writable: false
|
|
22872
|
-
}).prototype
|
|
22866
|
+
}).prototype != 42;
|
|
22873
22867
|
});
|
|
22874
22868
|
|
|
22875
|
-
var $String$
|
|
22869
|
+
var $String$1 = String;
|
|
22876
22870
|
var $TypeError$4 = TypeError;
|
|
22877
22871
|
|
|
22878
22872
|
// `Assert: Type(argument) is Object`
|
|
22879
22873
|
var anObject = function (argument) {
|
|
22880
22874
|
if (isObject(argument)) return argument;
|
|
22881
|
-
throw
|
|
22875
|
+
throw $TypeError$4($String$1(argument) + ' is not an object');
|
|
22882
22876
|
};
|
|
22883
22877
|
|
|
22884
22878
|
var $TypeError$5 = TypeError;
|
|
22885
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
22879
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
22886
22880
|
var $defineProperty = Object.defineProperty;
|
|
22887
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22881
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
22888
22882
|
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
22889
22883
|
var ENUMERABLE = 'enumerable';
|
|
22890
22884
|
var CONFIGURABLE = 'configurable';
|
|
@@ -22914,7 +22908,7 @@ var f$2 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Att
|
|
|
22914
22908
|
if (ie8DomDefine) try {
|
|
22915
22909
|
return $defineProperty(O, P, Attributes);
|
|
22916
22910
|
} catch (error) { /* empty */ }
|
|
22917
|
-
if ('get' in Attributes || 'set' in Attributes) throw
|
|
22911
|
+
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$5('Accessors not supported');
|
|
22918
22912
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
22919
22913
|
return O;
|
|
22920
22914
|
};
|
|
@@ -22931,7 +22925,7 @@ var createNonEnumerableProperty = descriptors ? function (object, key, value) {
|
|
|
22931
22925
|
};
|
|
22932
22926
|
|
|
22933
22927
|
var FunctionPrototype$1 = Function.prototype;
|
|
22934
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22928
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
22935
22929
|
var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
|
|
22936
22930
|
|
|
22937
22931
|
var EXISTS$1 = hasOwnProperty_1(FunctionPrototype$1, 'name');
|
|
@@ -22958,7 +22952,7 @@ var inspectSource = sharedStore.inspectSource;
|
|
|
22958
22952
|
|
|
22959
22953
|
var WeakMap$1 = global_1.WeakMap;
|
|
22960
22954
|
|
|
22961
|
-
var
|
|
22955
|
+
var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
|
|
22962
22956
|
|
|
22963
22957
|
var keys$1 = shared('keys');
|
|
22964
22958
|
|
|
@@ -22981,29 +22975,27 @@ var getterFor = function (TYPE) {
|
|
|
22981
22975
|
return function (it) {
|
|
22982
22976
|
var state;
|
|
22983
22977
|
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
|
22984
|
-
throw
|
|
22978
|
+
throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
|
|
22985
22979
|
} return state;
|
|
22986
22980
|
};
|
|
22987
22981
|
};
|
|
22988
22982
|
|
|
22989
|
-
if (
|
|
22983
|
+
if (nativeWeakMap || sharedStore.state) {
|
|
22990
22984
|
var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$2());
|
|
22991
|
-
|
|
22992
|
-
|
|
22993
|
-
|
|
22994
|
-
store$1.set = store$1.set;
|
|
22995
|
-
/* eslint-enable no-self-assign -- prototype methods protection */
|
|
22985
|
+
var wmget = functionUncurryThis(store$1.get);
|
|
22986
|
+
var wmhas = functionUncurryThis(store$1.has);
|
|
22987
|
+
var wmset = functionUncurryThis(store$1.set);
|
|
22996
22988
|
set = function (it, metadata) {
|
|
22997
|
-
if (store$1
|
|
22989
|
+
if (wmhas(store$1, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
22998
22990
|
metadata.facade = it;
|
|
22999
|
-
store$1
|
|
22991
|
+
wmset(store$1, it, metadata);
|
|
23000
22992
|
return metadata;
|
|
23001
22993
|
};
|
|
23002
22994
|
get = function (it) {
|
|
23003
|
-
return store$1
|
|
22995
|
+
return wmget(store$1, it) || {};
|
|
23004
22996
|
};
|
|
23005
22997
|
has = function (it) {
|
|
23006
|
-
return store$1
|
|
22998
|
+
return wmhas(store$1, it);
|
|
23007
22999
|
};
|
|
23008
23000
|
} else {
|
|
23009
23001
|
var STATE = sharedKey('state');
|
|
@@ -23031,23 +23023,14 @@ var internalState = {
|
|
|
23031
23023
|
};
|
|
23032
23024
|
|
|
23033
23025
|
var makeBuiltIn_1 = createCommonjsModule(function (module) {
|
|
23034
|
-
|
|
23035
|
-
|
|
23036
|
-
|
|
23037
|
-
|
|
23038
|
-
|
|
23039
23026
|
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
23040
23027
|
|
|
23041
23028
|
|
|
23042
23029
|
|
|
23043
23030
|
var enforceInternalState = internalState.enforce;
|
|
23044
23031
|
var getInternalState = internalState.get;
|
|
23045
|
-
|
|
23046
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
23032
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
23047
23033
|
var defineProperty = Object.defineProperty;
|
|
23048
|
-
var stringSlice = functionUncurryThis(''.slice);
|
|
23049
|
-
var replace = functionUncurryThis(''.replace);
|
|
23050
|
-
var join = functionUncurryThis([].join);
|
|
23051
23034
|
|
|
23052
23035
|
var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
|
|
23053
23036
|
return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
@@ -23056,8 +23039,8 @@ var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
|
|
|
23056
23039
|
var TEMPLATE = String(String).split('String');
|
|
23057
23040
|
|
|
23058
23041
|
var makeBuiltIn = module.exports = function (value, name, options) {
|
|
23059
|
-
if (
|
|
23060
|
-
name = '[' +
|
|
23042
|
+
if (String(name).slice(0, 7) === 'Symbol(') {
|
|
23043
|
+
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
23061
23044
|
}
|
|
23062
23045
|
if (options && options.getter) name = 'get ' + name;
|
|
23063
23046
|
if (options && options.setter) name = 'set ' + name;
|
|
@@ -23076,7 +23059,7 @@ var makeBuiltIn = module.exports = function (value, name, options) {
|
|
|
23076
23059
|
} catch (error) { /* empty */ }
|
|
23077
23060
|
var state = enforceInternalState(value);
|
|
23078
23061
|
if (!hasOwnProperty_1(state, 'source')) {
|
|
23079
|
-
state.source = join(
|
|
23062
|
+
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
23080
23063
|
} return value;
|
|
23081
23064
|
};
|
|
23082
23065
|
|
|
@@ -23115,7 +23098,7 @@ var floor = Math.floor;
|
|
|
23115
23098
|
|
|
23116
23099
|
// `Math.trunc` method
|
|
23117
23100
|
// https://tc39.es/ecma262/#sec-math.trunc
|
|
23118
|
-
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
23101
|
+
// eslint-disable-next-line es-x/no-math-trunc -- safe
|
|
23119
23102
|
var mathTrunc = Math.trunc || function trunc(x) {
|
|
23120
23103
|
var n = +x;
|
|
23121
23104
|
return (n > 0 ? floor : ceil)(n);
|
|
@@ -23163,10 +23146,10 @@ var createMethod = function (IS_INCLUDES) {
|
|
|
23163
23146
|
var value;
|
|
23164
23147
|
// Array#includes uses SameValueZero equality algorithm
|
|
23165
23148
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
23166
|
-
if (IS_INCLUDES && el
|
|
23149
|
+
if (IS_INCLUDES && el != el) while (length > index) {
|
|
23167
23150
|
value = O[index++];
|
|
23168
23151
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
23169
|
-
if (value
|
|
23152
|
+
if (value != value) return true;
|
|
23170
23153
|
// Array#indexOf ignores holes, Array#includes - not
|
|
23171
23154
|
} else for (;length > index; index++) {
|
|
23172
23155
|
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
@@ -23216,7 +23199,7 @@ var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
|
|
|
23216
23199
|
|
|
23217
23200
|
// `Object.getOwnPropertyNames` method
|
|
23218
23201
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
23219
|
-
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
23202
|
+
// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
|
|
23220
23203
|
var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
23221
23204
|
return objectKeysInternal(O, hiddenKeys$1);
|
|
23222
23205
|
};
|
|
@@ -23225,7 +23208,7 @@ var objectGetOwnPropertyNames = {
|
|
|
23225
23208
|
f: f$3
|
|
23226
23209
|
};
|
|
23227
23210
|
|
|
23228
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
23211
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
|
|
23229
23212
|
var f$4 = Object.getOwnPropertySymbols;
|
|
23230
23213
|
|
|
23231
23214
|
var objectGetOwnPropertySymbols = {
|
|
@@ -23257,8 +23240,8 @@ var replacement = /#|\.prototype\./;
|
|
|
23257
23240
|
|
|
23258
23241
|
var isForced = function (feature, detection) {
|
|
23259
23242
|
var value = data[normalize(feature)];
|
|
23260
|
-
return value
|
|
23261
|
-
: value
|
|
23243
|
+
return value == POLYFILL ? true
|
|
23244
|
+
: value == NATIVE ? false
|
|
23262
23245
|
: isCallable(detection) ? fails(detection)
|
|
23263
23246
|
: !!detection;
|
|
23264
23247
|
};
|
|
@@ -23338,7 +23321,7 @@ var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
|
|
|
23338
23321
|
var $Object$3 = Object;
|
|
23339
23322
|
|
|
23340
23323
|
// ES3 wrong here
|
|
23341
|
-
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }())
|
|
23324
|
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
23342
23325
|
|
|
23343
23326
|
// fallback for IE11 Script Access Denied error
|
|
23344
23327
|
var tryGet = function (it, key) {
|
|
@@ -23356,25 +23339,25 @@ var classof = toStringTagSupport ? classofRaw : function (it) {
|
|
|
23356
23339
|
// builtinTag case
|
|
23357
23340
|
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
23358
23341
|
// ES3 arguments fallback
|
|
23359
|
-
: (result = classofRaw(O))
|
|
23342
|
+
: (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
|
23360
23343
|
};
|
|
23361
23344
|
|
|
23362
|
-
var $String$
|
|
23345
|
+
var $String$2 = String;
|
|
23363
23346
|
|
|
23364
23347
|
var toString_1 = function (argument) {
|
|
23365
|
-
if (classof(argument) === 'Symbol') throw
|
|
23366
|
-
return $String$
|
|
23348
|
+
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
23349
|
+
return $String$2(argument);
|
|
23367
23350
|
};
|
|
23368
23351
|
|
|
23369
23352
|
var charAt = functionUncurryThis(''.charAt);
|
|
23370
23353
|
|
|
23371
23354
|
var FORCED = fails(function () {
|
|
23372
|
-
// eslint-disable-next-line es/no-array-string-prototype-at -- safe
|
|
23355
|
+
// eslint-disable-next-line es-x/no-array-string-prototype-at -- safe
|
|
23373
23356
|
return '𠮷'.at(-2) !== '\uD842';
|
|
23374
23357
|
});
|
|
23375
23358
|
|
|
23376
23359
|
// `String.prototype.at` method
|
|
23377
|
-
// https://
|
|
23360
|
+
// https://github.com/tc39/proposal-relative-indexing-method
|
|
23378
23361
|
_export({ target: 'String', proto: true, forced: FORCED }, {
|
|
23379
23362
|
at: function at(index) {
|
|
23380
23363
|
var S = toString_1(requireObjectCoercible(this));
|
|
@@ -23387,14 +23370,14 @@ _export({ target: 'String', proto: true, forced: FORCED }, {
|
|
|
23387
23370
|
|
|
23388
23371
|
// `Object.keys` method
|
|
23389
23372
|
// https://tc39.es/ecma262/#sec-object.keys
|
|
23390
|
-
// eslint-disable-next-line es/no-object-keys -- safe
|
|
23373
|
+
// eslint-disable-next-line es-x/no-object-keys -- safe
|
|
23391
23374
|
var objectKeys = Object.keys || function keys(O) {
|
|
23392
23375
|
return objectKeysInternal(O, enumBugKeys);
|
|
23393
23376
|
};
|
|
23394
23377
|
|
|
23395
23378
|
// `Object.defineProperties` method
|
|
23396
23379
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
23397
|
-
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
23380
|
+
// eslint-disable-next-line es-x/no-object-defineproperties -- safe
|
|
23398
23381
|
var f$5 = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
23399
23382
|
anObject(O);
|
|
23400
23383
|
var props = toIndexedObject(Properties);
|
|
@@ -23483,7 +23466,7 @@ hiddenKeys[IE_PROTO] = true;
|
|
|
23483
23466
|
|
|
23484
23467
|
// `Object.create` method
|
|
23485
23468
|
// https://tc39.es/ecma262/#sec-object.create
|
|
23486
|
-
// eslint-disable-next-line es/no-object-create -- safe
|
|
23469
|
+
// eslint-disable-next-line es-x/no-object-create -- safe
|
|
23487
23470
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
23488
23471
|
var result;
|
|
23489
23472
|
if (O !== null) {
|
|
@@ -23503,7 +23486,7 @@ var ArrayPrototype = Array.prototype;
|
|
|
23503
23486
|
|
|
23504
23487
|
// Array.prototype[@@unscopables]
|
|
23505
23488
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
23506
|
-
if (ArrayPrototype[UNSCOPABLES]
|
|
23489
|
+
if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
|
23507
23490
|
defineProperty$1(ArrayPrototype, UNSCOPABLES, {
|
|
23508
23491
|
configurable: true,
|
|
23509
23492
|
value: objectCreate(null)
|
|
@@ -23516,7 +23499,7 @@ var addToUnscopables = function (key) {
|
|
|
23516
23499
|
};
|
|
23517
23500
|
|
|
23518
23501
|
// `Array.prototype.at` method
|
|
23519
|
-
// https://
|
|
23502
|
+
// https://github.com/tc39/proposal-relative-indexing-method
|
|
23520
23503
|
_export({ target: 'Array', proto: true }, {
|
|
23521
23504
|
at: function at(index) {
|
|
23522
23505
|
var O = toObject(this);
|
|
@@ -23529,19 +23512,13 @@ _export({ target: 'Array', proto: true }, {
|
|
|
23529
23512
|
|
|
23530
23513
|
addToUnscopables('at');
|
|
23531
23514
|
|
|
23532
|
-
// eslint-disable-next-line es/no-typed-arrays -- safe
|
|
23533
|
-
var
|
|
23534
|
-
|
|
23535
|
-
var defineBuiltInAccessor = function (target, name, descriptor) {
|
|
23536
|
-
if (descriptor.get) makeBuiltIn_1(descriptor.get, name, { getter: true });
|
|
23537
|
-
if (descriptor.set) makeBuiltIn_1(descriptor.set, name, { setter: true });
|
|
23538
|
-
return objectDefineProperty.f(target, name, descriptor);
|
|
23539
|
-
};
|
|
23515
|
+
// eslint-disable-next-line es-x/no-typed-arrays -- safe
|
|
23516
|
+
var arrayBufferNative = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
|
|
23540
23517
|
|
|
23541
23518
|
var correctPrototypeGetter = !fails(function () {
|
|
23542
23519
|
function F() { /* empty */ }
|
|
23543
23520
|
F.prototype.constructor = null;
|
|
23544
|
-
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
23521
|
+
// eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing
|
|
23545
23522
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
23546
23523
|
});
|
|
23547
23524
|
|
|
@@ -23551,7 +23528,7 @@ var ObjectPrototype = $Object$4.prototype;
|
|
|
23551
23528
|
|
|
23552
23529
|
// `Object.getPrototypeOf` method
|
|
23553
23530
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
23554
|
-
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
23531
|
+
// eslint-disable-next-line es-x/no-object-getprototypeof -- safe
|
|
23555
23532
|
var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : function (O) {
|
|
23556
23533
|
var object = toObject(O);
|
|
23557
23534
|
if (hasOwnProperty_1(object, IE_PROTO$1)) return object[IE_PROTO$1];
|
|
@@ -23561,19 +23538,12 @@ var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : f
|
|
|
23561
23538
|
} return object instanceof $Object$4 ? ObjectPrototype : null;
|
|
23562
23539
|
};
|
|
23563
23540
|
|
|
23564
|
-
var
|
|
23565
|
-
try {
|
|
23566
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
23567
|
-
return functionUncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
23568
|
-
} catch (error) { /* empty */ }
|
|
23569
|
-
};
|
|
23570
|
-
|
|
23571
|
-
var $String$4 = String;
|
|
23541
|
+
var $String$3 = String;
|
|
23572
23542
|
var $TypeError$6 = TypeError;
|
|
23573
23543
|
|
|
23574
23544
|
var aPossiblePrototype = function (argument) {
|
|
23575
23545
|
if (typeof argument == 'object' || isCallable(argument)) return argument;
|
|
23576
|
-
throw
|
|
23546
|
+
throw $TypeError$6("Can't set " + $String$3(argument) + ' as a prototype');
|
|
23577
23547
|
};
|
|
23578
23548
|
|
|
23579
23549
|
/* eslint-disable no-proto -- safe */
|
|
@@ -23584,13 +23554,14 @@ var aPossiblePrototype = function (argument) {
|
|
|
23584
23554
|
// `Object.setPrototypeOf` method
|
|
23585
23555
|
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
23586
23556
|
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
23587
|
-
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
23557
|
+
// eslint-disable-next-line es-x/no-object-setprototypeof -- safe
|
|
23588
23558
|
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
23589
23559
|
var CORRECT_SETTER = false;
|
|
23590
23560
|
var test = {};
|
|
23591
23561
|
var setter;
|
|
23592
23562
|
try {
|
|
23593
|
-
|
|
23563
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
23564
|
+
setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
23594
23565
|
setter(test, []);
|
|
23595
23566
|
CORRECT_SETTER = test instanceof Array;
|
|
23596
23567
|
} catch (error) { /* empty */ }
|
|
@@ -23603,6 +23574,14 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
23603
23574
|
};
|
|
23604
23575
|
}() : undefined);
|
|
23605
23576
|
|
|
23577
|
+
var defineProperty$2 = objectDefineProperty.f;
|
|
23578
|
+
|
|
23579
|
+
|
|
23580
|
+
|
|
23581
|
+
|
|
23582
|
+
|
|
23583
|
+
|
|
23584
|
+
|
|
23606
23585
|
var enforceInternalState = internalState.enforce;
|
|
23607
23586
|
var getInternalState = internalState.get;
|
|
23608
23587
|
var Int8Array = global_1.Int8Array;
|
|
@@ -23618,7 +23597,7 @@ var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
|
|
|
23618
23597
|
var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
|
|
23619
23598
|
var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor';
|
|
23620
23599
|
// Fixing native typed arrays in Opera Presto crashes the browser, see #595
|
|
23621
|
-
var NATIVE_ARRAY_BUFFER_VIEWS =
|
|
23600
|
+
var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferNative && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
|
|
23622
23601
|
var TYPED_ARRAY_TAG_REQUIRED = false;
|
|
23623
23602
|
var NAME, Constructor, Prototype;
|
|
23624
23603
|
|
|
@@ -23663,12 +23642,12 @@ var isTypedArray = function (it) {
|
|
|
23663
23642
|
|
|
23664
23643
|
var aTypedArray = function (it) {
|
|
23665
23644
|
if (isTypedArray(it)) return it;
|
|
23666
|
-
throw
|
|
23645
|
+
throw TypeError$2('Target is not a typed array');
|
|
23667
23646
|
};
|
|
23668
23647
|
|
|
23669
23648
|
var aTypedArrayConstructor = function (C) {
|
|
23670
23649
|
if (isCallable(C) && (!objectSetPrototypeOf || objectIsPrototypeOf(TypedArray, C))) return C;
|
|
23671
|
-
throw
|
|
23650
|
+
throw TypeError$2(tryToString(C) + ' is not a typed array constructor');
|
|
23672
23651
|
};
|
|
23673
23652
|
|
|
23674
23653
|
var exportTypedArrayMethod = function (KEY, property, forced, options) {
|
|
@@ -23732,7 +23711,7 @@ for (NAME in BigIntArrayConstructorsList) {
|
|
|
23732
23711
|
if (!NATIVE_ARRAY_BUFFER_VIEWS || !isCallable(TypedArray) || TypedArray === Function.prototype) {
|
|
23733
23712
|
// eslint-disable-next-line no-shadow -- safe
|
|
23734
23713
|
TypedArray = function TypedArray() {
|
|
23735
|
-
throw
|
|
23714
|
+
throw TypeError$2('Incorrect invocation');
|
|
23736
23715
|
};
|
|
23737
23716
|
if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) {
|
|
23738
23717
|
if (global_1[NAME]) objectSetPrototypeOf(global_1[NAME], TypedArray);
|
|
@@ -23753,12 +23732,9 @@ if (NATIVE_ARRAY_BUFFER_VIEWS && objectGetPrototypeOf(Uint8ClampedArrayPrototype
|
|
|
23753
23732
|
|
|
23754
23733
|
if (descriptors && !hasOwnProperty_1(TypedArrayPrototype, TO_STRING_TAG$2)) {
|
|
23755
23734
|
TYPED_ARRAY_TAG_REQUIRED = true;
|
|
23756
|
-
|
|
23757
|
-
|
|
23758
|
-
|
|
23759
|
-
return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
|
|
23760
|
-
}
|
|
23761
|
-
});
|
|
23735
|
+
defineProperty$2(TypedArrayPrototype, TO_STRING_TAG$2, { get: function () {
|
|
23736
|
+
return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
|
|
23737
|
+
} });
|
|
23762
23738
|
for (NAME in TypedArrayConstructorsList) if (global_1[NAME]) {
|
|
23763
23739
|
createNonEnumerableProperty(global_1[NAME], TYPED_ARRAY_TAG, NAME);
|
|
23764
23740
|
}
|
|
@@ -23782,7 +23758,7 @@ var aTypedArray$1 = arrayBufferViewCore.aTypedArray;
|
|
|
23782
23758
|
var exportTypedArrayMethod$1 = arrayBufferViewCore.exportTypedArrayMethod;
|
|
23783
23759
|
|
|
23784
23760
|
// `%TypedArray%.prototype.at` method
|
|
23785
|
-
// https://
|
|
23761
|
+
// https://github.com/tc39/proposal-relative-indexing-method
|
|
23786
23762
|
exportTypedArrayMethod$1('at', function at(index) {
|
|
23787
23763
|
var O = aTypedArray$1(this);
|
|
23788
23764
|
var len = lengthOfArrayLike(O);
|
|
@@ -24134,10 +24110,9 @@ var Dropdown = function Dropdown(_ref13) {
|
|
|
24134
24110
|
dataQa: "".concat(ariaLabelledby, "-dropdown")
|
|
24135
24111
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
24136
24112
|
as: "input",
|
|
24137
|
-
"aria-multiline": "false",
|
|
24138
24113
|
autoComplete: autocompleteValue,
|
|
24139
24114
|
"aria-controls": "".concat(ariaLabelledby, "_listbox"),
|
|
24140
|
-
"aria-activedescendant": "focused_option",
|
|
24115
|
+
"aria-activedescendant": isOpen ? "focused_option" : undefined,
|
|
24141
24116
|
"aria-owns": "".concat(ariaLabelledby, "_listbox"),
|
|
24142
24117
|
"aria-haspopup": "listbox",
|
|
24143
24118
|
"aria-labelledby": ariaLabelledby,
|
|
@@ -24201,7 +24176,7 @@ var Dropdown = function Dropdown(_ref13) {
|
|
|
24201
24176
|
return handleItemSelection(e, choice, i);
|
|
24202
24177
|
},
|
|
24203
24178
|
onKeyDown: function onKeyDown(e) {
|
|
24204
|
-
if (e.keyCode ===
|
|
24179
|
+
if (e.keyCode === ENTER) {
|
|
24205
24180
|
handleItemSelection(e, choice, i);
|
|
24206
24181
|
}
|
|
24207
24182
|
},
|
|
@@ -25567,7 +25542,7 @@ var Popover = function Popover(_ref) {
|
|
|
25567
25542
|
handleTogglePopover(false);
|
|
25568
25543
|
},
|
|
25569
25544
|
onKeyDown: function onKeyDown(e) {
|
|
25570
|
-
if (e.keyCode ===
|
|
25545
|
+
if (e.keyCode === ESCAPE) {
|
|
25571
25546
|
handleTogglePopover(false);
|
|
25572
25547
|
}
|
|
25573
25548
|
},
|
|
@@ -26776,13 +26751,17 @@ var fontWeight$4 = {
|
|
|
26776
26751
|
pS: "600",
|
|
26777
26752
|
p: "600",
|
|
26778
26753
|
pL: "600",
|
|
26779
|
-
h6: "700"
|
|
26754
|
+
h6: "700",
|
|
26755
|
+
regular: "600",
|
|
26756
|
+
extraSmall: "600",
|
|
26757
|
+
small: "600",
|
|
26758
|
+
large: "600"
|
|
26780
26759
|
};
|
|
26781
26760
|
var fallbackValues$p = {
|
|
26782
26761
|
fontWeight: fontWeight$4
|
|
26783
26762
|
};
|
|
26784
26763
|
|
|
26785
|
-
var
|
|
26764
|
+
var LabeledAmountV1 = function LabeledAmountV1(_ref) {
|
|
26786
26765
|
var _ref$variant = _ref.variant,
|
|
26787
26766
|
variant = _ref$variant === void 0 ? "pL" : _ref$variant,
|
|
26788
26767
|
label = _ref.label,
|
|
@@ -26806,19 +26785,46 @@ var LabeledAmount = function LabeledAmount(_ref) {
|
|
|
26806
26785
|
}, amount));
|
|
26807
26786
|
};
|
|
26808
26787
|
|
|
26788
|
+
var LabeledAmountV2 = function LabeledAmountV2(_ref) {
|
|
26789
|
+
var _ref$variant = _ref.variant,
|
|
26790
|
+
variant = _ref$variant === void 0 ? "regular" : _ref$variant,
|
|
26791
|
+
label = _ref.label,
|
|
26792
|
+
amount = _ref.amount,
|
|
26793
|
+
themeValues = _ref.themeValues,
|
|
26794
|
+
as = _ref.as,
|
|
26795
|
+
extraStyles = _ref.extraStyles;
|
|
26796
|
+
return /*#__PURE__*/React__default.createElement(Detail$1, {
|
|
26797
|
+
variant: variant,
|
|
26798
|
+
as: as,
|
|
26799
|
+
weight: themeValues.fontWeight,
|
|
26800
|
+
extraStyles: "display: flex; justify-content: space-between; ".concat(extraStyles)
|
|
26801
|
+
}, /*#__PURE__*/React__default.createElement("span", null, label), /*#__PURE__*/React__default.createElement("span", null, amount));
|
|
26802
|
+
};
|
|
26803
|
+
|
|
26804
|
+
var _excluded$u = ["version"];
|
|
26805
|
+
|
|
26806
|
+
var LabeledAmount = function LabeledAmount(_ref) {
|
|
26807
|
+
var _ref$version = _ref.version,
|
|
26808
|
+
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
26809
|
+
rest = _objectWithoutProperties(_ref, _excluded$u);
|
|
26810
|
+
|
|
26811
|
+
var LabeledAmountComponent = version === "v1" ? LabeledAmountV1 : LabeledAmountV2;
|
|
26812
|
+
return /*#__PURE__*/React__default.createElement(LabeledAmountComponent, rest);
|
|
26813
|
+
};
|
|
26814
|
+
|
|
26809
26815
|
var LabeledAmount$1 = themeComponent(LabeledAmount, "LabeledAmount", fallbackValues$p, "default");
|
|
26810
26816
|
|
|
26811
26817
|
var weightTitle = {
|
|
26812
26818
|
"default": "600",
|
|
26813
26819
|
small: "400"
|
|
26814
26820
|
};
|
|
26815
|
-
var
|
|
26816
|
-
"default": "
|
|
26817
|
-
small: "
|
|
26821
|
+
var detailVariant = {
|
|
26822
|
+
"default": "large",
|
|
26823
|
+
small: "small"
|
|
26818
26824
|
};
|
|
26819
26825
|
var fallbackValues$q = {
|
|
26820
26826
|
weightTitle: weightTitle,
|
|
26821
|
-
|
|
26827
|
+
detailVariant: detailVariant
|
|
26822
26828
|
};
|
|
26823
26829
|
|
|
26824
26830
|
var LineItem = function LineItem(_ref) {
|
|
@@ -26845,35 +26851,27 @@ var LineItem = function LineItem(_ref) {
|
|
|
26845
26851
|
var visibleCustomAttrs = customAttributes === null || customAttributes === void 0 ? void 0 : (_customAttributes$fil = customAttributes.filter(function (attr) {
|
|
26846
26852
|
return (visibleFields === null || visibleFields === void 0 ? void 0 : visibleFields.includes(attr.key)) && attr.key !== "description";
|
|
26847
26853
|
})) === null || _customAttributes$fil === void 0 ? void 0 : _customAttributes$fil.map(function (attr) {
|
|
26848
|
-
return /*#__PURE__*/React__default.createElement(
|
|
26849
|
-
variant: "
|
|
26854
|
+
return /*#__PURE__*/React__default.createElement(Detail$1, {
|
|
26855
|
+
variant: "small",
|
|
26850
26856
|
weight: "400",
|
|
26851
26857
|
key: attr.key,
|
|
26852
26858
|
color: STORM_GREY
|
|
26853
26859
|
}, "".concat(formatAttrKeys(attr.key), ": ").concat(attr.value));
|
|
26854
26860
|
});
|
|
26855
|
-
return /*#__PURE__*/React__default.createElement(
|
|
26856
|
-
nowrap: true,
|
|
26857
|
-
justify: "space-between",
|
|
26858
|
-
align: "start"
|
|
26859
|
-
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
26861
|
+
return /*#__PURE__*/React__default.createElement(Stack, {
|
|
26860
26862
|
childGap: "0px"
|
|
26861
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
26862
|
-
|
|
26863
|
-
|
|
26864
|
-
|
|
26865
|
-
|
|
26863
|
+
}, /*#__PURE__*/React__default.createElement(Detail$1, {
|
|
26864
|
+
as: "h3",
|
|
26865
|
+
variant: themeValues.detailVariant,
|
|
26866
|
+
weight: themeValues.weightTitle,
|
|
26867
|
+
extraStyles: "display: flex; justify-content: space-between;"
|
|
26868
|
+
}, /*#__PURE__*/React__default.createElement("span", null, description), /*#__PURE__*/React__default.createElement("span", null, !!displayQuantity && "x".concat(displayQuantity)), /*#__PURE__*/React__default.createElement("span", null, amount)), /*#__PURE__*/React__default.createElement(Detail$1, {
|
|
26869
|
+
as: "p",
|
|
26870
|
+
variant: themeValues.detailVariant,
|
|
26866
26871
|
weight: "400"
|
|
26867
26872
|
}, subDescription), visibleCustomAttrs && /*#__PURE__*/React__default.createElement(Stack, {
|
|
26868
26873
|
childGap: "0.25rem"
|
|
26869
|
-
}, visibleCustomAttrs))
|
|
26870
|
-
variant: themeValues.paragraphVariant,
|
|
26871
|
-
weight: themeValues.weightTitle
|
|
26872
|
-
}, "x".concat(displayQuantity)), /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
26873
|
-
variant: themeValues.paragraphVariant,
|
|
26874
|
-
weight: "600",
|
|
26875
|
-
extraStyles: "margin: 0; text-align: end; min-width: fit-content; padding-left: 32px;"
|
|
26876
|
-
}, amount));
|
|
26874
|
+
}, visibleCustomAttrs));
|
|
26877
26875
|
};
|
|
26878
26876
|
|
|
26879
26877
|
var LineItem$1 = themeComponent(LineItem, "LineItem", fallbackValues$q, "default");
|
|
@@ -26951,7 +26949,7 @@ var Loading = function Loading() {
|
|
|
26951
26949
|
})))));
|
|
26952
26950
|
};
|
|
26953
26951
|
|
|
26954
|
-
var _excluded$
|
|
26952
|
+
var _excluded$v = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
|
|
26955
26953
|
|
|
26956
26954
|
var NavFooter = function NavFooter(_ref) {
|
|
26957
26955
|
var leftContent = _ref.leftContent,
|
|
@@ -26967,7 +26965,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
26967
26965
|
footerPadding = _ref$footerPadding === void 0 ? "1.5rem 1rem" : _ref$footerPadding,
|
|
26968
26966
|
isMobile = _ref.isMobile,
|
|
26969
26967
|
footerWidth = _ref.footerWidth,
|
|
26970
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26968
|
+
rest = _objectWithoutProperties(_ref, _excluded$v);
|
|
26971
26969
|
|
|
26972
26970
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
26973
26971
|
padding: footerPadding,
|
|
@@ -26999,7 +26997,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
26999
26997
|
}, rightContent)))))));
|
|
27000
26998
|
};
|
|
27001
26999
|
|
|
27002
|
-
var _excluded$
|
|
27000
|
+
var _excluded$w = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
|
|
27003
27001
|
|
|
27004
27002
|
var NavHeader = function NavHeader(_ref) {
|
|
27005
27003
|
var leftContent = _ref.leftContent,
|
|
@@ -27009,7 +27007,7 @@ var NavHeader = function NavHeader(_ref) {
|
|
|
27009
27007
|
isMobile = _ref.isMobile,
|
|
27010
27008
|
backgroundColor = _ref.backgroundColor,
|
|
27011
27009
|
headerWidth = _ref.headerWidth,
|
|
27012
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27010
|
+
rest = _objectWithoutProperties(_ref, _excluded$w);
|
|
27013
27011
|
|
|
27014
27012
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
27015
27013
|
padding: "0 16px 4px",
|
|
@@ -27462,8 +27460,7 @@ var RadioButton$1 = function RadioButton(_ref2) {
|
|
|
27462
27460
|
name = _ref2.name,
|
|
27463
27461
|
_ref2$disabled = _ref2.disabled,
|
|
27464
27462
|
disabled = _ref2$disabled === void 0 ? false : _ref2$disabled,
|
|
27465
|
-
|
|
27466
|
-
ariaDescribedBy = _ref2$ariaDescribedBy === void 0 ? "" : _ref2$ariaDescribedBy,
|
|
27463
|
+
ariaDescribedBy = _ref2.ariaDescribedBy,
|
|
27467
27464
|
themeValues = _ref2.themeValues,
|
|
27468
27465
|
_ref2$ariaLabelledBy = _ref2.ariaLabelledBy,
|
|
27469
27466
|
ariaLabelledBy = _ref2$ariaLabelledBy === void 0 ? "" : _ref2$ariaLabelledBy,
|
|
@@ -38379,7 +38376,7 @@ var ToggleSwitch = function ToggleSwitch(_ref6) {
|
|
|
38379
38376
|
});
|
|
38380
38377
|
|
|
38381
38378
|
var handleKeyDown = function handleKeyDown(e) {
|
|
38382
|
-
if (e.keyCode ===
|
|
38379
|
+
if (e.keyCode === ENTER) {
|
|
38383
38380
|
onToggle();
|
|
38384
38381
|
}
|
|
38385
38382
|
};
|
|
@@ -38805,7 +38802,7 @@ var TableRowWrapper = styled__default.tr.withConfig({
|
|
|
38805
38802
|
return extraStyles;
|
|
38806
38803
|
});
|
|
38807
38804
|
|
|
38808
|
-
var _excluded$
|
|
38805
|
+
var _excluded$x = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
|
|
38809
38806
|
|
|
38810
38807
|
var TableRow = function TableRow(_ref) {
|
|
38811
38808
|
var children = _ref.children,
|
|
@@ -38815,7 +38812,7 @@ var TableRow = function TableRow(_ref) {
|
|
|
38815
38812
|
hoverEffect = _ref$hoverEffect === void 0 ? true : _ref$hoverEffect,
|
|
38816
38813
|
onClick = _ref.onClick,
|
|
38817
38814
|
themeValues = _ref.themeValues,
|
|
38818
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
38815
|
+
props = _objectWithoutProperties(_ref, _excluded$x);
|
|
38819
38816
|
|
|
38820
38817
|
return /*#__PURE__*/React__default.createElement(TableRowWrapper, _extends({
|
|
38821
38818
|
onClick: onClick,
|
|
@@ -39908,7 +39905,7 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
|
|
|
39908
39905
|
extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles;
|
|
39909
39906
|
|
|
39910
39907
|
var handleKeyDown = function handleKeyDown(e) {
|
|
39911
|
-
if (e.keyCode ===
|
|
39908
|
+
if (e.keyCode === ENTER) {
|
|
39912
39909
|
toggleSection();
|
|
39913
39910
|
}
|
|
39914
39911
|
};
|
|
@@ -45844,7 +45841,9 @@ var Modal$1 = function Modal(_ref) {
|
|
|
45844
45841
|
buttonExtraStyles = _ref.buttonExtraStyles,
|
|
45845
45842
|
children = _ref.children,
|
|
45846
45843
|
_ref$dataQa = _ref.dataQa,
|
|
45847
|
-
dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa
|
|
45844
|
+
dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
|
|
45845
|
+
_ref$initialFocusSele = _ref.initialFocusSelector,
|
|
45846
|
+
initialFocusSelector = _ref$initialFocusSele === void 0 ? "" : _ref$initialFocusSele;
|
|
45848
45847
|
|
|
45849
45848
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
45850
45849
|
isMobile = _useContext.isMobile;
|
|
@@ -45871,7 +45870,11 @@ var Modal$1 = function Modal(_ref) {
|
|
|
45871
45870
|
width: customWidth || "615px",
|
|
45872
45871
|
overflow: "auto"
|
|
45873
45872
|
},
|
|
45874
|
-
underlayClickExits: underlayClickExits
|
|
45873
|
+
underlayClickExits: underlayClickExits,
|
|
45874
|
+
"aria-modal": true,
|
|
45875
|
+
initialFocus: initialFocusSelector,
|
|
45876
|
+
focusDialog: !initialFocusSelector // Focus the dialogue box itself if no selector for initial focus was provided
|
|
45877
|
+
|
|
45875
45878
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
45876
45879
|
padding: "0",
|
|
45877
45880
|
borderRadius: "2px",
|
|
@@ -45882,9 +45885,10 @@ var Modal$1 = function Modal(_ref) {
|
|
|
45882
45885
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
45883
45886
|
justify: "flex-start",
|
|
45884
45887
|
align: "center"
|
|
45885
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
45886
|
-
|
|
45887
|
-
weight: FONT_WEIGHT_SEMIBOLD
|
|
45888
|
+
}, /*#__PURE__*/React__default.createElement(Title$1, {
|
|
45889
|
+
as: "h2",
|
|
45890
|
+
weight: FONT_WEIGHT_SEMIBOLD,
|
|
45891
|
+
fontSize: "1.25rem"
|
|
45888
45892
|
}, modalHeaderText))), /*#__PURE__*/React__default.createElement(Box, {
|
|
45889
45893
|
background: modalBodyBg,
|
|
45890
45894
|
padding: "1.5rem"
|
|
@@ -45918,7 +45922,9 @@ var Modal$1 = function Modal(_ref) {
|
|
|
45918
45922
|
text: cancelButtonText,
|
|
45919
45923
|
dataQa: cancelButtonText,
|
|
45920
45924
|
extraStyles: buttonExtraStyles,
|
|
45921
|
-
className: "modal-cancel-button"
|
|
45925
|
+
className: "modal-cancel-button",
|
|
45926
|
+
role: "button",
|
|
45927
|
+
name: cancelButtonText
|
|
45922
45928
|
})), /*#__PURE__*/React__default.createElement(Box, {
|
|
45923
45929
|
width: "100%",
|
|
45924
45930
|
padding: "0"
|
|
@@ -45930,7 +45936,9 @@ var Modal$1 = function Modal(_ref) {
|
|
|
45930
45936
|
isLoading: isLoading,
|
|
45931
45937
|
disabled: isContinueActionDisabled,
|
|
45932
45938
|
extraStyles: buttonExtraStyles,
|
|
45933
|
-
className: "modal-continue-button"
|
|
45939
|
+
className: "modal-continue-button",
|
|
45940
|
+
role: "button",
|
|
45941
|
+
name: continueButtonText
|
|
45934
45942
|
}))) : /*#__PURE__*/React__default.createElement(Stack, {
|
|
45935
45943
|
childGap: "1rem",
|
|
45936
45944
|
direction: "row",
|
|
@@ -45941,7 +45949,9 @@ var Modal$1 = function Modal(_ref) {
|
|
|
45941
45949
|
text: cancelButtonText,
|
|
45942
45950
|
dataQa: cancelButtonText,
|
|
45943
45951
|
extraStyles: buttonExtraStyles,
|
|
45944
|
-
className: "modal-cancel-button"
|
|
45952
|
+
className: "modal-cancel-button",
|
|
45953
|
+
role: "button",
|
|
45954
|
+
name: cancelButtonText
|
|
45945
45955
|
}), /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
45946
45956
|
variant: useDangerButton ? "danger" : "primary",
|
|
45947
45957
|
action: continueAction,
|
|
@@ -45950,7 +45960,9 @@ var Modal$1 = function Modal(_ref) {
|
|
|
45950
45960
|
isLoading: isLoading,
|
|
45951
45961
|
disabled: isContinueActionDisabled,
|
|
45952
45962
|
extraStyles: buttonExtraStyles,
|
|
45953
|
-
className: "modal-continue-button"
|
|
45963
|
+
className: "modal-continue-button",
|
|
45964
|
+
role: "button",
|
|
45965
|
+
name: continueButtonText
|
|
45954
45966
|
}))) : /*#__PURE__*/React__default.createElement(Box, {
|
|
45955
45967
|
padding: "0.5rem"
|
|
45956
45968
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
@@ -45959,7 +45971,9 @@ var Modal$1 = function Modal(_ref) {
|
|
|
45959
45971
|
text: closeButtonText,
|
|
45960
45972
|
dataQa: closeButtonText,
|
|
45961
45973
|
extraStyles: buttonExtraStyles,
|
|
45962
|
-
className: "modal-close-button"
|
|
45974
|
+
className: "modal-close-button",
|
|
45975
|
+
role: "button",
|
|
45976
|
+
name: closeButtonText
|
|
45963
45977
|
}))))))))), children);
|
|
45964
45978
|
};
|
|
45965
45979
|
|
|
@@ -46316,9 +46330,8 @@ var AutopayModal = function AutopayModal(_ref) {
|
|
|
46316
46330
|
toggleModal(false);
|
|
46317
46331
|
} : navigateToSettings
|
|
46318
46332
|
};
|
|
46319
|
-
var hoverStyles = "
|
|
46320
|
-
var activeStyles = "
|
|
46321
|
-
var defaultStyles = "\n .autopayIcon { fill: ".concat(themeValues.color, "; text-decoration: underline; }\n ");
|
|
46333
|
+
var hoverStyles = "text-decoration: underline;";
|
|
46334
|
+
var activeStyles = "text-decoration: underline;";
|
|
46322
46335
|
|
|
46323
46336
|
var renderAutoPayControl = function renderAutoPayControl() {
|
|
46324
46337
|
switch (controlType) {
|
|
@@ -46357,7 +46370,7 @@ var AutopayModal = function AutopayModal(_ref) {
|
|
|
46357
46370
|
},
|
|
46358
46371
|
hoverStyles: hoverStyles,
|
|
46359
46372
|
activeStyles: activeStyles,
|
|
46360
|
-
extraStyles:
|
|
46373
|
+
extraStyles: "cursor: pointer;"
|
|
46361
46374
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
46362
46375
|
justify: isMobile ? "flex-start" : "flex-end",
|
|
46363
46376
|
align: "center"
|
|
@@ -47367,12 +47380,12 @@ var lineItem = {
|
|
|
47367
47380
|
small: "small"
|
|
47368
47381
|
};
|
|
47369
47382
|
var labeledAmountSubtotal = {
|
|
47370
|
-
"default": "
|
|
47371
|
-
small: "
|
|
47383
|
+
"default": "large",
|
|
47384
|
+
small: "small"
|
|
47372
47385
|
};
|
|
47373
47386
|
var labeledAmountTotal = {
|
|
47374
|
-
"default": "
|
|
47375
|
-
small: "
|
|
47387
|
+
"default": "large",
|
|
47388
|
+
small: "small"
|
|
47376
47389
|
};
|
|
47377
47390
|
var fallbackValues$N = {
|
|
47378
47391
|
backgroundColor: backgroundColor$c,
|
|
@@ -47381,7 +47394,7 @@ var fallbackValues$N = {
|
|
|
47381
47394
|
labeledAmountTotal: labeledAmountTotal
|
|
47382
47395
|
};
|
|
47383
47396
|
|
|
47384
|
-
var _excluded$
|
|
47397
|
+
var _excluded$y = ["amount"],
|
|
47385
47398
|
_excluded2$1 = ["amount"];
|
|
47386
47399
|
|
|
47387
47400
|
var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
@@ -47432,6 +47445,9 @@ var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
|
47432
47445
|
}), /*#__PURE__*/React__default.createElement(Box, {
|
|
47433
47446
|
padding: "16px 0px"
|
|
47434
47447
|
}, /*#__PURE__*/React__default.createElement(SolidDivider$1, null)), /*#__PURE__*/React__default.createElement(LabeledAmount$1, {
|
|
47448
|
+
version: "v2",
|
|
47449
|
+
as: "h3",
|
|
47450
|
+
variant: "small",
|
|
47435
47451
|
extraStyles: "font-weight: ".concat(FONT_WEIGHT_REGULAR, "; font-size: 14px;"),
|
|
47436
47452
|
label: "Amount paid",
|
|
47437
47453
|
amount: displayCurrency(voidableAmountPaid)
|
|
@@ -47439,15 +47455,18 @@ var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
|
47439
47455
|
, subtotal ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Box, {
|
|
47440
47456
|
padding: "0.5rem 0"
|
|
47441
47457
|
}, /*#__PURE__*/React__default.createElement(LabeledAmount$1, {
|
|
47458
|
+
version: "v2",
|
|
47442
47459
|
variant: themeValues.labeledAmountSubtotal,
|
|
47443
47460
|
label: "Subtotal",
|
|
47444
|
-
amount: displayCurrency(subtotal)
|
|
47461
|
+
amount: displayCurrency(subtotal),
|
|
47462
|
+
as: "h3"
|
|
47445
47463
|
}), feeElems), /*#__PURE__*/React__default.createElement(SolidDivider$1, null)) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null), /*#__PURE__*/React__default.createElement(LabeledAmount$1, {
|
|
47446
|
-
|
|
47464
|
+
version: "v2",
|
|
47465
|
+
as: "h3",
|
|
47447
47466
|
variant: themeValues.labeledAmountTotal,
|
|
47448
47467
|
label: hasVoidablePaymentsSection ? "Remaining amount due" : "Total",
|
|
47449
47468
|
amount: displayCurrency(typeof remainingBalance === "number" ? remainingBalance : total),
|
|
47450
|
-
extraStyles:
|
|
47469
|
+
extraStyles: "margin-top: 1rem;"
|
|
47451
47470
|
}));
|
|
47452
47471
|
};
|
|
47453
47472
|
|
|
@@ -47626,7 +47645,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
47626
47645
|
return fee.amount > 0;
|
|
47627
47646
|
}).map(function (_ref5) {
|
|
47628
47647
|
var amount = _ref5.amount,
|
|
47629
|
-
rest = _objectWithoutProperties(_ref5, _excluded$
|
|
47648
|
+
rest = _objectWithoutProperties(_ref5, _excluded$y);
|
|
47630
47649
|
|
|
47631
47650
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
47632
47651
|
amount: displayCurrency(amount)
|
|
@@ -47655,6 +47674,8 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
47655
47674
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
47656
47675
|
padding: "4px 0"
|
|
47657
47676
|
}), /*#__PURE__*/React__default.createElement(LabeledAmount$1, _extends({
|
|
47677
|
+
version: "v2",
|
|
47678
|
+
as: "h3",
|
|
47658
47679
|
key: fee.label,
|
|
47659
47680
|
variant: themeValues.labeledAmountSubtotal
|
|
47660
47681
|
}, fee)));
|
|
@@ -47698,7 +47719,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
47698
47719
|
align: "center"
|
|
47699
47720
|
}, /*#__PURE__*/React__default.createElement(Title$1, {
|
|
47700
47721
|
weight: FONT_WEIGHT_BOLD,
|
|
47701
|
-
as: "
|
|
47722
|
+
as: "h2",
|
|
47702
47723
|
extraStyles: "font-size: 1.375rem;",
|
|
47703
47724
|
id: "payment-details-title"
|
|
47704
47725
|
}, titleText), /*#__PURE__*/React__default.createElement(Title$1, {
|
|
@@ -47706,7 +47727,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
47706
47727
|
as: "p",
|
|
47707
47728
|
extraStyles: "font-size: 1.375rem;"
|
|
47708
47729
|
}, displayCurrency(total)))) : /*#__PURE__*/React__default.createElement(Title$1, {
|
|
47709
|
-
as: "
|
|
47730
|
+
as: "h2",
|
|
47710
47731
|
weight: FONT_WEIGHT_BOLD,
|
|
47711
47732
|
margin: "1rem 0 0 0",
|
|
47712
47733
|
extraStyles: "font-size: 1.75rem;",
|
|
@@ -47791,7 +47812,8 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
|
47791
47812
|
continueAction: function continueAction() {
|
|
47792
47813
|
toggleAccepted(true);
|
|
47793
47814
|
toggleOpen(false);
|
|
47794
|
-
}
|
|
47815
|
+
},
|
|
47816
|
+
initialFocusSelector: "[name='Close']"
|
|
47795
47817
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
47796
47818
|
variant: "pS",
|
|
47797
47819
|
onClick: function onClick() {
|
|
@@ -47804,7 +47826,9 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
|
47804
47826
|
color: themeValues.linkColor,
|
|
47805
47827
|
weight: themeValues.fontWeight,
|
|
47806
47828
|
hoverStyles: themeValues.modalLinkHoverFocus,
|
|
47807
|
-
extraStyles: "cursor: pointer;"
|
|
47829
|
+
extraStyles: "cursor: pointer;",
|
|
47830
|
+
role: "button",
|
|
47831
|
+
className: "modal-trigger"
|
|
47808
47832
|
}, link));
|
|
47809
47833
|
};
|
|
47810
47834
|
|
|
@@ -47861,7 +47885,9 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
|
47861
47885
|
variant = _ref.variant,
|
|
47862
47886
|
_ref$linkVariant = _ref.linkVariant,
|
|
47863
47887
|
linkVariant = _ref$linkVariant === void 0 ? "p" : _ref$linkVariant,
|
|
47864
|
-
themeValues = _ref.themeValues
|
|
47888
|
+
themeValues = _ref.themeValues,
|
|
47889
|
+
_ref$initialFocusSele = _ref.initialFocusSelector,
|
|
47890
|
+
initialFocusSelector = _ref$initialFocusSele === void 0 ? "" : _ref$initialFocusSele;
|
|
47865
47891
|
return /*#__PURE__*/React__default.createElement(Modal$1, {
|
|
47866
47892
|
modalOpen: isOpen,
|
|
47867
47893
|
hideModal: function hideModal() {
|
|
@@ -47887,7 +47913,8 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
|
47887
47913
|
continueAction: function continueAction() {
|
|
47888
47914
|
toggleAccepted(true);
|
|
47889
47915
|
toggleOpen(false);
|
|
47890
|
-
}
|
|
47916
|
+
},
|
|
47917
|
+
initialFocusSelector: initialFocusSelector
|
|
47891
47918
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
47892
47919
|
variant: linkVariant,
|
|
47893
47920
|
onClick: function onClick() {
|
|
@@ -47900,7 +47927,10 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
|
47900
47927
|
color: themeValues.linkColor,
|
|
47901
47928
|
weight: themeValues.fontWeight,
|
|
47902
47929
|
hoverStyles: themeValues.modalLinkHoverFocus,
|
|
47903
|
-
extraStyles: "display: inline-block; width: fit-content; cursor: pointer"
|
|
47930
|
+
extraStyles: "display: inline-block; width: fit-content; cursor: pointer",
|
|
47931
|
+
role: "button" // This should always be a "button" since it opens a modal
|
|
47932
|
+
,
|
|
47933
|
+
className: "modal-trigger"
|
|
47904
47934
|
}, link));
|
|
47905
47935
|
};
|
|
47906
47936
|
|
|
@@ -47913,7 +47943,9 @@ var TermsAndConditionsControlV1 = function TermsAndConditionsControlV1(_ref) {
|
|
|
47913
47943
|
terms = _ref.terms,
|
|
47914
47944
|
_ref$error = _ref.error,
|
|
47915
47945
|
error = _ref$error === void 0 ? false : _ref$error,
|
|
47916
|
-
linkVariant = _ref.linkVariant
|
|
47946
|
+
linkVariant = _ref.linkVariant,
|
|
47947
|
+
_ref$initialFocusSele = _ref.initialFocusSelector,
|
|
47948
|
+
initialFocusSelector = _ref$initialFocusSele === void 0 ? "" : _ref$initialFocusSele;
|
|
47917
47949
|
|
|
47918
47950
|
var _useState = React.useState(false),
|
|
47919
47951
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -47935,7 +47967,8 @@ var TermsAndConditionsControlV1 = function TermsAndConditionsControlV1(_ref) {
|
|
|
47935
47967
|
terms: terms,
|
|
47936
47968
|
isOpen: showTerms,
|
|
47937
47969
|
toggleOpen: toggleShowTerms,
|
|
47938
|
-
linkVariant: linkVariant
|
|
47970
|
+
linkVariant: linkVariant,
|
|
47971
|
+
initialFocusSelector: initialFocusSelector
|
|
47939
47972
|
})))));
|
|
47940
47973
|
};
|
|
47941
47974
|
|
|
@@ -47966,7 +47999,9 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
47966
47999
|
_ref$checkboxMargin = _ref.checkboxMargin,
|
|
47967
48000
|
checkboxMargin = _ref$checkboxMargin === void 0 ? "4px 8px 4px 4px" : _ref$checkboxMargin,
|
|
47968
48001
|
_ref$modalTitle = _ref.modalTitle,
|
|
47969
|
-
modalTitle = _ref$modalTitle === void 0 ? "Terms and Conditions" : _ref$modalTitle
|
|
48002
|
+
modalTitle = _ref$modalTitle === void 0 ? "Terms and Conditions" : _ref$modalTitle,
|
|
48003
|
+
_ref$initialFocusSele = _ref.initialFocusSelector,
|
|
48004
|
+
initialFocusSelector = _ref$initialFocusSele === void 0 ? "" : _ref$initialFocusSele;
|
|
47970
48005
|
|
|
47971
48006
|
var _useState = React.useState(false),
|
|
47972
48007
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -48022,7 +48057,8 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
48022
48057
|
isOpen: showTerms,
|
|
48023
48058
|
toggleOpen: toggleTerms,
|
|
48024
48059
|
linkVariant: modalVariant,
|
|
48025
|
-
title: modalTitle
|
|
48060
|
+
title: modalTitle,
|
|
48061
|
+
initialFocusSelector: initialFocusSelector
|
|
48026
48062
|
})), /*#__PURE__*/React__default.createElement("div", {
|
|
48027
48063
|
"aria-live": "polite",
|
|
48028
48064
|
"aria-atomic": true
|
|
@@ -48033,12 +48069,12 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
48033
48069
|
}, errorMessage))))));
|
|
48034
48070
|
};
|
|
48035
48071
|
|
|
48036
|
-
var _excluded$
|
|
48072
|
+
var _excluded$z = ["version"];
|
|
48037
48073
|
|
|
48038
48074
|
var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
48039
48075
|
var _ref$version = _ref.version,
|
|
48040
48076
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
48041
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
48077
|
+
rest = _objectWithoutProperties(_ref, _excluded$z);
|
|
48042
48078
|
|
|
48043
48079
|
var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
|
|
48044
48080
|
return /*#__PURE__*/React__default.createElement(TermsAndConditionsControl, rest);
|
|
@@ -48223,7 +48259,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48223
48259
|
version: "v2",
|
|
48224
48260
|
showCheckbox: false,
|
|
48225
48261
|
description: "View",
|
|
48226
|
-
terms: termsContent
|
|
48262
|
+
terms: termsContent,
|
|
48263
|
+
initialFocusSelector: ".modal-close-button"
|
|
48227
48264
|
})))));
|
|
48228
48265
|
};
|
|
48229
48266
|
|
|
@@ -48419,7 +48456,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48419
48456
|
version: "v2",
|
|
48420
48457
|
showCheckbox: false,
|
|
48421
48458
|
description: "View",
|
|
48422
|
-
terms: termsContent
|
|
48459
|
+
terms: termsContent,
|
|
48460
|
+
initialFocusSelector: ".modal-close-button"
|
|
48423
48461
|
})))));
|
|
48424
48462
|
};
|
|
48425
48463
|
|
|
@@ -48715,6 +48753,7 @@ var fallbackValues$Q = {
|
|
|
48715
48753
|
focusStyles: focusStyles
|
|
48716
48754
|
};
|
|
48717
48755
|
|
|
48756
|
+
var _excluded$A = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired"];
|
|
48718
48757
|
/*
|
|
48719
48758
|
Takes an array of section objects, each object should look like:
|
|
48720
48759
|
{
|
|
@@ -48761,11 +48800,39 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48761
48800
|
containerStyles = _ref$containerStyles === void 0 ? "" : _ref$containerStyles,
|
|
48762
48801
|
ariaDescribedBy = _ref.ariaDescribedBy,
|
|
48763
48802
|
_ref$isSectionRequire = _ref.isSectionRequired,
|
|
48764
|
-
isSectionRequired = _ref$isSectionRequire === void 0 ? false : _ref$isSectionRequire
|
|
48803
|
+
isSectionRequired = _ref$isSectionRequire === void 0 ? false : _ref$isSectionRequire,
|
|
48804
|
+
rest = _objectWithoutProperties(_ref, _excluded$A);
|
|
48805
|
+
|
|
48806
|
+
var _useState = React.useState(null),
|
|
48807
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
48808
|
+
focused = _useState2[0],
|
|
48809
|
+
setFocused = _useState2[1];
|
|
48810
|
+
|
|
48811
|
+
var sectionRefs = React.useRef(_toConsumableArray(Array(sections.length)).map(function () {
|
|
48812
|
+
return /*#__PURE__*/React.createRef();
|
|
48813
|
+
}));
|
|
48814
|
+
|
|
48815
|
+
var handleKeyDown = function handleKeyDown(id, e, i) {
|
|
48816
|
+
if (e.currentTarget !== e.target) {
|
|
48817
|
+
return;
|
|
48818
|
+
} // Allow Enter and Space to select a section
|
|
48819
|
+
|
|
48765
48820
|
|
|
48766
|
-
|
|
48767
|
-
|
|
48821
|
+
if (e.keyCode === ENTER || e.keyCode === SPACEBAR) {
|
|
48822
|
+
e.preventDefault();
|
|
48768
48823
|
toggleOpenSection(id);
|
|
48824
|
+
} // Allow Up and Down arrow navigation between sections
|
|
48825
|
+
|
|
48826
|
+
|
|
48827
|
+
if (e.keyCode == ARROW_UP || e.keyCode == ARROW_DOWN || e.keyCode == ARROW_LEFT || e.keyCode == ARROW_RIGHT) {
|
|
48828
|
+
var _sectionRefs$current$, _sectionRefs$current$2, _sections$nextIndex, _sections$nextIndex2;
|
|
48829
|
+
|
|
48830
|
+
e.preventDefault();
|
|
48831
|
+
var indexIncrement = e.keyCode == ARROW_RIGHT || e.keyCode == ARROW_DOWN ? 1 : -1;
|
|
48832
|
+
var nextIndex = wrapIndex(i + indexIncrement, sections.length);
|
|
48833
|
+
sectionRefs === null || sectionRefs === void 0 ? void 0 : (_sectionRefs$current$ = sectionRefs.current[nextIndex]) === null || _sectionRefs$current$ === void 0 ? void 0 : (_sectionRefs$current$2 = _sectionRefs$current$.current) === null || _sectionRefs$current$2 === void 0 ? void 0 : _sectionRefs$current$2.focus();
|
|
48834
|
+
setFocused((_sections$nextIndex = sections[nextIndex]) === null || _sections$nextIndex === void 0 ? void 0 : _sections$nextIndex.id);
|
|
48835
|
+
toggleOpenSection((_sections$nextIndex2 = sections[nextIndex]) === null || _sections$nextIndex2 === void 0 ? void 0 : _sections$nextIndex2.id);
|
|
48769
48836
|
}
|
|
48770
48837
|
};
|
|
48771
48838
|
|
|
@@ -48804,34 +48871,29 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48804
48871
|
var fade = _ref4.fade;
|
|
48805
48872
|
return fade && "opacity: 0.4;";
|
|
48806
48873
|
});
|
|
48807
|
-
|
|
48808
|
-
var _useState = React.useState(null),
|
|
48809
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
48810
|
-
focused = _useState2[0],
|
|
48811
|
-
setFocused = _useState2[1];
|
|
48812
|
-
|
|
48813
48874
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
48814
48875
|
padding: "1px",
|
|
48815
48876
|
border: "1px solid ".concat(themeValues.borderColor),
|
|
48816
48877
|
borderRadius: "4px",
|
|
48817
48878
|
extraStyles: containerStyles
|
|
48818
|
-
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
48879
|
+
}, /*#__PURE__*/React__default.createElement(Stack, _extends({
|
|
48819
48880
|
childGap: "0",
|
|
48820
|
-
|
|
48881
|
+
role: "radiogroup",
|
|
48821
48882
|
"aria-required": isSectionRequired
|
|
48822
|
-
}, sections.filter(function (section) {
|
|
48883
|
+
}, rest), sections.filter(function (section) {
|
|
48823
48884
|
return !section.hidden;
|
|
48824
|
-
}).map(function (section) {
|
|
48885
|
+
}).map(function (section, i) {
|
|
48825
48886
|
return /*#__PURE__*/React__default.createElement(Motion, {
|
|
48826
48887
|
tabIndex: section.hideRadioButton || section.disabled ? "-1" : "0",
|
|
48827
|
-
|
|
48828
|
-
|
|
48888
|
+
ref: sectionRefs.current[i],
|
|
48889
|
+
onBlur: function onBlur() {
|
|
48890
|
+
return !section.disabled && setFocused(null);
|
|
48829
48891
|
},
|
|
48830
48892
|
onFocus: function onFocus() {
|
|
48831
48893
|
return !section.disabled && setFocused(section.id);
|
|
48832
48894
|
},
|
|
48833
|
-
|
|
48834
|
-
return !section.disabled &&
|
|
48895
|
+
onKeyDown: function onKeyDown(e) {
|
|
48896
|
+
return !section.disabled && handleKeyDown(section.id, e, i);
|
|
48835
48897
|
},
|
|
48836
48898
|
hoverStyles: themeValues.focusStyles,
|
|
48837
48899
|
animate: openSection === section.id ? "open" : "closed",
|
|
@@ -48841,7 +48903,9 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48841
48903
|
role: "radio",
|
|
48842
48904
|
"aria-checked": openSection === section.id,
|
|
48843
48905
|
"aria-disabled": section.disabled,
|
|
48844
|
-
"aria-required": section
|
|
48906
|
+
"aria-required": section.required,
|
|
48907
|
+
"aria-labelledby": section.id,
|
|
48908
|
+
"aria-describedby": "right-icons-".concat(idString(section))
|
|
48845
48909
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
48846
48910
|
childGap: "0"
|
|
48847
48911
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -48880,7 +48944,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48880
48944
|
return toggleOpenSection(section.id);
|
|
48881
48945
|
},
|
|
48882
48946
|
tabIndex: "-1",
|
|
48883
|
-
isRequired: section
|
|
48947
|
+
isRequired: section.required
|
|
48884
48948
|
})), section.titleIcon && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48885
48949
|
align: "center"
|
|
48886
48950
|
}, section.titleIcon), /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -48890,9 +48954,10 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48890
48954
|
htmlFor: "radio-input-".concat(idString(section)),
|
|
48891
48955
|
color: CHARADE_GREY
|
|
48892
48956
|
}, section.title))), section.rightIcons && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48957
|
+
id: "right-icons-".concat(idString(section)),
|
|
48893
48958
|
childGap: "0.5rem",
|
|
48894
|
-
"aria-label":
|
|
48895
|
-
role:
|
|
48959
|
+
"aria-label": section.rightIconsLabel || null,
|
|
48960
|
+
role: section.rightIconsRole || null
|
|
48896
48961
|
}, section.rightIcons.map(function (icon) {
|
|
48897
48962
|
return /*#__PURE__*/React__default.createElement(RightIcon, {
|
|
48898
48963
|
src: icon.img,
|