@thecb/components 9.3.2-beta.1 → 9.3.3-beta.10
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 +397 -263
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.esm.js +397 -264
- package/dist/index.esm.js.map +1 -1
- package/dist/src/apps/checkout/pages/payment/sub-pages/payment-amount/PaymentAmount_old.js +49322 -0
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- package/src/components/.DS_Store +0 -0
- package/src/components/atoms/.DS_Store +0 -0
- package/src/components/atoms/button-with-action/ButtonWithAction.js +76 -70
- package/src/components/atoms/checkbox/Checkbox.js +10 -2
- package/src/components/atoms/checkbox/Checkbox.stories.js +1 -0
- package/src/components/atoms/country-dropdown/CountryDropdown.js +2 -0
- package/src/components/atoms/dropdown/Dropdown.js +11 -8
- package/src/components/atoms/form-layouts/FormInput.js +3 -0
- package/src/components/atoms/form-select/FormSelect.js +3 -1
- package/src/components/atoms/icons/.DS_Store +0 -0
- package/src/components/atoms/icons/AccountNumberImage.js +2 -0
- package/src/components/atoms/icons/BankIcon.js +2 -0
- package/src/components/atoms/icons/CheckmarkIcon.js +2 -0
- package/src/components/atoms/icons/GenericCard.js +2 -0
- package/src/components/atoms/icons/GenericCardLarge.js +2 -0
- package/src/components/atoms/icons/KebabMenuIcon.d.ts +1 -0
- package/src/components/atoms/icons/KebabMenuIcon.js +38 -0
- package/src/components/atoms/icons/RoutingNumberImage.js +2 -0
- package/src/components/atoms/icons/TrashIcon.js +42 -40
- package/src/components/atoms/icons/icons.stories.js +3 -1
- package/src/components/atoms/icons/index.d.ts +1 -0
- package/src/components/atoms/icons/index.js +3 -1
- package/src/components/atoms/layouts/Motion.js +7 -10
- package/src/components/atoms/state-province-dropdown/StateProvinceDropdown.js +3 -1
- 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/address-form/AddressForm.js +5 -0
- package/src/components/molecules/collapsible-section/CollapsibleSection.js +2 -1
- package/src/components/molecules/email-form/EmailForm.js +3 -1
- package/src/components/molecules/modal/Modal.js +18 -2
- package/src/components/molecules/obligation/modules/AutopayModalModule.js +3 -13
- package/src/components/molecules/payment-form-ach/PaymentFormACH.js +7 -0
- package/src/components/molecules/payment-form-card/PaymentFormCard.js +6 -0
- package/src/components/molecules/phone-form/PhoneForm.js +3 -1
- package/src/components/molecules/popover/Popover.js +2 -1
- package/src/components/molecules/popup-menu/PopupMenu.js +152 -0
- package/src/components/molecules/popup-menu/PopupMenu.stories.js +40 -0
- package/src/components/molecules/popup-menu/PopupMenu.styled.js +20 -0
- package/src/components/molecules/popup-menu/PopupMenu.theme.js +11 -0
- package/src/components/molecules/popup-menu/index.d.ts +25 -0
- package/src/components/molecules/popup-menu/index.js +3 -0
- package/src/components/molecules/popup-menu/popup-menu-item/PopupMenuItem.js +79 -0
- package/src/components/molecules/popup-menu/popup-menu-item/PopupMenuItem.styled.js +27 -0
- package/src/components/molecules/popup-menu/popup-menu-item/PopupMenuItem.theme.js +23 -0
- package/src/components/molecules/radio-section/RadioSection.js +62 -13
- package/src/components/molecules/radio-section/RadioSection.stories.js +4 -2
- package/src/components/molecules/radio-section/radio-button/RadioButton.js +4 -2
- package/src/components/molecules/terms-and-conditions/TermsAndConditions.stories.js +22 -3
- package/src/components/molecules/terms-and-conditions/TermsAndConditionsControlV1.js +3 -1
- package/src/components/molecules/terms-and-conditions/TermsAndConditionsControlV2.js +7 -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/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",
|
|
@@ -12926,7 +12937,7 @@ var Spinner = function Spinner(_ref) {
|
|
|
12926
12937
|
*/
|
|
12927
12938
|
|
|
12928
12939
|
|
|
12929
|
-
var ButtonWithAction = function
|
|
12940
|
+
var ButtonWithAction = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
12930
12941
|
var _ref2$action = _ref2.action,
|
|
12931
12942
|
action = _ref2$action === void 0 ? noop : _ref2$action,
|
|
12932
12943
|
_ref2$variant = _ref2.variant,
|
|
@@ -12957,6 +12968,7 @@ var ButtonWithAction = function ButtonWithAction(_ref2) {
|
|
|
12957
12968
|
var activeStyles = "\n outline: none;\n background-color: ".concat(themeValues.activeBackgroundColor, ";\n border-color: ").concat(themeValues.activeBorderColor, ";\n color: ").concat(themeValues.activeColor, ";\n text-decoration: ").concat(variant === "ghost" || variant === "smallGhost" ? "underline" : "none", ";\n ");
|
|
12958
12969
|
var 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 ".concat(extraDisabledStyles, "\n ");
|
|
12959
12970
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
12971
|
+
ref: ref,
|
|
12960
12972
|
variant: variant,
|
|
12961
12973
|
padding: themeValues.padding,
|
|
12962
12974
|
minHeight: themeValues.height,
|
|
@@ -12985,7 +12997,7 @@ var ButtonWithAction = function ButtonWithAction(_ref2) {
|
|
|
12985
12997
|
textWrap: textWrap,
|
|
12986
12998
|
extraStyles: textExtraStyles
|
|
12987
12999
|
}, text)));
|
|
12988
|
-
};
|
|
13000
|
+
});
|
|
12989
13001
|
|
|
12990
13002
|
var primaryColor = {
|
|
12991
13003
|
info: "".concat(WHITE),
|
|
@@ -13683,7 +13695,9 @@ var AccountNumberImage = function AccountNumberImage() {
|
|
|
13683
13695
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13684
13696
|
width: "371",
|
|
13685
13697
|
height: "164",
|
|
13686
|
-
viewBox: "0 0 371 164"
|
|
13698
|
+
viewBox: "0 0 371 164",
|
|
13699
|
+
role: "img",
|
|
13700
|
+
"aria-label": "A check with the account number highlighted in the bottom center"
|
|
13687
13701
|
}, /*#__PURE__*/React__default.createElement("g", {
|
|
13688
13702
|
fill: "none",
|
|
13689
13703
|
fillRule: "evenodd",
|
|
@@ -13764,7 +13778,9 @@ var RoutingNumberImage = function RoutingNumberImage() {
|
|
|
13764
13778
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13765
13779
|
width: "371",
|
|
13766
13780
|
height: "164",
|
|
13767
|
-
viewBox: "0 0 371 164"
|
|
13781
|
+
viewBox: "0 0 371 164",
|
|
13782
|
+
role: "img",
|
|
13783
|
+
"aria-label": "A check with the routing number highlighted in the lower left hand corner"
|
|
13768
13784
|
}, /*#__PURE__*/React__default.createElement("g", {
|
|
13769
13785
|
fill: "none",
|
|
13770
13786
|
fillRule: "evenodd",
|
|
@@ -13847,7 +13863,9 @@ var CheckmarkIcon = function CheckmarkIcon() {
|
|
|
13847
13863
|
viewBox: "0 0 98 98",
|
|
13848
13864
|
version: "1.1",
|
|
13849
13865
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13850
|
-
xmlnsXlink: "http://www.w3.org/1999/xlink"
|
|
13866
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
13867
|
+
role: "img",
|
|
13868
|
+
"aria-label": "Successful payment, green checkmark"
|
|
13851
13869
|
}, /*#__PURE__*/React__default.createElement("g", {
|
|
13852
13870
|
id: "Cityville-Checkout---Desktop---Logged-In",
|
|
13853
13871
|
stroke: "none",
|
|
@@ -13892,7 +13910,9 @@ var BankIcon = function BankIcon() {
|
|
|
13892
13910
|
height: "18",
|
|
13893
13911
|
viewBox: "0 0 28 18",
|
|
13894
13912
|
fill: "none",
|
|
13895
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
13913
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
13914
|
+
role: "img",
|
|
13915
|
+
"aria-label": "Check Payment"
|
|
13896
13916
|
}, /*#__PURE__*/React__default.createElement("path", {
|
|
13897
13917
|
d: "M0 2.25C0 1.00736 1.04467 0 2.33333 0H25.6667C26.9553 0 28 1.00736 28 2.25V15.75C28 16.9926 26.9553 18 25.6667 18H2.33333C1.04467 18 0 16.9926 0 15.75V2.25Z",
|
|
13898
13918
|
fill: "#E4F4FD"
|
|
@@ -13939,7 +13959,9 @@ var GenericCard = function GenericCard() {
|
|
|
13939
13959
|
height: "18",
|
|
13940
13960
|
viewBox: "0 0 28 18",
|
|
13941
13961
|
fill: "none",
|
|
13942
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
13962
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
13963
|
+
role: "img",
|
|
13964
|
+
"aria-label": "Card Payment"
|
|
13943
13965
|
}, /*#__PURE__*/React__default.createElement("rect", {
|
|
13944
13966
|
width: "28",
|
|
13945
13967
|
height: "18",
|
|
@@ -15198,7 +15220,9 @@ var GenericCardLarge = function GenericCardLarge() {
|
|
|
15198
15220
|
height: "24",
|
|
15199
15221
|
viewBox: "0 0 36 24",
|
|
15200
15222
|
fill: "none",
|
|
15201
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
15223
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
15224
|
+
role: "img",
|
|
15225
|
+
"aria-label": "Card Payment"
|
|
15202
15226
|
}, /*#__PURE__*/React__default.createElement("rect", {
|
|
15203
15227
|
width: "36",
|
|
15204
15228
|
height: "24",
|
|
@@ -15287,7 +15311,8 @@ var ShoppingCartIcon = function ShoppingCartIcon() {
|
|
|
15287
15311
|
};
|
|
15288
15312
|
|
|
15289
15313
|
var TrashIcon = function TrashIcon(_ref) {
|
|
15290
|
-
var themeValues = _ref.themeValues
|
|
15314
|
+
var themeValues = _ref.themeValues,
|
|
15315
|
+
iconFill = _ref.iconFill;
|
|
15291
15316
|
return /*#__PURE__*/React__default.createElement("svg", {
|
|
15292
15317
|
width: "20px",
|
|
15293
15318
|
height: "20px",
|
|
@@ -15311,12 +15336,12 @@ var TrashIcon = function TrashIcon(_ref) {
|
|
|
15311
15336
|
xlinkHref: "#trash-path-1"
|
|
15312
15337
|
})), /*#__PURE__*/React__default.createElement("use", {
|
|
15313
15338
|
id: "trash-Mask",
|
|
15314
|
-
fill: themeValues.singleIconColor,
|
|
15339
|
+
fill: iconFill !== null && iconFill !== void 0 ? iconFill : themeValues.singleIconColor,
|
|
15315
15340
|
fillRule: "nonzero",
|
|
15316
15341
|
xlinkHref: "#trash-path-1"
|
|
15317
15342
|
}), /*#__PURE__*/React__default.createElement("polygon", {
|
|
15318
15343
|
id: "trash-Path",
|
|
15319
|
-
fill: themeValues.singleIconColor,
|
|
15344
|
+
fill: iconFill !== null && iconFill !== void 0 ? iconFill : themeValues.singleIconColor,
|
|
15320
15345
|
fillRule: "nonzero",
|
|
15321
15346
|
mask: "url(#trash-mask-2)",
|
|
15322
15347
|
points: "0 0 20 0 20 20 0 20"
|
|
@@ -18247,6 +18272,34 @@ var PlusCircleIcon = function PlusCircleIcon(_ref) {
|
|
|
18247
18272
|
}));
|
|
18248
18273
|
};
|
|
18249
18274
|
|
|
18275
|
+
var KebabMenuIcon = function KebabMenuIcon() {
|
|
18276
|
+
return /*#__PURE__*/React__default.createElement("svg", {
|
|
18277
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
18278
|
+
width: "21",
|
|
18279
|
+
height: "32",
|
|
18280
|
+
viewBox: "0 0 21 32",
|
|
18281
|
+
fill: "none"
|
|
18282
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
18283
|
+
d: "M0 4C0 1.79086 1.79086 0 4 0L17 0C19.2091 0 21 1.79086 21 4V28C21 30.2091 19.2091 32 17 32H4C1.79086 32 0 30.2091 0 28L0 4Z",
|
|
18284
|
+
fill: "none"
|
|
18285
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
18286
|
+
fillRule: "evenodd",
|
|
18287
|
+
clipRule: "evenodd",
|
|
18288
|
+
d: "M10.5 6C9.39333 6 8.5 6.89333 8.5 8C8.5 9.10667 9.39333 10 10.5 10C11.6067 10 12.5 9.10667 12.5 8C12.5 6.89333 11.6067 6 10.5 6Z",
|
|
18289
|
+
fill: "#3B5BDB"
|
|
18290
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
18291
|
+
fillRule: "evenodd",
|
|
18292
|
+
clipRule: "evenodd",
|
|
18293
|
+
d: "M10.5 14C9.39333 14 8.5 14.8933 8.5 16C8.5 17.1067 9.39333 18 10.5 18C11.6067 18 12.5 17.1067 12.5 16C12.5 14.8933 11.6067 14 10.5 14Z",
|
|
18294
|
+
fill: "#3B5BDB"
|
|
18295
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
18296
|
+
fillRule: "evenodd",
|
|
18297
|
+
clipRule: "evenodd",
|
|
18298
|
+
d: "M10.5 22C9.39333 22 8.5 22.9067 8.5 24C8.5 25.0933 9.40667 26 10.5 26C11.5933 26 12.5 25.0933 12.5 24C12.5 22.9067 11.6067 22 10.5 22Z",
|
|
18299
|
+
fill: "#3B5BDB"
|
|
18300
|
+
}));
|
|
18301
|
+
};
|
|
18302
|
+
|
|
18250
18303
|
var color$2 = "#15749D";
|
|
18251
18304
|
var hoverColor$1 = "#116285";
|
|
18252
18305
|
var activeColor$1 = "#0E506D";
|
|
@@ -22073,6 +22126,14 @@ var fallbackValues$d = {
|
|
|
22073
22126
|
disabledCheckedStyles: disabledCheckedStyles
|
|
22074
22127
|
};
|
|
22075
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
|
+
|
|
22076
22137
|
var CheckboxContainer = styled__default.div.withConfig({
|
|
22077
22138
|
displayName: "Checkbox__CheckboxContainer",
|
|
22078
22139
|
componentId: "sc-36kqbv-0"
|
|
@@ -22133,6 +22194,7 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
22133
22194
|
checkboxMargin = _ref4$checkboxMargin === void 0 ? "0 16px 0 0" : _ref4$checkboxMargin,
|
|
22134
22195
|
extraStyles = _ref4.extraStyles,
|
|
22135
22196
|
textExtraStyles = _ref4.textExtraStyles,
|
|
22197
|
+
labelledById = _ref4.labelledById,
|
|
22136
22198
|
_ref4$dataQa = _ref4.dataQa,
|
|
22137
22199
|
dataQa = _ref4$dataQa === void 0 ? null : _ref4$dataQa;
|
|
22138
22200
|
|
|
@@ -22142,11 +22204,14 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
22142
22204
|
setFocused = _useState2[1];
|
|
22143
22205
|
|
|
22144
22206
|
var handleClick = function handleClick(e, func) {
|
|
22145
|
-
if (
|
|
22207
|
+
if (e.keyCode === ENTER) {
|
|
22146
22208
|
func();
|
|
22147
22209
|
}
|
|
22148
22210
|
};
|
|
22149
22211
|
|
|
22212
|
+
var titleId = title ? "checkboxlabel-".concat(name) : undefined;
|
|
22213
|
+
var ariaLabelledById = labelledById !== null && labelledById !== void 0 ? labelledById : titleId;
|
|
22214
|
+
var ariaLabel = ariaLabelledById ? undefined : name;
|
|
22150
22215
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
22151
22216
|
padding: "0",
|
|
22152
22217
|
tabIndex: "0",
|
|
@@ -22170,7 +22235,8 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
22170
22235
|
id: "checkbox-".concat(name),
|
|
22171
22236
|
disabled: disabled,
|
|
22172
22237
|
name: name,
|
|
22173
|
-
"aria-label":
|
|
22238
|
+
"aria-label": ariaLabel,
|
|
22239
|
+
"aria-labelledby": ariaLabelledById,
|
|
22174
22240
|
checked: checked,
|
|
22175
22241
|
onChange: onChange,
|
|
22176
22242
|
tabIndex: "-1",
|
|
@@ -22197,6 +22263,7 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
22197
22263
|
}, /*#__PURE__*/React__default.createElement("polyline", {
|
|
22198
22264
|
points: "20 6 9 17 4 12"
|
|
22199
22265
|
})))), title && /*#__PURE__*/React__default.createElement(Text$1, {
|
|
22266
|
+
id: titleId,
|
|
22200
22267
|
variant: "p",
|
|
22201
22268
|
weight: themeValues.textFontWeight,
|
|
22202
22269
|
color: themeValues.textColor,
|
|
@@ -22427,18 +22494,17 @@ var DropdownIcon = function DropdownIcon() {
|
|
|
22427
22494
|
};
|
|
22428
22495
|
|
|
22429
22496
|
var check = function (it) {
|
|
22430
|
-
return it && it.Math
|
|
22497
|
+
return it && it.Math == Math && it;
|
|
22431
22498
|
};
|
|
22432
22499
|
|
|
22433
22500
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
22434
22501
|
var global_1 =
|
|
22435
|
-
// eslint-disable-next-line es/no-global-this -- safe
|
|
22502
|
+
// eslint-disable-next-line es-x/no-global-this -- safe
|
|
22436
22503
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
22437
22504
|
check(typeof window == 'object' && window) ||
|
|
22438
22505
|
// eslint-disable-next-line no-restricted-globals -- safe
|
|
22439
22506
|
check(typeof self == 'object' && self) ||
|
|
22440
22507
|
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
22441
|
-
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
22442
22508
|
// eslint-disable-next-line no-new-func -- fallback
|
|
22443
22509
|
(function () { return this; })() || Function('return this')();
|
|
22444
22510
|
|
|
@@ -22452,12 +22518,12 @@ var fails = function (exec) {
|
|
|
22452
22518
|
|
|
22453
22519
|
// Detect IE8's incomplete defineProperty implementation
|
|
22454
22520
|
var descriptors = !fails(function () {
|
|
22455
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
22456
|
-
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;
|
|
22457
22523
|
});
|
|
22458
22524
|
|
|
22459
22525
|
var functionBindNative = !fails(function () {
|
|
22460
|
-
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
22526
|
+
// eslint-disable-next-line es-x/no-function-prototype-bind -- safe
|
|
22461
22527
|
var test = (function () { /* empty */ }).bind();
|
|
22462
22528
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
22463
22529
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
@@ -22470,7 +22536,7 @@ var functionCall = functionBindNative ? call.bind(call) : function () {
|
|
|
22470
22536
|
};
|
|
22471
22537
|
|
|
22472
22538
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
22473
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22539
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
22474
22540
|
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
22475
22541
|
|
|
22476
22542
|
// Nashorn ~ JDK8 bug
|
|
@@ -22497,11 +22563,14 @@ var createPropertyDescriptor = function (bitmap, value) {
|
|
|
22497
22563
|
};
|
|
22498
22564
|
|
|
22499
22565
|
var FunctionPrototype = Function.prototype;
|
|
22566
|
+
var bind$1 = FunctionPrototype.bind;
|
|
22500
22567
|
var call$1 = FunctionPrototype.call;
|
|
22501
|
-
var
|
|
22568
|
+
var uncurryThis = functionBindNative && bind$1.bind(call$1, call$1);
|
|
22502
22569
|
|
|
22503
|
-
var functionUncurryThis = functionBindNative ?
|
|
22504
|
-
return
|
|
22570
|
+
var functionUncurryThis = functionBindNative ? function (fn) {
|
|
22571
|
+
return fn && uncurryThis(fn);
|
|
22572
|
+
} : function (fn) {
|
|
22573
|
+
return fn && function () {
|
|
22505
22574
|
return call$1.apply(fn, arguments);
|
|
22506
22575
|
};
|
|
22507
22576
|
};
|
|
@@ -22522,21 +22591,15 @@ var indexedObject = fails(function () {
|
|
|
22522
22591
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
22523
22592
|
return !$Object('z').propertyIsEnumerable(0);
|
|
22524
22593
|
}) ? function (it) {
|
|
22525
|
-
return classofRaw(it)
|
|
22594
|
+
return classofRaw(it) == 'String' ? split(it, '') : $Object(it);
|
|
22526
22595
|
} : $Object;
|
|
22527
22596
|
|
|
22528
|
-
// we can't use just `it == null` since of `document.all` special case
|
|
22529
|
-
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
22530
|
-
var isNullOrUndefined = function (it) {
|
|
22531
|
-
return it === null || it === undefined;
|
|
22532
|
-
};
|
|
22533
|
-
|
|
22534
22597
|
var $TypeError = TypeError;
|
|
22535
22598
|
|
|
22536
22599
|
// `RequireObjectCoercible` abstract operation
|
|
22537
22600
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
22538
22601
|
var requireObjectCoercible = function (it) {
|
|
22539
|
-
if (
|
|
22602
|
+
if (it == undefined) throw $TypeError("Can't call method on " + it);
|
|
22540
22603
|
return it;
|
|
22541
22604
|
};
|
|
22542
22605
|
|
|
@@ -22548,32 +22611,13 @@ var toIndexedObject = function (it) {
|
|
|
22548
22611
|
return indexedObject(requireObjectCoercible(it));
|
|
22549
22612
|
};
|
|
22550
22613
|
|
|
22551
|
-
var documentAll = typeof document == 'object' && document.all;
|
|
22552
|
-
|
|
22553
|
-
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
22554
|
-
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
22555
|
-
var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
|
|
22556
|
-
|
|
22557
|
-
var documentAll_1 = {
|
|
22558
|
-
all: documentAll,
|
|
22559
|
-
IS_HTMLDDA: IS_HTMLDDA
|
|
22560
|
-
};
|
|
22561
|
-
|
|
22562
|
-
var documentAll$1 = documentAll_1.all;
|
|
22563
|
-
|
|
22564
22614
|
// `IsCallable` abstract operation
|
|
22565
22615
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
22566
|
-
var isCallable =
|
|
22567
|
-
return typeof argument == 'function' || argument === documentAll$1;
|
|
22568
|
-
} : function (argument) {
|
|
22616
|
+
var isCallable = function (argument) {
|
|
22569
22617
|
return typeof argument == 'function';
|
|
22570
22618
|
};
|
|
22571
22619
|
|
|
22572
|
-
var
|
|
22573
|
-
|
|
22574
|
-
var isObject = documentAll_1.IS_HTMLDDA ? function (it) {
|
|
22575
|
-
return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll$2;
|
|
22576
|
-
} : function (it) {
|
|
22620
|
+
var isObject = function (it) {
|
|
22577
22621
|
return typeof it == 'object' ? it !== null : isCallable(it);
|
|
22578
22622
|
};
|
|
22579
22623
|
|
|
@@ -22587,7 +22631,7 @@ var getBuiltIn = function (namespace, method) {
|
|
|
22587
22631
|
|
|
22588
22632
|
var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
|
|
22589
22633
|
|
|
22590
|
-
var engineUserAgent =
|
|
22634
|
+
var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
|
|
22591
22635
|
|
|
22592
22636
|
var process$1 = global_1.process;
|
|
22593
22637
|
var Deno = global_1.Deno;
|
|
@@ -22614,29 +22658,24 @@ if (!version && engineUserAgent) {
|
|
|
22614
22658
|
|
|
22615
22659
|
var engineV8Version = version;
|
|
22616
22660
|
|
|
22617
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
|
22618
|
-
|
|
22619
|
-
|
|
22661
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
22620
22662
|
|
|
22621
22663
|
|
|
22622
|
-
var $String = global_1.String;
|
|
22623
22664
|
|
|
22624
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
22625
|
-
var
|
|
22626
|
-
var symbol = Symbol(
|
|
22665
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
|
22666
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
22667
|
+
var symbol = Symbol();
|
|
22627
22668
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
22628
22669
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
22629
|
-
|
|
22630
|
-
// of course, fail.
|
|
22631
|
-
return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
22670
|
+
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
22632
22671
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
22633
22672
|
!Symbol.sham && engineV8Version && engineV8Version < 41;
|
|
22634
22673
|
});
|
|
22635
22674
|
|
|
22636
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
|
22675
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
22637
22676
|
|
|
22638
22677
|
|
|
22639
|
-
var useSymbolAsUid =
|
|
22678
|
+
var useSymbolAsUid = nativeSymbol
|
|
22640
22679
|
&& !Symbol.sham
|
|
22641
22680
|
&& typeof Symbol.iterator == 'symbol';
|
|
22642
22681
|
|
|
@@ -22649,11 +22688,11 @@ var isSymbol = useSymbolAsUid ? function (it) {
|
|
|
22649
22688
|
return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, $Object$1(it));
|
|
22650
22689
|
};
|
|
22651
22690
|
|
|
22652
|
-
var $String
|
|
22691
|
+
var $String = String;
|
|
22653
22692
|
|
|
22654
22693
|
var tryToString = function (argument) {
|
|
22655
22694
|
try {
|
|
22656
|
-
return $String
|
|
22695
|
+
return $String(argument);
|
|
22657
22696
|
} catch (error) {
|
|
22658
22697
|
return 'Object';
|
|
22659
22698
|
}
|
|
@@ -22664,14 +22703,14 @@ var $TypeError$1 = TypeError;
|
|
|
22664
22703
|
// `Assert: IsCallable(argument) is true`
|
|
22665
22704
|
var aCallable = function (argument) {
|
|
22666
22705
|
if (isCallable(argument)) return argument;
|
|
22667
|
-
throw
|
|
22706
|
+
throw $TypeError$1(tryToString(argument) + ' is not a function');
|
|
22668
22707
|
};
|
|
22669
22708
|
|
|
22670
22709
|
// `GetMethod` abstract operation
|
|
22671
22710
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
22672
22711
|
var getMethod = function (V, P) {
|
|
22673
22712
|
var func = V[P];
|
|
22674
|
-
return
|
|
22713
|
+
return func == null ? undefined : aCallable(func);
|
|
22675
22714
|
};
|
|
22676
22715
|
|
|
22677
22716
|
var $TypeError$2 = TypeError;
|
|
@@ -22683,10 +22722,10 @@ var ordinaryToPrimitive = function (input, pref) {
|
|
|
22683
22722
|
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
|
22684
22723
|
if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
|
|
22685
22724
|
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
|
22686
|
-
throw
|
|
22725
|
+
throw $TypeError$2("Can't convert object to primitive value");
|
|
22687
22726
|
};
|
|
22688
22727
|
|
|
22689
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
22728
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
22690
22729
|
var defineProperty = Object.defineProperty;
|
|
22691
22730
|
|
|
22692
22731
|
var defineGlobalProperty = function (key, value) {
|
|
@@ -22703,16 +22742,13 @@ var store = global_1[SHARED] || defineGlobalProperty(SHARED, {});
|
|
|
22703
22742
|
var sharedStore = store;
|
|
22704
22743
|
|
|
22705
22744
|
var shared = createCommonjsModule(function (module) {
|
|
22706
|
-
|
|
22707
|
-
|
|
22708
|
-
|
|
22709
22745
|
(module.exports = function (key, value) {
|
|
22710
22746
|
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
|
22711
22747
|
})('versions', []).push({
|
|
22712
|
-
version: '3.
|
|
22748
|
+
version: '3.24.1',
|
|
22713
22749
|
mode: 'global',
|
|
22714
|
-
copyright: '© 2014-
|
|
22715
|
-
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',
|
|
22716
22752
|
source: 'https://github.com/zloirock/core-js'
|
|
22717
22753
|
});
|
|
22718
22754
|
});
|
|
@@ -22729,7 +22765,7 @@ var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
|
|
|
22729
22765
|
|
|
22730
22766
|
// `HasOwnProperty` abstract operation
|
|
22731
22767
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
22732
|
-
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
22768
|
+
// eslint-disable-next-line es-x/no-object-hasown -- safe
|
|
22733
22769
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
22734
22770
|
return hasOwnProperty(toObject(it), key);
|
|
22735
22771
|
};
|
|
@@ -22742,15 +22778,21 @@ var uid = function (key) {
|
|
|
22742
22778
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
|
|
22743
22779
|
};
|
|
22744
22780
|
|
|
22745
|
-
var Symbol$1 = global_1.Symbol;
|
|
22746
22781
|
var WellKnownSymbolsStore = shared('wks');
|
|
22747
|
-
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;
|
|
22748
22785
|
|
|
22749
22786
|
var wellKnownSymbol = function (name) {
|
|
22750
|
-
if (!hasOwnProperty_1(WellKnownSymbolsStore, name)) {
|
|
22751
|
-
|
|
22752
|
-
|
|
22753
|
-
|
|
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
|
+
}
|
|
22754
22796
|
} return WellKnownSymbolsStore[name];
|
|
22755
22797
|
};
|
|
22756
22798
|
|
|
@@ -22767,7 +22809,7 @@ var toPrimitive = function (input, pref) {
|
|
|
22767
22809
|
if (pref === undefined) pref = 'default';
|
|
22768
22810
|
result = functionCall(exoticToPrim, input, pref);
|
|
22769
22811
|
if (!isObject(result) || isSymbol(result)) return result;
|
|
22770
|
-
throw
|
|
22812
|
+
throw $TypeError$3("Can't convert object to primitive value");
|
|
22771
22813
|
}
|
|
22772
22814
|
if (pref === undefined) pref = 'number';
|
|
22773
22815
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -22790,13 +22832,13 @@ var documentCreateElement = function (it) {
|
|
|
22790
22832
|
|
|
22791
22833
|
// Thanks to IE8 for its funny defineProperty
|
|
22792
22834
|
var ie8DomDefine = !descriptors && !fails(function () {
|
|
22793
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
22835
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
22794
22836
|
return Object.defineProperty(documentCreateElement('div'), 'a', {
|
|
22795
22837
|
get: function () { return 7; }
|
|
22796
|
-
}).a
|
|
22838
|
+
}).a != 7;
|
|
22797
22839
|
});
|
|
22798
22840
|
|
|
22799
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22841
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
22800
22842
|
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
22801
22843
|
|
|
22802
22844
|
// `Object.getOwnPropertyDescriptor` method
|
|
@@ -22817,26 +22859,26 @@ var objectGetOwnPropertyDescriptor = {
|
|
|
22817
22859
|
// V8 ~ Chrome 36-
|
|
22818
22860
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
22819
22861
|
var v8PrototypeDefineBug = descriptors && fails(function () {
|
|
22820
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
22862
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
22821
22863
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
22822
22864
|
value: 42,
|
|
22823
22865
|
writable: false
|
|
22824
|
-
}).prototype
|
|
22866
|
+
}).prototype != 42;
|
|
22825
22867
|
});
|
|
22826
22868
|
|
|
22827
|
-
var $String$
|
|
22869
|
+
var $String$1 = String;
|
|
22828
22870
|
var $TypeError$4 = TypeError;
|
|
22829
22871
|
|
|
22830
22872
|
// `Assert: Type(argument) is Object`
|
|
22831
22873
|
var anObject = function (argument) {
|
|
22832
22874
|
if (isObject(argument)) return argument;
|
|
22833
|
-
throw
|
|
22875
|
+
throw $TypeError$4($String$1(argument) + ' is not an object');
|
|
22834
22876
|
};
|
|
22835
22877
|
|
|
22836
22878
|
var $TypeError$5 = TypeError;
|
|
22837
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
22879
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
22838
22880
|
var $defineProperty = Object.defineProperty;
|
|
22839
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22881
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
22840
22882
|
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
22841
22883
|
var ENUMERABLE = 'enumerable';
|
|
22842
22884
|
var CONFIGURABLE = 'configurable';
|
|
@@ -22866,7 +22908,7 @@ var f$2 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Att
|
|
|
22866
22908
|
if (ie8DomDefine) try {
|
|
22867
22909
|
return $defineProperty(O, P, Attributes);
|
|
22868
22910
|
} catch (error) { /* empty */ }
|
|
22869
|
-
if ('get' in Attributes || 'set' in Attributes) throw
|
|
22911
|
+
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$5('Accessors not supported');
|
|
22870
22912
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
22871
22913
|
return O;
|
|
22872
22914
|
};
|
|
@@ -22883,7 +22925,7 @@ var createNonEnumerableProperty = descriptors ? function (object, key, value) {
|
|
|
22883
22925
|
};
|
|
22884
22926
|
|
|
22885
22927
|
var FunctionPrototype$1 = Function.prototype;
|
|
22886
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22928
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
22887
22929
|
var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
|
|
22888
22930
|
|
|
22889
22931
|
var EXISTS$1 = hasOwnProperty_1(FunctionPrototype$1, 'name');
|
|
@@ -22910,7 +22952,7 @@ var inspectSource = sharedStore.inspectSource;
|
|
|
22910
22952
|
|
|
22911
22953
|
var WeakMap$1 = global_1.WeakMap;
|
|
22912
22954
|
|
|
22913
|
-
var
|
|
22955
|
+
var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
|
|
22914
22956
|
|
|
22915
22957
|
var keys$1 = shared('keys');
|
|
22916
22958
|
|
|
@@ -22933,29 +22975,27 @@ var getterFor = function (TYPE) {
|
|
|
22933
22975
|
return function (it) {
|
|
22934
22976
|
var state;
|
|
22935
22977
|
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
|
22936
|
-
throw
|
|
22978
|
+
throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
|
|
22937
22979
|
} return state;
|
|
22938
22980
|
};
|
|
22939
22981
|
};
|
|
22940
22982
|
|
|
22941
|
-
if (
|
|
22983
|
+
if (nativeWeakMap || sharedStore.state) {
|
|
22942
22984
|
var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$2());
|
|
22943
|
-
|
|
22944
|
-
|
|
22945
|
-
|
|
22946
|
-
store$1.set = store$1.set;
|
|
22947
|
-
/* 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);
|
|
22948
22988
|
set = function (it, metadata) {
|
|
22949
|
-
if (store$1
|
|
22989
|
+
if (wmhas(store$1, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
22950
22990
|
metadata.facade = it;
|
|
22951
|
-
store$1
|
|
22991
|
+
wmset(store$1, it, metadata);
|
|
22952
22992
|
return metadata;
|
|
22953
22993
|
};
|
|
22954
22994
|
get = function (it) {
|
|
22955
|
-
return store$1
|
|
22995
|
+
return wmget(store$1, it) || {};
|
|
22956
22996
|
};
|
|
22957
22997
|
has = function (it) {
|
|
22958
|
-
return store$1
|
|
22998
|
+
return wmhas(store$1, it);
|
|
22959
22999
|
};
|
|
22960
23000
|
} else {
|
|
22961
23001
|
var STATE = sharedKey('state');
|
|
@@ -22983,23 +23023,14 @@ var internalState = {
|
|
|
22983
23023
|
};
|
|
22984
23024
|
|
|
22985
23025
|
var makeBuiltIn_1 = createCommonjsModule(function (module) {
|
|
22986
|
-
|
|
22987
|
-
|
|
22988
|
-
|
|
22989
|
-
|
|
22990
|
-
|
|
22991
23026
|
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
22992
23027
|
|
|
22993
23028
|
|
|
22994
23029
|
|
|
22995
23030
|
var enforceInternalState = internalState.enforce;
|
|
22996
23031
|
var getInternalState = internalState.get;
|
|
22997
|
-
|
|
22998
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
23032
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
22999
23033
|
var defineProperty = Object.defineProperty;
|
|
23000
|
-
var stringSlice = functionUncurryThis(''.slice);
|
|
23001
|
-
var replace = functionUncurryThis(''.replace);
|
|
23002
|
-
var join = functionUncurryThis([].join);
|
|
23003
23034
|
|
|
23004
23035
|
var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
|
|
23005
23036
|
return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
@@ -23008,8 +23039,8 @@ var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
|
|
|
23008
23039
|
var TEMPLATE = String(String).split('String');
|
|
23009
23040
|
|
|
23010
23041
|
var makeBuiltIn = module.exports = function (value, name, options) {
|
|
23011
|
-
if (
|
|
23012
|
-
name = '[' +
|
|
23042
|
+
if (String(name).slice(0, 7) === 'Symbol(') {
|
|
23043
|
+
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
23013
23044
|
}
|
|
23014
23045
|
if (options && options.getter) name = 'get ' + name;
|
|
23015
23046
|
if (options && options.setter) name = 'set ' + name;
|
|
@@ -23028,7 +23059,7 @@ var makeBuiltIn = module.exports = function (value, name, options) {
|
|
|
23028
23059
|
} catch (error) { /* empty */ }
|
|
23029
23060
|
var state = enforceInternalState(value);
|
|
23030
23061
|
if (!hasOwnProperty_1(state, 'source')) {
|
|
23031
|
-
state.source = join(
|
|
23062
|
+
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
23032
23063
|
} return value;
|
|
23033
23064
|
};
|
|
23034
23065
|
|
|
@@ -23067,7 +23098,7 @@ var floor = Math.floor;
|
|
|
23067
23098
|
|
|
23068
23099
|
// `Math.trunc` method
|
|
23069
23100
|
// https://tc39.es/ecma262/#sec-math.trunc
|
|
23070
|
-
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
23101
|
+
// eslint-disable-next-line es-x/no-math-trunc -- safe
|
|
23071
23102
|
var mathTrunc = Math.trunc || function trunc(x) {
|
|
23072
23103
|
var n = +x;
|
|
23073
23104
|
return (n > 0 ? floor : ceil)(n);
|
|
@@ -23115,10 +23146,10 @@ var createMethod = function (IS_INCLUDES) {
|
|
|
23115
23146
|
var value;
|
|
23116
23147
|
// Array#includes uses SameValueZero equality algorithm
|
|
23117
23148
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
23118
|
-
if (IS_INCLUDES && el
|
|
23149
|
+
if (IS_INCLUDES && el != el) while (length > index) {
|
|
23119
23150
|
value = O[index++];
|
|
23120
23151
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
23121
|
-
if (value
|
|
23152
|
+
if (value != value) return true;
|
|
23122
23153
|
// Array#indexOf ignores holes, Array#includes - not
|
|
23123
23154
|
} else for (;length > index; index++) {
|
|
23124
23155
|
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
@@ -23168,7 +23199,7 @@ var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
|
|
|
23168
23199
|
|
|
23169
23200
|
// `Object.getOwnPropertyNames` method
|
|
23170
23201
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
23171
|
-
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
23202
|
+
// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
|
|
23172
23203
|
var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
23173
23204
|
return objectKeysInternal(O, hiddenKeys$1);
|
|
23174
23205
|
};
|
|
@@ -23177,7 +23208,7 @@ var objectGetOwnPropertyNames = {
|
|
|
23177
23208
|
f: f$3
|
|
23178
23209
|
};
|
|
23179
23210
|
|
|
23180
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
23211
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
|
|
23181
23212
|
var f$4 = Object.getOwnPropertySymbols;
|
|
23182
23213
|
|
|
23183
23214
|
var objectGetOwnPropertySymbols = {
|
|
@@ -23209,8 +23240,8 @@ var replacement = /#|\.prototype\./;
|
|
|
23209
23240
|
|
|
23210
23241
|
var isForced = function (feature, detection) {
|
|
23211
23242
|
var value = data[normalize(feature)];
|
|
23212
|
-
return value
|
|
23213
|
-
: value
|
|
23243
|
+
return value == POLYFILL ? true
|
|
23244
|
+
: value == NATIVE ? false
|
|
23214
23245
|
: isCallable(detection) ? fails(detection)
|
|
23215
23246
|
: !!detection;
|
|
23216
23247
|
};
|
|
@@ -23290,7 +23321,7 @@ var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
|
|
|
23290
23321
|
var $Object$3 = Object;
|
|
23291
23322
|
|
|
23292
23323
|
// ES3 wrong here
|
|
23293
|
-
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }())
|
|
23324
|
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
23294
23325
|
|
|
23295
23326
|
// fallback for IE11 Script Access Denied error
|
|
23296
23327
|
var tryGet = function (it, key) {
|
|
@@ -23308,25 +23339,25 @@ var classof = toStringTagSupport ? classofRaw : function (it) {
|
|
|
23308
23339
|
// builtinTag case
|
|
23309
23340
|
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
23310
23341
|
// ES3 arguments fallback
|
|
23311
|
-
: (result = classofRaw(O))
|
|
23342
|
+
: (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
|
23312
23343
|
};
|
|
23313
23344
|
|
|
23314
|
-
var $String$
|
|
23345
|
+
var $String$2 = String;
|
|
23315
23346
|
|
|
23316
23347
|
var toString_1 = function (argument) {
|
|
23317
|
-
if (classof(argument) === 'Symbol') throw
|
|
23318
|
-
return $String$
|
|
23348
|
+
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
23349
|
+
return $String$2(argument);
|
|
23319
23350
|
};
|
|
23320
23351
|
|
|
23321
23352
|
var charAt = functionUncurryThis(''.charAt);
|
|
23322
23353
|
|
|
23323
23354
|
var FORCED = fails(function () {
|
|
23324
|
-
// eslint-disable-next-line es/no-array-string-prototype-at -- safe
|
|
23355
|
+
// eslint-disable-next-line es-x/no-array-string-prototype-at -- safe
|
|
23325
23356
|
return '𠮷'.at(-2) !== '\uD842';
|
|
23326
23357
|
});
|
|
23327
23358
|
|
|
23328
23359
|
// `String.prototype.at` method
|
|
23329
|
-
// https://
|
|
23360
|
+
// https://github.com/tc39/proposal-relative-indexing-method
|
|
23330
23361
|
_export({ target: 'String', proto: true, forced: FORCED }, {
|
|
23331
23362
|
at: function at(index) {
|
|
23332
23363
|
var S = toString_1(requireObjectCoercible(this));
|
|
@@ -23339,14 +23370,14 @@ _export({ target: 'String', proto: true, forced: FORCED }, {
|
|
|
23339
23370
|
|
|
23340
23371
|
// `Object.keys` method
|
|
23341
23372
|
// https://tc39.es/ecma262/#sec-object.keys
|
|
23342
|
-
// eslint-disable-next-line es/no-object-keys -- safe
|
|
23373
|
+
// eslint-disable-next-line es-x/no-object-keys -- safe
|
|
23343
23374
|
var objectKeys = Object.keys || function keys(O) {
|
|
23344
23375
|
return objectKeysInternal(O, enumBugKeys);
|
|
23345
23376
|
};
|
|
23346
23377
|
|
|
23347
23378
|
// `Object.defineProperties` method
|
|
23348
23379
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
23349
|
-
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
23380
|
+
// eslint-disable-next-line es-x/no-object-defineproperties -- safe
|
|
23350
23381
|
var f$5 = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
23351
23382
|
anObject(O);
|
|
23352
23383
|
var props = toIndexedObject(Properties);
|
|
@@ -23435,7 +23466,7 @@ hiddenKeys[IE_PROTO] = true;
|
|
|
23435
23466
|
|
|
23436
23467
|
// `Object.create` method
|
|
23437
23468
|
// https://tc39.es/ecma262/#sec-object.create
|
|
23438
|
-
// eslint-disable-next-line es/no-object-create -- safe
|
|
23469
|
+
// eslint-disable-next-line es-x/no-object-create -- safe
|
|
23439
23470
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
23440
23471
|
var result;
|
|
23441
23472
|
if (O !== null) {
|
|
@@ -23455,7 +23486,7 @@ var ArrayPrototype = Array.prototype;
|
|
|
23455
23486
|
|
|
23456
23487
|
// Array.prototype[@@unscopables]
|
|
23457
23488
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
23458
|
-
if (ArrayPrototype[UNSCOPABLES]
|
|
23489
|
+
if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
|
23459
23490
|
defineProperty$1(ArrayPrototype, UNSCOPABLES, {
|
|
23460
23491
|
configurable: true,
|
|
23461
23492
|
value: objectCreate(null)
|
|
@@ -23468,7 +23499,7 @@ var addToUnscopables = function (key) {
|
|
|
23468
23499
|
};
|
|
23469
23500
|
|
|
23470
23501
|
// `Array.prototype.at` method
|
|
23471
|
-
// https://
|
|
23502
|
+
// https://github.com/tc39/proposal-relative-indexing-method
|
|
23472
23503
|
_export({ target: 'Array', proto: true }, {
|
|
23473
23504
|
at: function at(index) {
|
|
23474
23505
|
var O = toObject(this);
|
|
@@ -23481,19 +23512,13 @@ _export({ target: 'Array', proto: true }, {
|
|
|
23481
23512
|
|
|
23482
23513
|
addToUnscopables('at');
|
|
23483
23514
|
|
|
23484
|
-
// eslint-disable-next-line es/no-typed-arrays -- safe
|
|
23485
|
-
var
|
|
23486
|
-
|
|
23487
|
-
var defineBuiltInAccessor = function (target, name, descriptor) {
|
|
23488
|
-
if (descriptor.get) makeBuiltIn_1(descriptor.get, name, { getter: true });
|
|
23489
|
-
if (descriptor.set) makeBuiltIn_1(descriptor.set, name, { setter: true });
|
|
23490
|
-
return objectDefineProperty.f(target, name, descriptor);
|
|
23491
|
-
};
|
|
23515
|
+
// eslint-disable-next-line es-x/no-typed-arrays -- safe
|
|
23516
|
+
var arrayBufferNative = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
|
|
23492
23517
|
|
|
23493
23518
|
var correctPrototypeGetter = !fails(function () {
|
|
23494
23519
|
function F() { /* empty */ }
|
|
23495
23520
|
F.prototype.constructor = null;
|
|
23496
|
-
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
23521
|
+
// eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing
|
|
23497
23522
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
23498
23523
|
});
|
|
23499
23524
|
|
|
@@ -23503,7 +23528,7 @@ var ObjectPrototype = $Object$4.prototype;
|
|
|
23503
23528
|
|
|
23504
23529
|
// `Object.getPrototypeOf` method
|
|
23505
23530
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
23506
|
-
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
23531
|
+
// eslint-disable-next-line es-x/no-object-getprototypeof -- safe
|
|
23507
23532
|
var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : function (O) {
|
|
23508
23533
|
var object = toObject(O);
|
|
23509
23534
|
if (hasOwnProperty_1(object, IE_PROTO$1)) return object[IE_PROTO$1];
|
|
@@ -23513,19 +23538,12 @@ var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : f
|
|
|
23513
23538
|
} return object instanceof $Object$4 ? ObjectPrototype : null;
|
|
23514
23539
|
};
|
|
23515
23540
|
|
|
23516
|
-
var
|
|
23517
|
-
try {
|
|
23518
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
23519
|
-
return functionUncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
23520
|
-
} catch (error) { /* empty */ }
|
|
23521
|
-
};
|
|
23522
|
-
|
|
23523
|
-
var $String$4 = String;
|
|
23541
|
+
var $String$3 = String;
|
|
23524
23542
|
var $TypeError$6 = TypeError;
|
|
23525
23543
|
|
|
23526
23544
|
var aPossiblePrototype = function (argument) {
|
|
23527
23545
|
if (typeof argument == 'object' || isCallable(argument)) return argument;
|
|
23528
|
-
throw
|
|
23546
|
+
throw $TypeError$6("Can't set " + $String$3(argument) + ' as a prototype');
|
|
23529
23547
|
};
|
|
23530
23548
|
|
|
23531
23549
|
/* eslint-disable no-proto -- safe */
|
|
@@ -23536,13 +23554,14 @@ var aPossiblePrototype = function (argument) {
|
|
|
23536
23554
|
// `Object.setPrototypeOf` method
|
|
23537
23555
|
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
23538
23556
|
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
23539
|
-
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
23557
|
+
// eslint-disable-next-line es-x/no-object-setprototypeof -- safe
|
|
23540
23558
|
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
23541
23559
|
var CORRECT_SETTER = false;
|
|
23542
23560
|
var test = {};
|
|
23543
23561
|
var setter;
|
|
23544
23562
|
try {
|
|
23545
|
-
|
|
23563
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
23564
|
+
setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
23546
23565
|
setter(test, []);
|
|
23547
23566
|
CORRECT_SETTER = test instanceof Array;
|
|
23548
23567
|
} catch (error) { /* empty */ }
|
|
@@ -23555,6 +23574,14 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
23555
23574
|
};
|
|
23556
23575
|
}() : undefined);
|
|
23557
23576
|
|
|
23577
|
+
var defineProperty$2 = objectDefineProperty.f;
|
|
23578
|
+
|
|
23579
|
+
|
|
23580
|
+
|
|
23581
|
+
|
|
23582
|
+
|
|
23583
|
+
|
|
23584
|
+
|
|
23558
23585
|
var enforceInternalState = internalState.enforce;
|
|
23559
23586
|
var getInternalState = internalState.get;
|
|
23560
23587
|
var Int8Array = global_1.Int8Array;
|
|
@@ -23570,7 +23597,7 @@ var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
|
|
|
23570
23597
|
var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
|
|
23571
23598
|
var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor';
|
|
23572
23599
|
// Fixing native typed arrays in Opera Presto crashes the browser, see #595
|
|
23573
|
-
var NATIVE_ARRAY_BUFFER_VIEWS =
|
|
23600
|
+
var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferNative && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
|
|
23574
23601
|
var TYPED_ARRAY_TAG_REQUIRED = false;
|
|
23575
23602
|
var NAME, Constructor, Prototype;
|
|
23576
23603
|
|
|
@@ -23615,12 +23642,12 @@ var isTypedArray = function (it) {
|
|
|
23615
23642
|
|
|
23616
23643
|
var aTypedArray = function (it) {
|
|
23617
23644
|
if (isTypedArray(it)) return it;
|
|
23618
|
-
throw
|
|
23645
|
+
throw TypeError$2('Target is not a typed array');
|
|
23619
23646
|
};
|
|
23620
23647
|
|
|
23621
23648
|
var aTypedArrayConstructor = function (C) {
|
|
23622
23649
|
if (isCallable(C) && (!objectSetPrototypeOf || objectIsPrototypeOf(TypedArray, C))) return C;
|
|
23623
|
-
throw
|
|
23650
|
+
throw TypeError$2(tryToString(C) + ' is not a typed array constructor');
|
|
23624
23651
|
};
|
|
23625
23652
|
|
|
23626
23653
|
var exportTypedArrayMethod = function (KEY, property, forced, options) {
|
|
@@ -23684,7 +23711,7 @@ for (NAME in BigIntArrayConstructorsList) {
|
|
|
23684
23711
|
if (!NATIVE_ARRAY_BUFFER_VIEWS || !isCallable(TypedArray) || TypedArray === Function.prototype) {
|
|
23685
23712
|
// eslint-disable-next-line no-shadow -- safe
|
|
23686
23713
|
TypedArray = function TypedArray() {
|
|
23687
|
-
throw
|
|
23714
|
+
throw TypeError$2('Incorrect invocation');
|
|
23688
23715
|
};
|
|
23689
23716
|
if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) {
|
|
23690
23717
|
if (global_1[NAME]) objectSetPrototypeOf(global_1[NAME], TypedArray);
|
|
@@ -23705,12 +23732,9 @@ if (NATIVE_ARRAY_BUFFER_VIEWS && objectGetPrototypeOf(Uint8ClampedArrayPrototype
|
|
|
23705
23732
|
|
|
23706
23733
|
if (descriptors && !hasOwnProperty_1(TypedArrayPrototype, TO_STRING_TAG$2)) {
|
|
23707
23734
|
TYPED_ARRAY_TAG_REQUIRED = true;
|
|
23708
|
-
|
|
23709
|
-
|
|
23710
|
-
|
|
23711
|
-
return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
|
|
23712
|
-
}
|
|
23713
|
-
});
|
|
23735
|
+
defineProperty$2(TypedArrayPrototype, TO_STRING_TAG$2, { get: function () {
|
|
23736
|
+
return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
|
|
23737
|
+
} });
|
|
23714
23738
|
for (NAME in TypedArrayConstructorsList) if (global_1[NAME]) {
|
|
23715
23739
|
createNonEnumerableProperty(global_1[NAME], TYPED_ARRAY_TAG, NAME);
|
|
23716
23740
|
}
|
|
@@ -23734,7 +23758,7 @@ var aTypedArray$1 = arrayBufferViewCore.aTypedArray;
|
|
|
23734
23758
|
var exportTypedArrayMethod$1 = arrayBufferViewCore.exportTypedArrayMethod;
|
|
23735
23759
|
|
|
23736
23760
|
// `%TypedArray%.prototype.at` method
|
|
23737
|
-
// https://
|
|
23761
|
+
// https://github.com/tc39/proposal-relative-indexing-method
|
|
23738
23762
|
exportTypedArrayMethod$1('at', function at(index) {
|
|
23739
23763
|
var O = aTypedArray$1(this);
|
|
23740
23764
|
var len = lengthOfArrayLike(O);
|
|
@@ -23842,7 +23866,9 @@ var Dropdown = function Dropdown(_ref13) {
|
|
|
23842
23866
|
_ref13$smoothScroll = _ref13.smoothScroll,
|
|
23843
23867
|
smoothScroll = _ref13$smoothScroll === void 0 ? true : _ref13$smoothScroll,
|
|
23844
23868
|
_ref13$ariaInvalid = _ref13.ariaInvalid,
|
|
23845
|
-
ariaInvalid = _ref13$ariaInvalid === void 0 ? false : _ref13$ariaInvalid
|
|
23869
|
+
ariaInvalid = _ref13$ariaInvalid === void 0 ? false : _ref13$ariaInvalid,
|
|
23870
|
+
_ref13$isRequired = _ref13.isRequired,
|
|
23871
|
+
isRequired = _ref13$isRequired === void 0 ? false : _ref13$isRequired;
|
|
23846
23872
|
|
|
23847
23873
|
var _useState = React.useState(""),
|
|
23848
23874
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -24035,11 +24061,13 @@ var Dropdown = function Dropdown(_ref13) {
|
|
|
24035
24061
|
clearTimeout(timer);
|
|
24036
24062
|
setTimer(setTimeout(function () {
|
|
24037
24063
|
return setInputValue("");
|
|
24038
|
-
},
|
|
24064
|
+
}, 20000));
|
|
24039
24065
|
}
|
|
24040
24066
|
|
|
24041
24067
|
setFilteredOptions(options.filter(function (option) {
|
|
24042
|
-
|
|
24068
|
+
var _option$value, _option$value$toLower, _option$text, _option$text$toLowerC;
|
|
24069
|
+
|
|
24070
|
+
return (option === null || option === void 0 ? void 0 : (_option$value = option.value) === null || _option$value === void 0 ? void 0 : (_option$value$toLower = _option$value.toLowerCase()) === null || _option$value$toLower === void 0 ? void 0 : _option$value$toLower.indexOf(inputValue === null || inputValue === void 0 ? void 0 : inputValue.toLowerCase())) >= 0 || ((_option$text = option.text) === null || _option$text === void 0 ? void 0 : (_option$text$toLowerC = _option$text.toLowerCase()) === null || _option$text$toLowerC === void 0 ? void 0 : _option$text$toLowerC.indexOf(inputValue === null || inputValue === void 0 ? void 0 : inputValue.toLowerCase())) >= 0;
|
|
24043
24071
|
}));
|
|
24044
24072
|
}, [inputValue]);
|
|
24045
24073
|
React.useEffect(function () {
|
|
@@ -24082,10 +24110,9 @@ var Dropdown = function Dropdown(_ref13) {
|
|
|
24082
24110
|
dataQa: "".concat(ariaLabelledby, "-dropdown")
|
|
24083
24111
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
24084
24112
|
as: "input",
|
|
24085
|
-
"aria-multiline": "false",
|
|
24086
24113
|
autoComplete: autocompleteValue,
|
|
24087
24114
|
"aria-controls": "".concat(ariaLabelledby, "_listbox"),
|
|
24088
|
-
"aria-activedescendant": "focused_option",
|
|
24115
|
+
"aria-activedescendant": isOpen ? "focused_option" : undefined,
|
|
24089
24116
|
"aria-owns": "".concat(ariaLabelledby, "_listbox"),
|
|
24090
24117
|
"aria-haspopup": "listbox",
|
|
24091
24118
|
"aria-labelledby": ariaLabelledby,
|
|
@@ -24113,7 +24140,7 @@ var Dropdown = function Dropdown(_ref13) {
|
|
|
24113
24140
|
},
|
|
24114
24141
|
padding: "12px",
|
|
24115
24142
|
placeholder: getSelection(),
|
|
24116
|
-
required: options.required,
|
|
24143
|
+
required: options.required || isRequired,
|
|
24117
24144
|
role: "combobox",
|
|
24118
24145
|
themeValues: themeValues,
|
|
24119
24146
|
title: hasTitles ? getSelection() : null,
|
|
@@ -24149,7 +24176,7 @@ var Dropdown = function Dropdown(_ref13) {
|
|
|
24149
24176
|
return handleItemSelection(e, choice, i);
|
|
24150
24177
|
},
|
|
24151
24178
|
onKeyDown: function onKeyDown(e) {
|
|
24152
|
-
if (e.keyCode ===
|
|
24179
|
+
if (e.keyCode === ENTER) {
|
|
24153
24180
|
handleItemSelection(e, choice, i);
|
|
24154
24181
|
}
|
|
24155
24182
|
},
|
|
@@ -24281,7 +24308,9 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24281
24308
|
_ref$dataQa = _ref.dataQa,
|
|
24282
24309
|
dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
|
|
24283
24310
|
_ref$widthFitOptions = _ref.widthFitOptions,
|
|
24284
|
-
widthFitOptions = _ref$widthFitOptions === void 0 ? false : _ref$widthFitOptions
|
|
24311
|
+
widthFitOptions = _ref$widthFitOptions === void 0 ? false : _ref$widthFitOptions,
|
|
24312
|
+
_ref$isRequired = _ref.isRequired,
|
|
24313
|
+
isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
|
|
24285
24314
|
|
|
24286
24315
|
var _useState = React.useState(false),
|
|
24287
24316
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -24343,7 +24372,8 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24343
24372
|
},
|
|
24344
24373
|
disabled: disabled,
|
|
24345
24374
|
autocompleteValue: autocompleteValue,
|
|
24346
|
-
smoothScroll: smoothScroll
|
|
24375
|
+
smoothScroll: smoothScroll,
|
|
24376
|
+
isRequired: isRequired
|
|
24347
24377
|
}), /*#__PURE__*/React__default.createElement(Stack, {
|
|
24348
24378
|
direction: "row",
|
|
24349
24379
|
justify: "space-between"
|
|
@@ -25114,6 +25144,8 @@ var CountryDropdown = function CountryDropdown(_ref) {
|
|
|
25114
25144
|
fieldActions = _ref.fieldActions,
|
|
25115
25145
|
showErrors = _ref.showErrors,
|
|
25116
25146
|
onChange = _ref.onChange,
|
|
25147
|
+
_ref$isRequired = _ref.isRequired,
|
|
25148
|
+
isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired,
|
|
25117
25149
|
_ref$dataQa = _ref.dataQa,
|
|
25118
25150
|
dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa;
|
|
25119
25151
|
return /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
@@ -25125,7 +25157,8 @@ var CountryDropdown = function CountryDropdown(_ref) {
|
|
|
25125
25157
|
errorMessages: errorMessages,
|
|
25126
25158
|
showErrors: showErrors,
|
|
25127
25159
|
onChange: onChange,
|
|
25128
|
-
autocompleteValue: "country-name"
|
|
25160
|
+
autocompleteValue: "country-name",
|
|
25161
|
+
isRequired: isRequired
|
|
25129
25162
|
});
|
|
25130
25163
|
};
|
|
25131
25164
|
|
|
@@ -25509,7 +25542,7 @@ var Popover = function Popover(_ref) {
|
|
|
25509
25542
|
handleTogglePopover(false);
|
|
25510
25543
|
},
|
|
25511
25544
|
onKeyDown: function onKeyDown(e) {
|
|
25512
|
-
if (e.keyCode ===
|
|
25545
|
+
if (e.keyCode === ESCAPE) {
|
|
25513
25546
|
handleTogglePopover(false);
|
|
25514
25547
|
}
|
|
25515
25548
|
},
|
|
@@ -25972,7 +26005,7 @@ var fallbackValues$k = {
|
|
|
25972
26005
|
};
|
|
25973
26006
|
|
|
25974
26007
|
var _excluded$p = ["showErrors", "themeValues"],
|
|
25975
|
-
_excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa"];
|
|
26008
|
+
_excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa", "isRequired"];
|
|
25976
26009
|
var InputField = styled__default.input.withConfig({
|
|
25977
26010
|
displayName: "FormInput__InputField",
|
|
25978
26011
|
componentId: "sc-l094r1-0"
|
|
@@ -26059,6 +26092,8 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26059
26092
|
removeFromValue = _ref15.removeFromValue,
|
|
26060
26093
|
_ref15$dataQa = _ref15.dataQa,
|
|
26061
26094
|
dataQa = _ref15$dataQa === void 0 ? null : _ref15$dataQa,
|
|
26095
|
+
_ref15$isRequired = _ref15.isRequired,
|
|
26096
|
+
isRequired = _ref15$isRequired === void 0 ? false : _ref15$isRequired,
|
|
26062
26097
|
props = _objectWithoutProperties(_ref15, _excluded2);
|
|
26063
26098
|
|
|
26064
26099
|
var _useState = React.useState(false),
|
|
@@ -26145,7 +26180,8 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26145
26180
|
$customHeight: customHeight,
|
|
26146
26181
|
$extraStyles: extraStyles,
|
|
26147
26182
|
"data-qa": dataQa || labelTextWhenNoError,
|
|
26148
|
-
autoComplete: autocompleteValue
|
|
26183
|
+
autoComplete: autocompleteValue,
|
|
26184
|
+
required: isRequired
|
|
26149
26185
|
}, props)) : /*#__PURE__*/React__default.createElement(InputField, _extends({
|
|
26150
26186
|
"aria-labelledby": createIdFromString(labelTextWhenNoError),
|
|
26151
26187
|
"aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
|
|
@@ -26164,7 +26200,8 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26164
26200
|
$customHeight: customHeight,
|
|
26165
26201
|
$extraStyles: extraStyles,
|
|
26166
26202
|
"data-qa": dataQa || labelTextWhenNoError,
|
|
26167
|
-
autoComplete: autocompleteValue
|
|
26203
|
+
autoComplete: autocompleteValue,
|
|
26204
|
+
required: isRequired
|
|
26168
26205
|
}, props))), /*#__PURE__*/React__default.createElement(Stack, {
|
|
26169
26206
|
direction: "row",
|
|
26170
26207
|
justify: "space-between",
|
|
@@ -27400,13 +27437,14 @@ var RadioButton$1 = function RadioButton(_ref2) {
|
|
|
27400
27437
|
name = _ref2.name,
|
|
27401
27438
|
_ref2$disabled = _ref2.disabled,
|
|
27402
27439
|
disabled = _ref2$disabled === void 0 ? false : _ref2$disabled,
|
|
27403
|
-
|
|
27404
|
-
ariaDescribedBy = _ref2$ariaDescribedBy === void 0 ? "" : _ref2$ariaDescribedBy,
|
|
27440
|
+
ariaDescribedBy = _ref2.ariaDescribedBy,
|
|
27405
27441
|
themeValues = _ref2.themeValues,
|
|
27406
27442
|
_ref2$ariaLabelledBy = _ref2.ariaLabelledBy,
|
|
27407
27443
|
ariaLabelledBy = _ref2$ariaLabelledBy === void 0 ? "" : _ref2$ariaLabelledBy,
|
|
27408
27444
|
_ref2$ariaLabel = _ref2.ariaLabel,
|
|
27409
|
-
ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel
|
|
27445
|
+
ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel,
|
|
27446
|
+
_ref2$isRequired = _ref2.isRequired,
|
|
27447
|
+
isRequired = _ref2$isRequired === void 0 ? false : _ref2$isRequired;
|
|
27410
27448
|
var buttonBorder = {
|
|
27411
27449
|
onFocused: {
|
|
27412
27450
|
borderColor: themeValues.activeColor,
|
|
@@ -27468,7 +27506,8 @@ var RadioButton$1 = function RadioButton(_ref2) {
|
|
|
27468
27506
|
disabled: disabled,
|
|
27469
27507
|
onClick: toggleRadio,
|
|
27470
27508
|
"aria-describedby": ariaDescribedBy,
|
|
27471
|
-
tabIndex: "-1"
|
|
27509
|
+
tabIndex: "-1",
|
|
27510
|
+
required: isRequired
|
|
27472
27511
|
}, extraProps)), /*#__PURE__*/React__default.createElement(Motion, {
|
|
27473
27512
|
borderWidth: "1px",
|
|
27474
27513
|
borderStyle: "solid",
|
|
@@ -38158,7 +38197,9 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
|
|
|
38158
38197
|
field = _ref.field,
|
|
38159
38198
|
fieldActions = _ref.fieldActions,
|
|
38160
38199
|
showErrors = _ref.showErrors,
|
|
38161
|
-
countryCode = _ref.countryCode
|
|
38200
|
+
countryCode = _ref.countryCode,
|
|
38201
|
+
_ref$isRequired = _ref.isRequired,
|
|
38202
|
+
isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
|
|
38162
38203
|
var placeholder = countryCode === "US" ? placeHolderOptionUS : placeHolderOption;
|
|
38163
38204
|
var options = [placeholder].concat(_toConsumableArray(getOptions(countryCode)));
|
|
38164
38205
|
return /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
@@ -38168,7 +38209,8 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
|
|
|
38168
38209
|
labelTextWhenNoError: labelTextWhenNoError,
|
|
38169
38210
|
errorMessages: errorMessages,
|
|
38170
38211
|
showErrors: showErrors,
|
|
38171
|
-
autocompleteValue: "address-level1"
|
|
38212
|
+
autocompleteValue: "address-level1",
|
|
38213
|
+
isRequired: isRequired
|
|
38172
38214
|
});
|
|
38173
38215
|
};
|
|
38174
38216
|
|
|
@@ -38311,7 +38353,7 @@ var ToggleSwitch = function ToggleSwitch(_ref6) {
|
|
|
38311
38353
|
});
|
|
38312
38354
|
|
|
38313
38355
|
var handleKeyDown = function handleKeyDown(e) {
|
|
38314
|
-
if (e.keyCode ===
|
|
38356
|
+
if (e.keyCode === ENTER) {
|
|
38315
38357
|
onToggle();
|
|
38316
38358
|
}
|
|
38317
38359
|
};
|
|
@@ -39507,7 +39549,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
39507
39549
|
}
|
|
39508
39550
|
},
|
|
39509
39551
|
showErrors: showErrors,
|
|
39510
|
-
dataQa: "Country"
|
|
39552
|
+
dataQa: "Country",
|
|
39553
|
+
isRequired: true
|
|
39511
39554
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
39512
39555
|
labelTextWhenNoError: "Address",
|
|
39513
39556
|
errorMessages: street1ErrorMessages,
|
|
@@ -39518,7 +39561,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
39518
39561
|
return e.key === "Enter" && handleSubmit(e);
|
|
39519
39562
|
},
|
|
39520
39563
|
autocompleteValue: "address-line1",
|
|
39521
|
-
dataQa: "Address"
|
|
39564
|
+
dataQa: "Address",
|
|
39565
|
+
isRequired: true
|
|
39522
39566
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
39523
39567
|
labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
|
|
39524
39568
|
field: fields.street2,
|
|
@@ -39539,7 +39583,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
39539
39583
|
return e.key === "Enter" && handleSubmit(e);
|
|
39540
39584
|
},
|
|
39541
39585
|
autocompleteValue: "address-level2",
|
|
39542
|
-
dataQa: "City"
|
|
39586
|
+
dataQa: "City",
|
|
39587
|
+
isRequired: true
|
|
39543
39588
|
}), /*#__PURE__*/React__default.createElement(FormStateDropdown, {
|
|
39544
39589
|
labelTextWhenNoError: isUS ? "State" : "State or Province",
|
|
39545
39590
|
errorMessages: stateProvinceErrorMessages,
|
|
@@ -39550,7 +39595,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
39550
39595
|
onKeyDown: function onKeyDown(e) {
|
|
39551
39596
|
return e.key === "Enter" && handleSubmit(e);
|
|
39552
39597
|
},
|
|
39553
|
-
dataQa: "State or Province"
|
|
39598
|
+
dataQa: "State or Province",
|
|
39599
|
+
isRequired: true
|
|
39554
39600
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
39555
39601
|
isNum: isUS,
|
|
39556
39602
|
formatter: isUS ? zipFormat : null,
|
|
@@ -39563,7 +39609,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
39563
39609
|
return e.key === "Enter" && handleSubmit(e);
|
|
39564
39610
|
},
|
|
39565
39611
|
autocompleteValue: "postal-code",
|
|
39566
|
-
dataQa: "Zip code"
|
|
39612
|
+
dataQa: "Zip code",
|
|
39613
|
+
isRequired: true
|
|
39567
39614
|
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
39568
39615
|
name: "address checkbox",
|
|
39569
39616
|
title: "Save address to wallet",
|
|
@@ -39835,7 +39882,7 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
|
|
|
39835
39882
|
extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles;
|
|
39836
39883
|
|
|
39837
39884
|
var handleKeyDown = function handleKeyDown(e) {
|
|
39838
|
-
if (e.keyCode ===
|
|
39885
|
+
if (e.keyCode === ENTER) {
|
|
39839
39886
|
toggleSection();
|
|
39840
39887
|
}
|
|
39841
39888
|
};
|
|
@@ -40466,7 +40513,9 @@ var EmailForm = function EmailForm(_ref) {
|
|
|
40466
40513
|
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
40467
40514
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
40468
40515
|
saveToWallet = _ref.saveToWallet,
|
|
40469
|
-
walletCheckboxMarked = _ref.walletCheckboxMarked
|
|
40516
|
+
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
40517
|
+
_ref$isRequired = _ref.isRequired,
|
|
40518
|
+
isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
|
|
40470
40519
|
|
|
40471
40520
|
if (clearOnDismount) {
|
|
40472
40521
|
React.useEffect(function () {
|
|
@@ -40495,7 +40544,8 @@ var EmailForm = function EmailForm(_ref) {
|
|
|
40495
40544
|
},
|
|
40496
40545
|
isEmail: true,
|
|
40497
40546
|
autocompleteValue: "email",
|
|
40498
|
-
dataQa: "Email address"
|
|
40547
|
+
dataQa: "Email address",
|
|
40548
|
+
isRequired: isRequired
|
|
40499
40549
|
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
40500
40550
|
name: "email checkbox",
|
|
40501
40551
|
title: "Save email address to wallet",
|
|
@@ -45768,7 +45818,9 @@ var Modal$1 = function Modal(_ref) {
|
|
|
45768
45818
|
buttonExtraStyles = _ref.buttonExtraStyles,
|
|
45769
45819
|
children = _ref.children,
|
|
45770
45820
|
_ref$dataQa = _ref.dataQa,
|
|
45771
|
-
dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa
|
|
45821
|
+
dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
|
|
45822
|
+
_ref$initialFocusSele = _ref.initialFocusSelector,
|
|
45823
|
+
initialFocusSelector = _ref$initialFocusSele === void 0 ? "" : _ref$initialFocusSele;
|
|
45772
45824
|
|
|
45773
45825
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
45774
45826
|
isMobile = _useContext.isMobile;
|
|
@@ -45792,9 +45844,14 @@ var Modal$1 = function Modal(_ref) {
|
|
|
45792
45844
|
alignItems: "center"
|
|
45793
45845
|
},
|
|
45794
45846
|
dialogStyle: {
|
|
45795
|
-
width: customWidth || "615px"
|
|
45847
|
+
width: customWidth || "615px",
|
|
45848
|
+
overflow: "auto"
|
|
45796
45849
|
},
|
|
45797
|
-
underlayClickExits: underlayClickExits
|
|
45850
|
+
underlayClickExits: underlayClickExits,
|
|
45851
|
+
"aria-modal": true,
|
|
45852
|
+
initialFocus: initialFocusSelector,
|
|
45853
|
+
focusDialog: !initialFocusSelector // Focus the dialogue box itself if no selector for initial focus was provided
|
|
45854
|
+
|
|
45798
45855
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
45799
45856
|
padding: "0",
|
|
45800
45857
|
borderRadius: "2px",
|
|
@@ -45841,7 +45898,9 @@ var Modal$1 = function Modal(_ref) {
|
|
|
45841
45898
|
text: cancelButtonText,
|
|
45842
45899
|
dataQa: cancelButtonText,
|
|
45843
45900
|
extraStyles: buttonExtraStyles,
|
|
45844
|
-
className: "modal-cancel-button"
|
|
45901
|
+
className: "modal-cancel-button",
|
|
45902
|
+
role: "button",
|
|
45903
|
+
name: cancelButtonText
|
|
45845
45904
|
})), /*#__PURE__*/React__default.createElement(Box, {
|
|
45846
45905
|
width: "100%",
|
|
45847
45906
|
padding: "0"
|
|
@@ -45853,7 +45912,9 @@ var Modal$1 = function Modal(_ref) {
|
|
|
45853
45912
|
isLoading: isLoading,
|
|
45854
45913
|
disabled: isContinueActionDisabled,
|
|
45855
45914
|
extraStyles: buttonExtraStyles,
|
|
45856
|
-
className: "modal-continue-button"
|
|
45915
|
+
className: "modal-continue-button",
|
|
45916
|
+
role: "button",
|
|
45917
|
+
name: continueButtonText
|
|
45857
45918
|
}))) : /*#__PURE__*/React__default.createElement(Stack, {
|
|
45858
45919
|
childGap: "1rem",
|
|
45859
45920
|
direction: "row",
|
|
@@ -45864,7 +45925,9 @@ var Modal$1 = function Modal(_ref) {
|
|
|
45864
45925
|
text: cancelButtonText,
|
|
45865
45926
|
dataQa: cancelButtonText,
|
|
45866
45927
|
extraStyles: buttonExtraStyles,
|
|
45867
|
-
className: "modal-cancel-button"
|
|
45928
|
+
className: "modal-cancel-button",
|
|
45929
|
+
role: "button",
|
|
45930
|
+
name: cancelButtonText
|
|
45868
45931
|
}), /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
45869
45932
|
variant: useDangerButton ? "danger" : "primary",
|
|
45870
45933
|
action: continueAction,
|
|
@@ -45873,7 +45936,9 @@ var Modal$1 = function Modal(_ref) {
|
|
|
45873
45936
|
isLoading: isLoading,
|
|
45874
45937
|
disabled: isContinueActionDisabled,
|
|
45875
45938
|
extraStyles: buttonExtraStyles,
|
|
45876
|
-
className: "modal-continue-button"
|
|
45939
|
+
className: "modal-continue-button",
|
|
45940
|
+
role: "button",
|
|
45941
|
+
name: continueButtonText
|
|
45877
45942
|
}))) : /*#__PURE__*/React__default.createElement(Box, {
|
|
45878
45943
|
padding: "0.5rem"
|
|
45879
45944
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
@@ -45882,7 +45947,9 @@ var Modal$1 = function Modal(_ref) {
|
|
|
45882
45947
|
text: closeButtonText,
|
|
45883
45948
|
dataQa: closeButtonText,
|
|
45884
45949
|
extraStyles: buttonExtraStyles,
|
|
45885
|
-
className: "modal-close-button"
|
|
45950
|
+
className: "modal-close-button",
|
|
45951
|
+
role: "button",
|
|
45952
|
+
name: closeButtonText
|
|
45886
45953
|
}))))))))), children);
|
|
45887
45954
|
};
|
|
45888
45955
|
|
|
@@ -46239,9 +46306,8 @@ var AutopayModal = function AutopayModal(_ref) {
|
|
|
46239
46306
|
toggleModal(false);
|
|
46240
46307
|
} : navigateToSettings
|
|
46241
46308
|
};
|
|
46242
|
-
var hoverStyles = "
|
|
46243
|
-
var activeStyles = "
|
|
46244
|
-
var defaultStyles = "\n .autopayIcon { fill: ".concat(themeValues.color, "; text-decoration: underline; }\n ");
|
|
46309
|
+
var hoverStyles = "text-decoration: underline;";
|
|
46310
|
+
var activeStyles = "text-decoration: underline;";
|
|
46245
46311
|
|
|
46246
46312
|
var renderAutoPayControl = function renderAutoPayControl() {
|
|
46247
46313
|
switch (controlType) {
|
|
@@ -46280,7 +46346,7 @@ var AutopayModal = function AutopayModal(_ref) {
|
|
|
46280
46346
|
},
|
|
46281
46347
|
hoverStyles: hoverStyles,
|
|
46282
46348
|
activeStyles: activeStyles,
|
|
46283
|
-
extraStyles:
|
|
46349
|
+
extraStyles: "cursor: pointer;"
|
|
46284
46350
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
46285
46351
|
justify: isMobile ? "flex-start" : "flex-end",
|
|
46286
46352
|
align: "center"
|
|
@@ -47714,7 +47780,8 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
|
47714
47780
|
continueAction: function continueAction() {
|
|
47715
47781
|
toggleAccepted(true);
|
|
47716
47782
|
toggleOpen(false);
|
|
47717
|
-
}
|
|
47783
|
+
},
|
|
47784
|
+
initialFocusSelector: "[name='Close']"
|
|
47718
47785
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
47719
47786
|
variant: "pS",
|
|
47720
47787
|
onClick: function onClick() {
|
|
@@ -47727,7 +47794,9 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
|
47727
47794
|
color: themeValues.linkColor,
|
|
47728
47795
|
weight: themeValues.fontWeight,
|
|
47729
47796
|
hoverStyles: themeValues.modalLinkHoverFocus,
|
|
47730
|
-
extraStyles: "cursor: pointer;"
|
|
47797
|
+
extraStyles: "cursor: pointer;",
|
|
47798
|
+
role: "button",
|
|
47799
|
+
className: "modal-trigger"
|
|
47731
47800
|
}, link));
|
|
47732
47801
|
};
|
|
47733
47802
|
|
|
@@ -47784,7 +47853,9 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
|
47784
47853
|
variant = _ref.variant,
|
|
47785
47854
|
_ref$linkVariant = _ref.linkVariant,
|
|
47786
47855
|
linkVariant = _ref$linkVariant === void 0 ? "p" : _ref$linkVariant,
|
|
47787
|
-
themeValues = _ref.themeValues
|
|
47856
|
+
themeValues = _ref.themeValues,
|
|
47857
|
+
_ref$initialFocusSele = _ref.initialFocusSelector,
|
|
47858
|
+
initialFocusSelector = _ref$initialFocusSele === void 0 ? "" : _ref$initialFocusSele;
|
|
47788
47859
|
return /*#__PURE__*/React__default.createElement(Modal$1, {
|
|
47789
47860
|
modalOpen: isOpen,
|
|
47790
47861
|
hideModal: function hideModal() {
|
|
@@ -47810,7 +47881,8 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
|
47810
47881
|
continueAction: function continueAction() {
|
|
47811
47882
|
toggleAccepted(true);
|
|
47812
47883
|
toggleOpen(false);
|
|
47813
|
-
}
|
|
47884
|
+
},
|
|
47885
|
+
initialFocusSelector: initialFocusSelector
|
|
47814
47886
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
47815
47887
|
variant: linkVariant,
|
|
47816
47888
|
onClick: function onClick() {
|
|
@@ -47823,7 +47895,10 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
|
47823
47895
|
color: themeValues.linkColor,
|
|
47824
47896
|
weight: themeValues.fontWeight,
|
|
47825
47897
|
hoverStyles: themeValues.modalLinkHoverFocus,
|
|
47826
|
-
extraStyles: "display: inline-block; width: fit-content; cursor: pointer"
|
|
47898
|
+
extraStyles: "display: inline-block; width: fit-content; cursor: pointer",
|
|
47899
|
+
role: "button" // This should always be a "button" since it opens a modal
|
|
47900
|
+
,
|
|
47901
|
+
className: "modal-trigger"
|
|
47827
47902
|
}, link));
|
|
47828
47903
|
};
|
|
47829
47904
|
|
|
@@ -47836,7 +47911,9 @@ var TermsAndConditionsControlV1 = function TermsAndConditionsControlV1(_ref) {
|
|
|
47836
47911
|
terms = _ref.terms,
|
|
47837
47912
|
_ref$error = _ref.error,
|
|
47838
47913
|
error = _ref$error === void 0 ? false : _ref$error,
|
|
47839
|
-
linkVariant = _ref.linkVariant
|
|
47914
|
+
linkVariant = _ref.linkVariant,
|
|
47915
|
+
_ref$initialFocusSele = _ref.initialFocusSelector,
|
|
47916
|
+
initialFocusSelector = _ref$initialFocusSele === void 0 ? "" : _ref$initialFocusSele;
|
|
47840
47917
|
|
|
47841
47918
|
var _useState = React.useState(false),
|
|
47842
47919
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -47858,10 +47935,13 @@ var TermsAndConditionsControlV1 = function TermsAndConditionsControlV1(_ref) {
|
|
|
47858
47935
|
terms: terms,
|
|
47859
47936
|
isOpen: showTerms,
|
|
47860
47937
|
toggleOpen: toggleShowTerms,
|
|
47861
|
-
linkVariant: linkVariant
|
|
47938
|
+
linkVariant: linkVariant,
|
|
47939
|
+
initialFocusSelector: initialFocusSelector
|
|
47862
47940
|
})))));
|
|
47863
47941
|
};
|
|
47864
47942
|
|
|
47943
|
+
var TermsAndConditionsTitleDivId = "terms-and-conditions-title";
|
|
47944
|
+
|
|
47865
47945
|
var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
47866
47946
|
var _ref$showCheckbox = _ref.showCheckbox,
|
|
47867
47947
|
showCheckbox = _ref$showCheckbox === void 0 ? true : _ref$showCheckbox,
|
|
@@ -47887,7 +47967,9 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
47887
47967
|
_ref$checkboxMargin = _ref.checkboxMargin,
|
|
47888
47968
|
checkboxMargin = _ref$checkboxMargin === void 0 ? "4px 8px 4px 4px" : _ref$checkboxMargin,
|
|
47889
47969
|
_ref$modalTitle = _ref.modalTitle,
|
|
47890
|
-
modalTitle = _ref$modalTitle === void 0 ? "Terms and Conditions" : _ref$modalTitle
|
|
47970
|
+
modalTitle = _ref$modalTitle === void 0 ? "Terms and Conditions" : _ref$modalTitle,
|
|
47971
|
+
_ref$initialFocusSele = _ref.initialFocusSelector,
|
|
47972
|
+
initialFocusSelector = _ref$initialFocusSele === void 0 ? "" : _ref$initialFocusSele;
|
|
47891
47973
|
|
|
47892
47974
|
var _useState = React.useState(false),
|
|
47893
47975
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -47924,7 +48006,8 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
47924
48006
|
checked: isChecked,
|
|
47925
48007
|
onChange: onCheck,
|
|
47926
48008
|
checkboxMargin: checkboxMargin,
|
|
47927
|
-
extraStyles: "align-self: flex-start;"
|
|
48009
|
+
extraStyles: "align-self: flex-start;",
|
|
48010
|
+
labelledById: TermsAndConditionsTitleDivId
|
|
47928
48011
|
}), /*#__PURE__*/React__default.createElement(Stack, {
|
|
47929
48012
|
childGap: "0.25rem",
|
|
47930
48013
|
fullHeight: true
|
|
@@ -47932,7 +48015,8 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
47932
48015
|
justify: "flex-start",
|
|
47933
48016
|
align: "center",
|
|
47934
48017
|
nowrap: true,
|
|
47935
|
-
extraStyles: "padding-right: 2px; > div > * { margin: 4px 2px; };"
|
|
48018
|
+
extraStyles: "padding-right: 2px; > div > * { margin: 4px 2px; };",
|
|
48019
|
+
id: TermsAndConditionsTitleDivId
|
|
47936
48020
|
}, description && /*#__PURE__*/React__default.createElement(Text$1, {
|
|
47937
48021
|
color: CHARADE_GREY
|
|
47938
48022
|
}, description), terms && /*#__PURE__*/React__default.createElement(TermsAndConditionsModal$1, {
|
|
@@ -47941,7 +48025,8 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
47941
48025
|
isOpen: showTerms,
|
|
47942
48026
|
toggleOpen: toggleTerms,
|
|
47943
48027
|
linkVariant: modalVariant,
|
|
47944
|
-
title: modalTitle
|
|
48028
|
+
title: modalTitle,
|
|
48029
|
+
initialFocusSelector: initialFocusSelector
|
|
47945
48030
|
})), /*#__PURE__*/React__default.createElement("div", {
|
|
47946
48031
|
"aria-live": "polite",
|
|
47947
48032
|
"aria-atomic": true
|
|
@@ -48030,7 +48115,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48030
48115
|
onKeyDown: function onKeyDown(e) {
|
|
48031
48116
|
return e.key === "Enter" && handleSubmit(e);
|
|
48032
48117
|
},
|
|
48033
|
-
autocompleteValue: "name"
|
|
48118
|
+
autocompleteValue: "name",
|
|
48119
|
+
isRequired: true
|
|
48034
48120
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48035
48121
|
labelTextWhenNoError: "Routing number",
|
|
48036
48122
|
dataQa: "Routing number",
|
|
@@ -48052,7 +48138,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48052
48138
|
},
|
|
48053
48139
|
onKeyDown: function onKeyDown(e) {
|
|
48054
48140
|
return e.key === "Enter" && handleSubmit(e);
|
|
48055
|
-
}
|
|
48141
|
+
},
|
|
48142
|
+
isRequired: true
|
|
48056
48143
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48057
48144
|
labelTextWhenNoError: "Confirm routing number",
|
|
48058
48145
|
dataQa: "Confirm routing number",
|
|
@@ -48063,7 +48150,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48063
48150
|
onKeyDown: function onKeyDown(e) {
|
|
48064
48151
|
return e.key === "Enter" && handleSubmit(e);
|
|
48065
48152
|
},
|
|
48066
|
-
isNum: true
|
|
48153
|
+
isNum: true,
|
|
48154
|
+
isRequired: true
|
|
48067
48155
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48068
48156
|
labelTextWhenNoError: "Account number",
|
|
48069
48157
|
dataQa: "Account number",
|
|
@@ -48085,7 +48173,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48085
48173
|
},
|
|
48086
48174
|
onKeyDown: function onKeyDown(e) {
|
|
48087
48175
|
return e.key === "Enter" && handleSubmit(e);
|
|
48088
|
-
}
|
|
48176
|
+
},
|
|
48177
|
+
isRequired: true
|
|
48089
48178
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48090
48179
|
labelTextWhenNoError: "Confirm account number",
|
|
48091
48180
|
dataQa: "Confirm account number",
|
|
@@ -48096,6 +48185,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48096
48185
|
onKeyDown: function onKeyDown(e) {
|
|
48097
48186
|
return e.key === "Enter" && handleSubmit(e);
|
|
48098
48187
|
},
|
|
48188
|
+
isRequired: true,
|
|
48099
48189
|
isNum: true
|
|
48100
48190
|
}), allowBankAccountType && /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
48101
48191
|
labelTextWhenNoError: "Account type",
|
|
@@ -48113,7 +48203,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48113
48203
|
fieldActions: actions.fields.accountType,
|
|
48114
48204
|
showErrors: showErrors,
|
|
48115
48205
|
errorMessages: accountTypeErrors,
|
|
48116
|
-
field: fields.accountType
|
|
48206
|
+
field: fields.accountType,
|
|
48207
|
+
isRequired: true
|
|
48117
48208
|
}), !hideDefaultPayment && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
48118
48209
|
title: "Save as Default Payment Method",
|
|
48119
48210
|
dataQa: "default-payment-ach",
|
|
@@ -48136,7 +48227,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48136
48227
|
version: "v2",
|
|
48137
48228
|
showCheckbox: false,
|
|
48138
48229
|
description: "View",
|
|
48139
|
-
terms: termsContent
|
|
48230
|
+
terms: termsContent,
|
|
48231
|
+
initialFocusSelector: ".modal-close-button"
|
|
48140
48232
|
})))));
|
|
48141
48233
|
};
|
|
48142
48234
|
|
|
@@ -48251,7 +48343,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48251
48343
|
onKeyDown: function onKeyDown(e) {
|
|
48252
48344
|
return e.key === "Enter" && handleSubmit(e);
|
|
48253
48345
|
},
|
|
48254
|
-
autocompleteValue: "cc-name"
|
|
48346
|
+
autocompleteValue: "cc-name",
|
|
48347
|
+
isRequired: true
|
|
48255
48348
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48256
48349
|
labelTextWhenNoError: "Credit card number",
|
|
48257
48350
|
dataQa: "Credit card number",
|
|
@@ -48264,7 +48357,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48264
48357
|
return e.key === "Enter" && handleSubmit(e);
|
|
48265
48358
|
},
|
|
48266
48359
|
isNum: true,
|
|
48267
|
-
autocompleteValue: "cc-number"
|
|
48360
|
+
autocompleteValue: "cc-number",
|
|
48361
|
+
isRequired: true
|
|
48268
48362
|
}), /*#__PURE__*/React__default.createElement(FormInputRow, {
|
|
48269
48363
|
breakpoint: isMobile ? "1000rem" : "21rem",
|
|
48270
48364
|
childGap: isMobile ? "0rem" : "1rem"
|
|
@@ -48282,7 +48376,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48282
48376
|
isNum: true,
|
|
48283
48377
|
removeFromValue: /\// // removes "/" from browser autofill
|
|
48284
48378
|
,
|
|
48285
|
-
autocompleteValue: "cc-exp"
|
|
48379
|
+
autocompleteValue: "cc-exp",
|
|
48380
|
+
isRequired: true
|
|
48286
48381
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48287
48382
|
labelTextWhenNoError: "CVV",
|
|
48288
48383
|
dataQa: "CVV",
|
|
@@ -48295,7 +48390,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48295
48390
|
onKeyDown: function onKeyDown(e) {
|
|
48296
48391
|
return e.key === "Enter" && handleSubmit(e);
|
|
48297
48392
|
},
|
|
48298
|
-
autocompleteValue: "cc-csc"
|
|
48393
|
+
autocompleteValue: "cc-csc",
|
|
48394
|
+
isRequired: true
|
|
48299
48395
|
})), !hideZipCode && /*#__PURE__*/React__default.createElement(Box, {
|
|
48300
48396
|
padding: isMobile ? "0" : "0 0.5rem 0 0",
|
|
48301
48397
|
width: isMobile ? "100%" : "50%"
|
|
@@ -48311,7 +48407,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48311
48407
|
onKeyDown: function onKeyDown(e) {
|
|
48312
48408
|
return e.key === "Enter" && handleSubmit(e);
|
|
48313
48409
|
},
|
|
48314
|
-
autocompleteValue: "billing postal-code"
|
|
48410
|
+
autocompleteValue: "billing postal-code",
|
|
48411
|
+
isRequired: true
|
|
48315
48412
|
})), (showWalletCheckbox || showTerms) && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48316
48413
|
childGap: "4px",
|
|
48317
48414
|
align: "center"
|
|
@@ -48327,7 +48424,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48327
48424
|
version: "v2",
|
|
48328
48425
|
showCheckbox: false,
|
|
48329
48426
|
description: "View",
|
|
48330
|
-
terms: termsContent
|
|
48427
|
+
terms: termsContent,
|
|
48428
|
+
initialFocusSelector: ".modal-close-button"
|
|
48331
48429
|
})))));
|
|
48332
48430
|
};
|
|
48333
48431
|
|
|
@@ -48504,7 +48602,9 @@ var PhoneForm = function PhoneForm(_ref) {
|
|
|
48504
48602
|
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
48505
48603
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
48506
48604
|
saveToWallet = _ref.saveToWallet,
|
|
48507
|
-
walletCheckboxMarked = _ref.walletCheckboxMarked
|
|
48605
|
+
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
48606
|
+
_ref$isRequired = _ref.isRequired,
|
|
48607
|
+
isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
|
|
48508
48608
|
|
|
48509
48609
|
if (clearOnDismount) {
|
|
48510
48610
|
React.useEffect(function () {
|
|
@@ -48531,7 +48631,8 @@ var PhoneForm = function PhoneForm(_ref) {
|
|
|
48531
48631
|
},
|
|
48532
48632
|
autocompleteValue: "tel-national",
|
|
48533
48633
|
dataQa: "Phone number",
|
|
48534
|
-
isNum: true
|
|
48634
|
+
isNum: true,
|
|
48635
|
+
isRequired: isRequired
|
|
48535
48636
|
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
48536
48637
|
name: "phone checkbox",
|
|
48537
48638
|
title: "Save phone number to wallet",
|
|
@@ -48620,6 +48721,7 @@ var fallbackValues$Q = {
|
|
|
48620
48721
|
focusStyles: focusStyles
|
|
48621
48722
|
};
|
|
48622
48723
|
|
|
48724
|
+
var _excluded$z = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired"];
|
|
48623
48725
|
/*
|
|
48624
48726
|
Takes an array of section objects, each object should look like:
|
|
48625
48727
|
{
|
|
@@ -48664,11 +48766,41 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48664
48766
|
openHeight = _ref$openHeight === void 0 ? "auto" : _ref$openHeight,
|
|
48665
48767
|
_ref$containerStyles = _ref.containerStyles,
|
|
48666
48768
|
containerStyles = _ref$containerStyles === void 0 ? "" : _ref$containerStyles,
|
|
48667
|
-
ariaDescribedBy = _ref.ariaDescribedBy
|
|
48769
|
+
ariaDescribedBy = _ref.ariaDescribedBy,
|
|
48770
|
+
_ref$isSectionRequire = _ref.isSectionRequired,
|
|
48771
|
+
isSectionRequired = _ref$isSectionRequire === void 0 ? false : _ref$isSectionRequire,
|
|
48772
|
+
rest = _objectWithoutProperties(_ref, _excluded$z);
|
|
48773
|
+
|
|
48774
|
+
var _useState = React.useState(null),
|
|
48775
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
48776
|
+
focused = _useState2[0],
|
|
48777
|
+
setFocused = _useState2[1];
|
|
48778
|
+
|
|
48779
|
+
var sectionRefs = React.useRef(_toConsumableArray(Array(sections.length)).map(function () {
|
|
48780
|
+
return /*#__PURE__*/React.createRef();
|
|
48781
|
+
}));
|
|
48782
|
+
|
|
48783
|
+
var handleKeyDown = function handleKeyDown(id, e, i) {
|
|
48784
|
+
if (e.currentTarget !== e.target) {
|
|
48785
|
+
return;
|
|
48786
|
+
} // Allow Enter and Space to select a section
|
|
48668
48787
|
|
|
48669
|
-
|
|
48670
|
-
if (
|
|
48788
|
+
|
|
48789
|
+
if (e.keyCode === ENTER || e.keyCode === SPACEBAR) {
|
|
48790
|
+
e.preventDefault();
|
|
48671
48791
|
toggleOpenSection(id);
|
|
48792
|
+
} // Allow Up and Down arrow navigation between sections
|
|
48793
|
+
|
|
48794
|
+
|
|
48795
|
+
if (e.keyCode == ARROW_UP || e.keyCode == ARROW_DOWN || e.keyCode == ARROW_LEFT || e.keyCode == ARROW_RIGHT) {
|
|
48796
|
+
var _sectionRefs$current$, _sectionRefs$current$2, _sections$nextIndex, _sections$nextIndex2;
|
|
48797
|
+
|
|
48798
|
+
e.preventDefault();
|
|
48799
|
+
var indexIncrement = e.keyCode == ARROW_RIGHT || e.keyCode == ARROW_DOWN ? 1 : -1;
|
|
48800
|
+
var nextIndex = wrapIndex(i + indexIncrement, sections.length);
|
|
48801
|
+
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();
|
|
48802
|
+
setFocused((_sections$nextIndex = sections[nextIndex]) === null || _sections$nextIndex === void 0 ? void 0 : _sections$nextIndex.id);
|
|
48803
|
+
toggleOpenSection((_sections$nextIndex2 = sections[nextIndex]) === null || _sections$nextIndex2 === void 0 ? void 0 : _sections$nextIndex2.id);
|
|
48672
48804
|
}
|
|
48673
48805
|
};
|
|
48674
48806
|
|
|
@@ -48707,33 +48839,29 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48707
48839
|
var fade = _ref4.fade;
|
|
48708
48840
|
return fade && "opacity: 0.4;";
|
|
48709
48841
|
});
|
|
48710
|
-
|
|
48711
|
-
var _useState = React.useState(null),
|
|
48712
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
48713
|
-
focused = _useState2[0],
|
|
48714
|
-
setFocused = _useState2[1];
|
|
48715
|
-
|
|
48716
48842
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
48717
48843
|
padding: "1px",
|
|
48718
48844
|
border: "1px solid ".concat(themeValues.borderColor),
|
|
48719
48845
|
borderRadius: "4px",
|
|
48720
48846
|
extraStyles: containerStyles
|
|
48721
|
-
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
48847
|
+
}, /*#__PURE__*/React__default.createElement(Stack, _extends({
|
|
48722
48848
|
childGap: "0",
|
|
48723
|
-
role: "radiogroup"
|
|
48724
|
-
|
|
48849
|
+
role: "radiogroup",
|
|
48850
|
+
"aria-required": isSectionRequired
|
|
48851
|
+
}, rest), sections.filter(function (section) {
|
|
48725
48852
|
return !section.hidden;
|
|
48726
|
-
}).map(function (section) {
|
|
48853
|
+
}).map(function (section, i) {
|
|
48727
48854
|
return /*#__PURE__*/React__default.createElement(Motion, {
|
|
48728
48855
|
tabIndex: section.hideRadioButton || section.disabled ? "-1" : "0",
|
|
48729
|
-
|
|
48730
|
-
|
|
48856
|
+
ref: sectionRefs.current[i],
|
|
48857
|
+
onBlur: function onBlur() {
|
|
48858
|
+
return !section.disabled && setFocused(null);
|
|
48731
48859
|
},
|
|
48732
48860
|
onFocus: function onFocus() {
|
|
48733
48861
|
return !section.disabled && setFocused(section.id);
|
|
48734
48862
|
},
|
|
48735
|
-
|
|
48736
|
-
return !section.disabled &&
|
|
48863
|
+
onKeyDown: function onKeyDown(e) {
|
|
48864
|
+
return !section.disabled && handleKeyDown(section.id, e, i);
|
|
48737
48865
|
},
|
|
48738
48866
|
hoverStyles: themeValues.focusStyles,
|
|
48739
48867
|
animate: openSection === section.id ? "open" : "closed",
|
|
@@ -48742,7 +48870,10 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48742
48870
|
extraStyles: borderStyles,
|
|
48743
48871
|
role: "radio",
|
|
48744
48872
|
"aria-checked": openSection === section.id,
|
|
48745
|
-
"aria-disabled": section.disabled
|
|
48873
|
+
"aria-disabled": section.disabled,
|
|
48874
|
+
"aria-required": section.required,
|
|
48875
|
+
"aria-labelledby": section.id,
|
|
48876
|
+
"aria-describedby": "right-icons-".concat(idString(section))
|
|
48746
48877
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
48747
48878
|
childGap: "0"
|
|
48748
48879
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -48780,7 +48911,8 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48780
48911
|
toggleRadio: section.disabled ? noop : function () {
|
|
48781
48912
|
return toggleOpenSection(section.id);
|
|
48782
48913
|
},
|
|
48783
|
-
tabIndex: "-1"
|
|
48914
|
+
tabIndex: "-1",
|
|
48915
|
+
isRequired: section.required
|
|
48784
48916
|
})), section.titleIcon && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48785
48917
|
align: "center"
|
|
48786
48918
|
}, section.titleIcon), /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -48790,9 +48922,10 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48790
48922
|
htmlFor: "radio-input-".concat(idString(section)),
|
|
48791
48923
|
color: CHARADE_GREY
|
|
48792
48924
|
}, section.title))), section.rightIcons && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48925
|
+
id: "right-icons-".concat(idString(section)),
|
|
48793
48926
|
childGap: "0.5rem",
|
|
48794
|
-
"aria-label":
|
|
48795
|
-
role:
|
|
48927
|
+
"aria-label": section.rightIconsLabel || null,
|
|
48928
|
+
role: section.rightIconsRole || null
|
|
48796
48929
|
}, section.rightIcons.map(function (icon) {
|
|
48797
48930
|
return /*#__PURE__*/React__default.createElement(RightIcon, {
|
|
48798
48931
|
src: icon.img,
|
|
@@ -49845,6 +49978,7 @@ exports.ImageBox = ImageBox;
|
|
|
49845
49978
|
exports.Imposter = Imposter;
|
|
49846
49979
|
exports.InternalLink = InternalLink;
|
|
49847
49980
|
exports.Jumbo = Jumbo$1;
|
|
49981
|
+
exports.KebabMenuIcon = KebabMenuIcon;
|
|
49848
49982
|
exports.KioskImage = KioskImage;
|
|
49849
49983
|
exports.LabeledAmount = LabeledAmount$1;
|
|
49850
49984
|
exports.LineItem = LineItem$1;
|